papermario/ver/jp/asm/nonmatchings/31300/func_80056ED4.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_80056ED4
/* 322D4 80056ED4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 322D8 80056ED8 308400FF */ andi $a0, $a0, 0xff
/* 322DC 80056EDC 00041140 */ sll $v0, $a0, 5
/* 322E0 80056EE0 3C038008 */ lui $v1, %hi(D_80078E24)
/* 322E4 80056EE4 8C638E24 */ lw $v1, %lo(D_80078E24)($v1)
/* 322E8 80056EE8 00441023 */ subu $v0, $v0, $a0
/* 322EC 80056EEC AFBF0010 */ sw $ra, 0x10($sp)
/* 322F0 80056EF0 8C63001C */ lw $v1, 0x1c($v1)
/* 322F4 80056EF4 00021080 */ sll $v0, $v0, 2
/* 322F8 80056EF8 00623021 */ addu $a2, $v1, $v0
/* 322FC 80056EFC ACC50018 */ sw $a1, 0x18($a2)
/* 32300 80056F00 24C50004 */ addiu $a1, $a2, 4
/* 32304 80056F04 8CA20014 */ lw $v0, 0x14($a1)
/* 32308 80056F08 8C420000 */ lw $v0, ($v0)
/* 3230C 80056F0C ACC00028 */ sw $zero, 0x28($a2)
/* 32310 80056F10 ACC20034 */ sw $v0, 0x34($a2)
/* 32314 80056F14 8CA40014 */ lw $a0, 0x14($a1)
/* 32318 80056F18 90830024 */ lbu $v1, 0x24($a0)
/* 3231C 80056F1C 10600005 */ beqz $v1, .L80056F34
/* 32320 80056F20 24020001 */ addiu $v0, $zero, 1
/* 32324 80056F24 10620022 */ beq $v1, $v0, .L80056FB0
/* 32328 80056F28 00000000 */ nop
/* 3232C 80056F2C 08015BFA */ j .L80056FE8
/* 32330 80056F30 00000000 */ nop
.L80056F34:
/* 32334 80056F34 3C0338E3 */ lui $v1, 0x38e3
/* 32338 80056F38 8C820004 */ lw $v0, 4($a0)
/* 3233C 80056F3C 34638E39 */ ori $v1, $v1, 0x8e39
/* 32340 80056F40 00430019 */ multu $v0, $v1
/* 32344 80056F44 00003810 */ mfhi $a3
/* 32348 80056F48 00071842 */ srl $v1, $a3, 1
/* 3234C 80056F4C 000310C0 */ sll $v0, $v1, 3
/* 32350 80056F50 00431021 */ addu $v0, $v0, $v1
/* 32354 80056F54 AC820004 */ sw $v0, 4($a0)
/* 32358 80056F58 8CA20014 */ lw $v0, 0x14($a1)
/* 3235C 80056F5C 9442001C */ lhu $v0, 0x1c($v0)
/* 32360 80056F60 ACC2001C */ sw $v0, 0x1c($a2)
/* 32364 80056F64 8CA30014 */ lw $v1, 0x14($a1)
/* 32368 80056F68 8C620010 */ lw $v0, 0x10($v1)
/* 3236C 80056F6C 5040001C */ beql $v0, $zero, .L80056FE0
/* 32370 80056F70 ACC00014 */ sw $zero, 0x14($a2)
/* 32374 80056F74 8C62000C */ lw $v0, 0xc($v1)
/* 32378 80056F78 ACC2000C */ sw $v0, 0xc($a2)
/* 3237C 80056F7C 8CA20014 */ lw $v0, 0x14($a1)
/* 32380 80056F80 8C420010 */ lw $v0, 0x10($v0)
/* 32384 80056F84 ACC20010 */ sw $v0, 0x10($a2)
/* 32388 80056F88 8CA20014 */ lw $v0, 0x14($a1)
/* 3238C 80056F8C 8C420014 */ lw $v0, 0x14($v0)
/* 32390 80056F90 ACC20014 */ sw $v0, 0x14($a2)
/* 32394 80056F94 8CA20014 */ lw $v0, 0x14($a1)
/* 32398 80056F98 8CC50008 */ lw $a1, 8($a2)
/* 3239C 80056F9C 8C440008 */ lw $a0, 8($v0)
/* 323A0 80056FA0 0C015F22 */ jal func_80057C88
/* 323A4 80056FA4 24060020 */ addiu $a2, $zero, 0x20
/* 323A8 80056FA8 08015BFA */ j .L80056FE8
/* 323AC 80056FAC 00000000 */ nop
.L80056FB0:
/* 323B0 80056FB0 8C820010 */ lw $v0, 0x10($a0)
/* 323B4 80056FB4 5040000A */ beql $v0, $zero, .L80056FE0
/* 323B8 80056FB8 ACC00014 */ sw $zero, 0x14($a2)
/* 323BC 80056FBC 8C82000C */ lw $v0, 0xc($a0)
/* 323C0 80056FC0 ACC2000C */ sw $v0, 0xc($a2)
/* 323C4 80056FC4 8CA20014 */ lw $v0, 0x14($a1)
/* 323C8 80056FC8 8C420010 */ lw $v0, 0x10($v0)
/* 323CC 80056FCC ACC20010 */ sw $v0, 0x10($a2)
/* 323D0 80056FD0 8CA20014 */ lw $v0, 0x14($a1)
/* 323D4 80056FD4 8C420014 */ lw $v0, 0x14($v0)
/* 323D8 80056FD8 08015BFA */ j .L80056FE8
/* 323DC 80056FDC ACC20014 */ sw $v0, 0x14($a2)
.L80056FE0:
/* 323E0 80056FE0 ACC00010 */ sw $zero, 0x10($a2)
/* 323E4 80056FE4 ACC0000C */ sw $zero, 0xc($a2)
.L80056FE8:
/* 323E8 80056FE8 8FBF0010 */ lw $ra, 0x10($sp)
/* 323EC 80056FEC 03E00008 */ jr $ra
/* 323F0 80056FF0 27BD0018 */ addiu $sp, $sp, 0x18