papermario/ver/jp/asm/nonmatchings/2DEE0/func_80054264.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

49 lines
2.4 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80054264
/* 2F664 80054264 27BDFFD0 */ addiu $sp, $sp, -0x30
/* 2F668 80054268 AFB20028 */ sw $s2, 0x28($sp)
/* 2F66C 8005426C 0080902D */ daddu $s2, $a0, $zero
/* 2F670 80054270 AFB00020 */ sw $s0, 0x20($sp)
/* 2F674 80054274 00A0802D */ daddu $s0, $a1, $zero
/* 2F678 80054278 0200202D */ daddu $a0, $s0, $zero
/* 2F67C 8005427C 27A50010 */ addiu $a1, $sp, 0x10
/* 2F680 80054280 24060010 */ addiu $a2, $zero, 0x10
/* 2F684 80054284 AFBF002C */ sw $ra, 0x2c($sp)
/* 2F688 80054288 0C0152AC */ jal func_80054AB0
/* 2F68C 8005428C AFB10024 */ sw $s1, 0x24($sp)
/* 2F690 80054290 8FA20014 */ lw $v0, 0x14($sp)
/* 2F694 80054294 2451FFF0 */ addiu $s1, $v0, -0x10
/* 2F698 80054298 2E220201 */ sltiu $v0, $s1, 0x201
/* 2F69C 8005429C 14400002 */ bnez $v0, .L800542A8
/* 2F6A0 800542A0 26040010 */ addiu $a0, $s0, 0x10
/* 2F6A4 800542A4 24110200 */ addiu $s1, $zero, 0x200
.L800542A8:
/* 2F6A8 800542A8 8E450058 */ lw $a1, 0x58($s2)
/* 2F6AC 800542AC 0C0152AC */ jal func_80054AB0
/* 2F6B0 800542B0 0220302D */ daddu $a2, $s1, $zero
/* 2F6B4 800542B4 001118C2 */ srl $v1, $s1, 3
/* 2F6B8 800542B8 24020040 */ addiu $v0, $zero, 0x40
/* 2F6BC 800542BC 00438823 */ subu $s1, $v0, $v1
/* 2F6C0 800542C0 1A20000C */ blez $s1, .L800542F4
/* 2F6C4 800542C4 26440014 */ addiu $a0, $s2, 0x14
/* 2F6C8 800542C8 24060008 */ addiu $a2, $zero, 8
/* 2F6CC 800542CC 8E500058 */ lw $s0, 0x58($s2)
/* 2F6D0 800542D0 000310C0 */ sll $v0, $v1, 3
/* 2F6D4 800542D4 02028021 */ addu $s0, $s0, $v0
/* 2F6D8 800542D8 0C015309 */ jal func_80054C24
/* 2F6DC 800542DC 0200282D */ daddu $a1, $s0, $zero
/* 2F6E0 800542E0 0200202D */ daddu $a0, $s0, $zero
/* 2F6E4 800542E4 24850008 */ addiu $a1, $a0, 8
/* 2F6E8 800542E8 001130C0 */ sll $a2, $s1, 3
/* 2F6EC 800542EC 0C015309 */ jal func_80054C24
/* 2F6F0 800542F0 24C6FFF8 */ addiu $a2, $a2, -8
.L800542F4:
/* 2F6F4 800542F4 8FBF002C */ lw $ra, 0x2c($sp)
/* 2F6F8 800542F8 8FB20028 */ lw $s2, 0x28($sp)
/* 2F6FC 800542FC 8FB10024 */ lw $s1, 0x24($sp)
/* 2F700 80054300 8FB00020 */ lw $s0, 0x20($sp)
/* 2F704 80054304 03E00008 */ jr $ra
/* 2F708 80054308 27BD0030 */ addiu $sp, $sp, 0x30