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

41 lines
1.9 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_8011E438
/* B4B38 8011E438 27BDFFE8 */ addiu $sp, $sp, -0x18
/* B4B3C 8011E43C AFB00010 */ sw $s0, 0x10($sp)
/* B4B40 8011E440 0080802D */ daddu $s0, $a0, $zero
/* B4B44 8011E444 AFBF0014 */ sw $ra, 0x14($sp)
/* B4B48 8011E448 8E040010 */ lw $a0, 0x10($s0)
/* B4B4C 8011E44C 10800016 */ beqz $a0, .L8011E4A8
/* B4B50 8011E450 A2000014 */ sb $zero, 0x14($s0)
/* B4B54 8011E454 0C0478E6 */ jal func_8011E398
/* B4B58 8011E458 00000000 */ nop
/* B4B5C 8011E45C 3C038015 */ lui $v1, %hi(gCurrentAnimMeshListPtr)
/* B4B60 8011E460 8C633A40 */ lw $v1, %lo(gCurrentAnimMeshListPtr)($v1)
/* B4B64 8011E464 0000202D */ daddu $a0, $zero, $zero
/* B4B68 8011E468 AE000010 */ sw $zero, 0x10($s0)
.L8011E46C:
/* B4B6C 8011E46C 8C620000 */ lw $v0, ($v1)
/* B4B70 8011E470 14500003 */ bne $v0, $s0, .L8011E480
/* B4B74 8011E474 24840001 */ addiu $a0, $a0, 1
/* B4B78 8011E478 08047923 */ j .L8011E48C
/* B4B7C 8011E47C AC600000 */ sw $zero, ($v1)
.L8011E480:
/* B4B80 8011E480 28820010 */ slti $v0, $a0, 0x10
/* B4B84 8011E484 1440FFF9 */ bnez $v0, .L8011E46C
/* B4B88 8011E488 24630004 */ addiu $v1, $v1, 4
.L8011E48C:
/* B4B8C 8011E48C 0C00AB4B */ jal heap_free
/* B4B90 8011E490 0200202D */ daddu $a0, $s0, $zero
/* B4B94 8011E494 3C038015 */ lui $v1, %hi(D_801512D4)
/* B4B98 8011E498 246312D4 */ addiu $v1, $v1, %lo(D_801512D4)
/* B4B9C 8011E49C 8C620000 */ lw $v0, ($v1)
/* B4BA0 8011E4A0 2442FFFF */ addiu $v0, $v0, -1
/* B4BA4 8011E4A4 AC620000 */ sw $v0, ($v1)
.L8011E4A8:
/* B4BA8 8011E4A8 8FBF0014 */ lw $ra, 0x14($sp)
/* B4BAC 8011E4AC 8FB00010 */ lw $s0, 0x10($sp)
/* B4BB0 8011E4B0 03E00008 */ jr $ra
/* B4BB4 8011E4B4 27BD0018 */ addiu $sp, $sp, 0x18