papermario/ver/us/asm/nonmatchings/31650/func_80057224.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

81 lines
4.0 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80057224
/* 32624 80057224 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 32628 80057228 308400FF */ andi $a0, $a0, 0xff
/* 3262C 8005722C 00041140 */ sll $v0, $a0, 5
/* 32630 80057230 3C038008 */ lui $v1, %hi(D_80078E54)
/* 32634 80057234 8C638E54 */ lw $v1, %lo(D_80078E54)($v1)
/* 32638 80057238 00441023 */ subu $v0, $v0, $a0
/* 3263C 8005723C AFBF0010 */ sw $ra, 0x10($sp)
/* 32640 80057240 8C63001C */ lw $v1, 0x1c($v1)
/* 32644 80057244 00021080 */ sll $v0, $v0, 2
/* 32648 80057248 00623021 */ addu $a2, $v1, $v0
/* 3264C 8005724C ACC50018 */ sw $a1, 0x18($a2)
/* 32650 80057250 24C50004 */ addiu $a1, $a2, 4
/* 32654 80057254 8CA20014 */ lw $v0, 0x14($a1)
/* 32658 80057258 8C420000 */ lw $v0, ($v0)
/* 3265C 8005725C ACC00028 */ sw $zero, 0x28($a2)
/* 32660 80057260 ACC20034 */ sw $v0, 0x34($a2)
/* 32664 80057264 8CA40014 */ lw $a0, 0x14($a1)
/* 32668 80057268 90830024 */ lbu $v1, 0x24($a0)
/* 3266C 8005726C 10600005 */ beqz $v1, .L80057284
/* 32670 80057270 24020001 */ addiu $v0, $zero, 1
/* 32674 80057274 10620022 */ beq $v1, $v0, .L80057300
/* 32678 80057278 00000000 */ nop
/* 3267C 8005727C 08015CCE */ j .L80057338
/* 32680 80057280 00000000 */ nop
.L80057284:
/* 32684 80057284 3C0338E3 */ lui $v1, 0x38e3
/* 32688 80057288 8C820004 */ lw $v0, 4($a0)
/* 3268C 8005728C 34638E39 */ ori $v1, $v1, 0x8e39
/* 32690 80057290 00430019 */ multu $v0, $v1
/* 32694 80057294 00003810 */ mfhi $a3
/* 32698 80057298 00071842 */ srl $v1, $a3, 1
/* 3269C 8005729C 000310C0 */ sll $v0, $v1, 3
/* 326A0 800572A0 00431021 */ addu $v0, $v0, $v1
/* 326A4 800572A4 AC820004 */ sw $v0, 4($a0)
/* 326A8 800572A8 8CA20014 */ lw $v0, 0x14($a1)
/* 326AC 800572AC 9442001C */ lhu $v0, 0x1c($v0)
/* 326B0 800572B0 ACC2001C */ sw $v0, 0x1c($a2)
/* 326B4 800572B4 8CA30014 */ lw $v1, 0x14($a1)
/* 326B8 800572B8 8C620010 */ lw $v0, 0x10($v1)
/* 326BC 800572BC 5040001C */ beql $v0, $zero, .L80057330
/* 326C0 800572C0 ACC00014 */ sw $zero, 0x14($a2)
/* 326C4 800572C4 8C62000C */ lw $v0, 0xc($v1)
/* 326C8 800572C8 ACC2000C */ sw $v0, 0xc($a2)
/* 326CC 800572CC 8CA20014 */ lw $v0, 0x14($a1)
/* 326D0 800572D0 8C420010 */ lw $v0, 0x10($v0)
/* 326D4 800572D4 ACC20010 */ sw $v0, 0x10($a2)
/* 326D8 800572D8 8CA20014 */ lw $v0, 0x14($a1)
/* 326DC 800572DC 8C420014 */ lw $v0, 0x14($v0)
/* 326E0 800572E0 ACC20014 */ sw $v0, 0x14($a2)
/* 326E4 800572E4 8CA20014 */ lw $v0, 0x14($a1)
/* 326E8 800572E8 8CC50008 */ lw $a1, 8($a2)
/* 326EC 800572EC 8C440008 */ lw $a0, 8($v0)
/* 326F0 800572F0 0C015FF6 */ jal alCopy
/* 326F4 800572F4 24060020 */ addiu $a2, $zero, 0x20
/* 326F8 800572F8 08015CCE */ j .L80057338
/* 326FC 800572FC 00000000 */ nop
.L80057300:
/* 32700 80057300 8C820010 */ lw $v0, 0x10($a0)
/* 32704 80057304 5040000A */ beql $v0, $zero, .L80057330
/* 32708 80057308 ACC00014 */ sw $zero, 0x14($a2)
/* 3270C 8005730C 8C82000C */ lw $v0, 0xc($a0)
/* 32710 80057310 ACC2000C */ sw $v0, 0xc($a2)
/* 32714 80057314 8CA20014 */ lw $v0, 0x14($a1)
/* 32718 80057318 8C420010 */ lw $v0, 0x10($v0)
/* 3271C 8005731C ACC20010 */ sw $v0, 0x10($a2)
/* 32720 80057320 8CA20014 */ lw $v0, 0x14($a1)
/* 32724 80057324 8C420014 */ lw $v0, 0x14($v0)
/* 32728 80057328 08015CCE */ j .L80057338
/* 3272C 8005732C ACC20014 */ sw $v0, 0x14($a2)
.L80057330:
/* 32730 80057330 ACC00010 */ sw $zero, 0x10($a2)
/* 32734 80057334 ACC0000C */ sw $zero, 0xc($a2)
.L80057338:
/* 32738 80057338 8FBF0010 */ lw $ra, 0x10($sp)
/* 3273C 8005733C 03E00008 */ jr $ra
/* 32740 80057340 27BD0018 */ addiu $sp, $sp, 0x18