papermario/ver/us/asm/nonmatchings/EC7590/func_8024061C_EC77CC.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

54 lines
2.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8024061C_EC77CC
/* EC77CC 8024061C 27BDFFE0 */ addiu $sp, $sp, -0x20
/* EC77D0 80240620 AFB00010 */ sw $s0, 0x10($sp)
/* EC77D4 80240624 3C108024 */ lui $s0, %hi(D_80241BB0_EC8D60)
/* EC77D8 80240628 26101BB0 */ addiu $s0, $s0, %lo(D_80241BB0_EC8D60)
/* EC77DC 8024062C AFBF0018 */ sw $ra, 0x18($sp)
/* EC77E0 80240630 AFB10014 */ sw $s1, 0x14($sp)
/* EC77E4 80240634 8E020000 */ lw $v0, ($s0)
/* EC77E8 80240638 14400010 */ bnez $v0, .L8024067C
/* EC77EC 8024063C 0080882D */ daddu $s1, $a0, $zero
/* EC77F0 80240640 0C00AFF5 */ jal func_8002BFD4
/* EC77F4 80240644 24040040 */ addiu $a0, $zero, 0x40
/* EC77F8 80240648 AE020000 */ sw $v0, ($s0)
/* EC77FC 8024064C 0000182D */ daddu $v1, $zero, $zero
/* EC7800 80240650 0040282D */ daddu $a1, $v0, $zero
/* EC7804 80240654 0220202D */ daddu $a0, $s1, $zero
.L80240658:
/* EC7808 80240658 8C820084 */ lw $v0, 0x84($a0)
/* EC780C 8024065C 24840004 */ addiu $a0, $a0, 4
/* EC7810 80240660 24630001 */ addiu $v1, $v1, 1
/* EC7814 80240664 ACA20000 */ sw $v0, ($a1)
/* EC7818 80240668 28620010 */ slti $v0, $v1, 0x10
/* EC781C 8024066C 1440FFFA */ bnez $v0, .L80240658
/* EC7820 80240670 24A50004 */ addiu $a1, $a1, 4
/* EC7824 80240674 080901AE */ j .L802406B8
/* EC7828 80240678 00000000 */ nop
.L8024067C:
/* EC782C 8024067C 0000182D */ daddu $v1, $zero, $zero
/* EC7830 80240680 0040282D */ daddu $a1, $v0, $zero
/* EC7834 80240684 0220202D */ daddu $a0, $s1, $zero
.L80240688:
/* EC7838 80240688 8CA20000 */ lw $v0, ($a1)
/* EC783C 8024068C 24A50004 */ addiu $a1, $a1, 4
/* EC7840 80240690 24630001 */ addiu $v1, $v1, 1
/* EC7844 80240694 AC820084 */ sw $v0, 0x84($a0)
/* EC7848 80240698 28620010 */ slti $v0, $v1, 0x10
/* EC784C 8024069C 1440FFFA */ bnez $v0, .L80240688
/* EC7850 802406A0 24840004 */ addiu $a0, $a0, 4
/* EC7854 802406A4 3C108024 */ lui $s0, %hi(D_80241BB0_EC8D60)
/* EC7858 802406A8 26101BB0 */ addiu $s0, $s0, %lo(D_80241BB0_EC8D60)
/* EC785C 802406AC 0C00B007 */ jal func_8002C01C
/* EC7860 802406B0 8E040000 */ lw $a0, ($s0)
/* EC7864 802406B4 AE000000 */ sw $zero, ($s0)
.L802406B8:
/* EC7868 802406B8 8FBF0018 */ lw $ra, 0x18($sp)
/* EC786C 802406BC 8FB10014 */ lw $s1, 0x14($sp)
/* EC7870 802406C0 8FB00010 */ lw $s0, 0x10($sp)
/* EC7874 802406C4 24020002 */ addiu $v0, $zero, 2
/* EC7878 802406C8 03E00008 */ jr $ra
/* EC787C 802406CC 27BD0020 */ addiu $sp, $sp, 0x20