papermario/ver/jp/asm/nonmatchings/2DEE0/func_8005412C.s
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "cfc140bb76"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "cfc140bb76"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "85349befcd"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "85349befcd"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* Update symbol addrs

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "a44631e194"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "a44631e194"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

38 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8005412C
/* 2F52C 8005412C 27BDFFF8 */ addiu $sp, $sp, -8
/* 2F530 80054130 3C07800A */ lui $a3, %hi(D_8009A5A0)
/* 2F534 80054134 8CE7A5A0 */ lw $a3, %lo(D_8009A5A0)($a3)
/* 2F538 80054138 00A0482D */ daddu $t1, $a1, $zero
/* 2F53C 8005413C 8CE20024 */ lw $v0, 0x24($a3)
/* 2F540 80054140 0082102B */ sltu $v0, $a0, $v0
/* 2F544 80054144 10400014 */ beqz $v0, .L80054198
/* 2F548 80054148 0000402D */ daddu $t0, $zero, $zero
/* 2F54C 8005414C 3C0500FF */ lui $a1, 0xff
/* 2F550 80054150 34A5FFFF */ ori $a1, $a1, 0xffff
/* 2F554 80054154 8CE30020 */ lw $v1, 0x20($a3)
/* 2F558 80054158 000410C0 */ sll $v0, $a0, 3
/* 2F55C 8005415C 00621821 */ addu $v1, $v1, $v0
/* 2F560 80054160 8C620000 */ lw $v0, ($v1)
/* 2F564 80054164 8CE4001C */ lw $a0, 0x1c($a3)
/* 2F568 80054168 00451024 */ and $v0, $v0, $a1
/* 2F56C 8005416C 00442021 */ addu $a0, $v0, $a0
/* 2F570 80054170 AFA40000 */ sw $a0, ($sp)
/* 2F574 80054174 8C620004 */ lw $v0, 4($v1)
/* 2F578 80054178 AFA20004 */ sw $v0, 4($sp)
/* 2F57C 8005417C 00021602 */ srl $v0, $v0, 0x18
/* 2F580 80054180 54490006 */ bnel $v0, $t1, .L8005419C
/* 2F584 80054184 24080066 */ addiu $t0, $zero, 0x66
/* 2F588 80054188 ACC40000 */ sw $a0, ($a2)
/* 2F58C 8005418C 8FA20004 */ lw $v0, 4($sp)
/* 2F590 80054190 08015067 */ j .L8005419C
/* 2F594 80054194 ACC20004 */ sw $v0, 4($a2)
.L80054198:
/* 2F598 80054198 24080065 */ addiu $t0, $zero, 0x65
.L8005419C:
/* 2F59C 8005419C 0100102D */ daddu $v0, $t0, $zero
/* 2F5A0 800541A0 03E00008 */ jr $ra
/* 2F5A4 800541A4 27BD0008 */ addiu $sp, $sp, 8