papermario/ver/jp/asm/nonmatchings/30100/func_80055410.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

34 lines
1.6 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80055410
/* 30810 80055410 27BDFFE0 */ addiu $sp, $sp, -0x20
/* 30814 80055414 AFB20018 */ sw $s2, 0x18($sp)
/* 30818 80055418 0080902D */ daddu $s2, $a0, $zero
/* 3081C 8005541C AFB10014 */ sw $s1, 0x14($sp)
/* 30820 80055420 24110004 */ addiu $s1, $zero, 4
/* 30824 80055424 240200FF */ addiu $v0, $zero, 0xff
/* 30828 80055428 AFB00010 */ sw $s0, 0x10($sp)
/* 3082C 8005542C 0000802D */ daddu $s0, $zero, $zero
/* 30830 80055430 AFBF001C */ sw $ra, 0x1c($sp)
/* 30834 80055434 3C018008 */ lui $at, %hi(D_80078D86)
/* 30838 80055438 A4228D86 */ sh $v0, %lo(D_80078D86)($at)
/* 3083C 8005543C 0200202D */ daddu $a0, $s0, $zero
.L80055440:
/* 30840 80055440 0C015445 */ jal func_80055114
/* 30844 80055444 0000282D */ daddu $a1, $zero, $zero
/* 30848 80055448 14400006 */ bnez $v0, .L80055464
/* 3084C 8005544C 26100001 */ addiu $s0, $s0, 1
/* 30850 80055450 0211102B */ sltu $v0, $s0, $s1
/* 30854 80055454 1440FFFA */ bnez $v0, .L80055440
/* 30858 80055458 0200202D */ daddu $a0, $s0, $zero
/* 3085C 8005545C 0C01553E */ jal func_800554F8
/* 30860 80055460 0240202D */ daddu $a0, $s2, $zero
.L80055464:
/* 30864 80055464 8FBF001C */ lw $ra, 0x1c($sp)
/* 30868 80055468 8FB20018 */ lw $s2, 0x18($sp)
/* 3086C 8005546C 8FB10014 */ lw $s1, 0x14($sp)
/* 30870 80055470 8FB00010 */ lw $s0, 0x10($sp)
/* 30874 80055474 03E00008 */ jr $ra
/* 30878 80055478 27BD0020 */ addiu $sp, $sp, 0x20