papermario/ver/us/asm/nonmatchings/B4580/func_8011E150.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.7 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8011E150
/* B4850 8011E150 27BDFFE0 */ addiu $sp, $sp, -0x20
/* B4854 8011E154 AFBF001C */ sw $ra, 0x1c($sp)
/* B4858 8011E158 AFB20018 */ sw $s2, 0x18($sp)
/* B485C 8011E15C AFB10014 */ sw $s1, 0x14($sp)
/* B4860 8011E160 AFB00010 */ sw $s0, 0x10($sp)
/* B4864 8011E164 8C8200FC */ lw $v0, 0xfc($a0)
/* B4868 8011E168 00A0902D */ daddu $s2, $a1, $zero
/* B486C 8011E16C 14520003 */ bne $v0, $s2, .L8011E17C
/* B4870 8011E170 0000882D */ daddu $s1, $zero, $zero
/* B4874 8011E174 0804786B */ j .L8011E1AC
/* B4878 8011E178 0080102D */ daddu $v0, $a0, $zero
.L8011E17C:
/* B487C 8011E17C 0080802D */ daddu $s0, $a0, $zero
.L8011E180:
/* B4880 8011E180 8E040004 */ lw $a0, 4($s0)
/* B4884 8011E184 50800005 */ beql $a0, $zero, .L8011E19C
/* B4888 8011E188 26310001 */ addiu $s1, $s1, 1
/* B488C 8011E18C 0C047854 */ jal func_8011E150
/* B4890 8011E190 0240282D */ daddu $a1, $s2, $zero
/* B4894 8011E194 14400005 */ bnez $v0, .L8011E1AC
/* B4898 8011E198 26310001 */ addiu $s1, $s1, 1
.L8011E19C:
/* B489C 8011E19C 2A220020 */ slti $v0, $s1, 0x20
/* B48A0 8011E1A0 1440FFF7 */ bnez $v0, .L8011E180
/* B48A4 8011E1A4 26100004 */ addiu $s0, $s0, 4
/* B48A8 8011E1A8 0000102D */ daddu $v0, $zero, $zero
.L8011E1AC:
/* B48AC 8011E1AC 8FBF001C */ lw $ra, 0x1c($sp)
/* B48B0 8011E1B0 8FB20018 */ lw $s2, 0x18($sp)
/* B48B4 8011E1B4 8FB10014 */ lw $s1, 0x14($sp)
/* B48B8 8011E1B8 8FB00010 */ lw $s0, 0x10($sp)
/* B48BC 8011E1BC 03E00008 */ jr $ra
/* B48C0 8011E1C0 27BD0020 */ addiu $sp, $sp, 0x20