mirror of
https://github.com/pmret/papermario.git
synced 2024-11-19 09:22:30 +01:00
174 lines
8.8 KiB
ArmAsm
174 lines
8.8 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_80056C54
|
||
|
/* 32054 80056C54 27BDFFD0 */ addiu $sp, $sp, -0x30
|
||
|
/* 32058 80056C58 308400FF */ andi $a0, $a0, 0xff
|
||
|
/* 3205C 80056C5C F7B40028 */ sdc1 $f20, 0x28($sp)
|
||
|
/* 32060 80056C60 4487A000 */ mtc1 $a3, $f20
|
||
|
/* 32064 80056C64 00041140 */ sll $v0, $a0, 5
|
||
|
/* 32068 80056C68 AFB10014 */ sw $s1, 0x14($sp)
|
||
|
/* 3206C 80056C6C 97B10042 */ lhu $s1, 0x42($sp)
|
||
|
/* 32070 80056C70 3C038008 */ lui $v1, %hi(D_80078E24)
|
||
|
/* 32074 80056C74 8C638E24 */ lw $v1, %lo(D_80078E24)($v1)
|
||
|
/* 32078 80056C78 00441023 */ subu $v0, $v0, $a0
|
||
|
/* 3207C 80056C7C AFB20018 */ sw $s2, 0x18($sp)
|
||
|
/* 32080 80056C80 93B20047 */ lbu $s2, 0x47($sp)
|
||
|
/* 32084 80056C84 00021080 */ sll $v0, $v0, 2
|
||
|
/* 32088 80056C88 AFBF0024 */ sw $ra, 0x24($sp)
|
||
|
/* 3208C 80056C8C AFB40020 */ sw $s4, 0x20($sp)
|
||
|
/* 32090 80056C90 AFB3001C */ sw $s3, 0x1c($sp)
|
||
|
/* 32094 80056C94 AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 32098 80056C98 8C63001C */ lw $v1, 0x1c($v1)
|
||
|
/* 3209C 80056C9C 93B3004B */ lbu $s3, 0x4b($sp)
|
||
|
/* 320A0 80056CA0 00623821 */ addu $a3, $v1, $v0
|
||
|
/* 320A4 80056CA4 24E40004 */ addiu $a0, $a3, 4
|
||
|
/* 320A8 80056CA8 A0E50078 */ sb $a1, 0x78($a3)
|
||
|
/* 320AC 80056CAC ACE60018 */ sw $a2, 0x18($a3)
|
||
|
/* 320B0 80056CB0 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 320B4 80056CB4 8C420000 */ lw $v0, ($v0)
|
||
|
/* 320B8 80056CB8 ACE00028 */ sw $zero, 0x28($a3)
|
||
|
/* 320BC 80056CBC ACE20034 */ sw $v0, 0x34($a3)
|
||
|
/* 320C0 80056CC0 8C850014 */ lw $a1, 0x14($a0)
|
||
|
/* 320C4 80056CC4 24F00048 */ addiu $s0, $a3, 0x48
|
||
|
/* 320C8 80056CC8 90A30024 */ lbu $v1, 0x24($a1)
|
||
|
/* 320CC 80056CCC 10600006 */ beqz $v1, .L80056CE8
|
||
|
/* 320D0 80056CD0 24F40038 */ addiu $s4, $a3, 0x38
|
||
|
/* 320D4 80056CD4 24020001 */ addiu $v0, $zero, 1
|
||
|
/* 320D8 80056CD8 10620022 */ beq $v1, $v0, .L80056D64
|
||
|
/* 320DC 80056CDC 00000000 */ nop
|
||
|
/* 320E0 80056CE0 08015B68 */ j .L80056DA0
|
||
|
/* 320E4 80056CE4 24050001 */ addiu $a1, $zero, 1
|
||
|
.L80056CE8:
|
||
|
/* 320E8 80056CE8 3C0338E3 */ lui $v1, 0x38e3
|
||
|
/* 320EC 80056CEC 8CA20004 */ lw $v0, 4($a1)
|
||
|
/* 320F0 80056CF0 34638E39 */ ori $v1, $v1, 0x8e39
|
||
|
/* 320F4 80056CF4 00430019 */ multu $v0, $v1
|
||
|
/* 320F8 80056CF8 00004010 */ mfhi $t0
|
||
|
/* 320FC 80056CFC 00081842 */ srl $v1, $t0, 1
|
||
|
/* 32100 80056D00 000310C0 */ sll $v0, $v1, 3
|
||
|
/* 32104 80056D04 00431021 */ addu $v0, $v0, $v1
|
||
|
/* 32108 80056D08 ACA20004 */ sw $v0, 4($a1)
|
||
|
/* 3210C 80056D0C 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 32110 80056D10 9442001C */ lhu $v0, 0x1c($v0)
|
||
|
/* 32114 80056D14 ACE2001C */ sw $v0, 0x1c($a3)
|
||
|
/* 32118 80056D18 8C830014 */ lw $v1, 0x14($a0)
|
||
|
/* 3211C 80056D1C 8C620010 */ lw $v0, 0x10($v1)
|
||
|
/* 32120 80056D20 5040001C */ beql $v0, $zero, .L80056D94
|
||
|
/* 32124 80056D24 ACE00014 */ sw $zero, 0x14($a3)
|
||
|
/* 32128 80056D28 8C62000C */ lw $v0, 0xc($v1)
|
||
|
/* 3212C 80056D2C ACE2000C */ sw $v0, 0xc($a3)
|
||
|
/* 32130 80056D30 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 32134 80056D34 8C420010 */ lw $v0, 0x10($v0)
|
||
|
/* 32138 80056D38 ACE20010 */ sw $v0, 0x10($a3)
|
||
|
/* 3213C 80056D3C 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 32140 80056D40 8C420014 */ lw $v0, 0x14($v0)
|
||
|
/* 32144 80056D44 ACE20014 */ sw $v0, 0x14($a3)
|
||
|
/* 32148 80056D48 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 3214C 80056D4C 8CE50008 */ lw $a1, 8($a3)
|
||
|
/* 32150 80056D50 8C440008 */ lw $a0, 8($v0)
|
||
|
/* 32154 80056D54 0C015F22 */ jal func_80057C88
|
||
|
/* 32158 80056D58 24060020 */ addiu $a2, $zero, 0x20
|
||
|
/* 3215C 80056D5C 08015B68 */ j .L80056DA0
|
||
|
/* 32160 80056D60 24050001 */ addiu $a1, $zero, 1
|
||
|
.L80056D64:
|
||
|
/* 32164 80056D64 8CA20010 */ lw $v0, 0x10($a1)
|
||
|
/* 32168 80056D68 5040000A */ beql $v0, $zero, .L80056D94
|
||
|
/* 3216C 80056D6C ACE00014 */ sw $zero, 0x14($a3)
|
||
|
/* 32170 80056D70 8CA2000C */ lw $v0, 0xc($a1)
|
||
|
/* 32174 80056D74 ACE2000C */ sw $v0, 0xc($a3)
|
||
|
/* 32178 80056D78 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 3217C 80056D7C 8C420010 */ lw $v0, 0x10($v0)
|
||
|
/* 32180 80056D80 ACE20010 */ sw $v0, 0x10($a3)
|
||
|
/* 32184 80056D84 8C820014 */ lw $v0, 0x14($a0)
|
||
|
/* 32188 80056D88 8C420014 */ lw $v0, 0x14($v0)
|
||
|
/* 3218C 80056D8C 08015B67 */ j .L80056D9C
|
||
|
/* 32190 80056D90 ACE20014 */ sw $v0, 0x14($a3)
|
||
|
.L80056D94:
|
||
|
/* 32194 80056D94 ACE00010 */ sw $zero, 0x10($a3)
|
||
|
/* 32198 80056D98 ACE0000C */ sw $zero, 0xc($a3)
|
||
|
.L80056D9C:
|
||
|
/* 3219C 80056D9C 24050001 */ addiu $a1, $zero, 1
|
||
|
.L80056DA0:
|
||
|
/* 321A0 80056DA0 00111400 */ sll $v0, $s1, 0x10
|
||
|
/* 321A4 80056DA4 00021403 */ sra $v0, $v0, 0x10
|
||
|
/* 321A8 80056DA8 326300FF */ andi $v1, $s3, 0xff
|
||
|
/* 321AC 80056DAC 00420018 */ mult $v0, $v0
|
||
|
/* 321B0 80056DB0 AE050028 */ sw $a1, 0x28($s0)
|
||
|
/* 321B4 80056DB4 AE050024 */ sw $a1, 0x24($s0)
|
||
|
/* 321B8 80056DB8 AE00001C */ sw $zero, 0x1c($s0)
|
||
|
/* 321BC 80056DBC 8FA2004C */ lw $v0, 0x4c($sp)
|
||
|
/* 321C0 80056DC0 2406007F */ addiu $a2, $zero, 0x7f
|
||
|
/* 321C4 80056DC4 AE020020 */ sw $v0, 0x20($s0)
|
||
|
/* 321C8 80056DC8 324200FF */ andi $v0, $s2, 0xff
|
||
|
/* 321CC 80056DCC A6020004 */ sh $v0, 4($s0)
|
||
|
/* 321D0 80056DD0 00004012 */ mflo $t0
|
||
|
/* 321D4 80056DD4 000813C3 */ sra $v0, $t0, 0xf
|
||
|
/* 321D8 80056DD8 A6020006 */ sh $v0, 6($s0)
|
||
|
/* 321DC 80056DDC 00A31004 */ sllv $v0, $v1, $a1
|
||
|
/* 321E0 80056DE0 00C31823 */ subu $v1, $a2, $v1
|
||
|
/* 321E4 80056DE4 3C018008 */ lui $at, %hi(D_80078E30)
|
||
|
/* 321E8 80056DE8 00220821 */ addu $at, $at, $v0
|
||
|
/* 321EC 80056DEC 94228E30 */ lhu $v0, %lo(D_80078E30)($at)
|
||
|
/* 321F0 80056DF0 00A31804 */ sllv $v1, $v1, $a1
|
||
|
/* 321F4 80056DF4 A602000C */ sh $v0, 0xc($s0)
|
||
|
/* 321F8 80056DF8 3C028008 */ lui $v0, %hi(D_80078E30)
|
||
|
/* 321FC 80056DFC 00431021 */ addu $v0, $v0, $v1
|
||
|
/* 32200 80056E00 94428E30 */ lhu $v0, %lo(D_80078E30)($v0)
|
||
|
/* 32204 80056E04 A602000E */ sh $v0, 0xe($s0)
|
||
|
/* 32208 80056E08 8E020020 */ lw $v0, 0x20($s0)
|
||
|
/* 3220C 80056E0C 3C048008 */ lui $a0, %hi(D_80078E30)
|
||
|
/* 32210 80056E10 24848E30 */ addiu $a0, $a0, %lo(D_80078E30)
|
||
|
/* 32214 80056E14 10400004 */ beqz $v0, .L80056E28
|
||
|
/* 32218 80056E18 00000000 */ nop
|
||
|
/* 3221C 80056E1C A6050008 */ sh $a1, 8($s0)
|
||
|
/* 32220 80056E20 08015BAB */ j .L80056EAC
|
||
|
/* 32224 80056E24 A605000A */ sh $a1, 0xa($s0)
|
||
|
.L80056E28:
|
||
|
/* 32228 80056E28 3C028008 */ lui $v0, %hi(D_80078151)
|
||
|
/* 3222C 80056E2C 24428151 */ addiu $v0, $v0, %lo(D_80078151)
|
||
|
/* 32230 80056E30 90420000 */ lbu $v0, ($v0)
|
||
|
/* 32234 80056E34 1440000A */ bnez $v0, .L80056E60
|
||
|
/* 32238 80056E38 00000000 */ nop
|
||
|
/* 3223C 80056E3C 86030006 */ lh $v1, 6($s0)
|
||
|
/* 32240 80056E40 84820080 */ lh $v0, 0x80($a0)
|
||
|
/* 32244 80056E44 00620018 */ mult $v1, $v0
|
||
|
/* 32248 80056E48 00004012 */ mflo $t0
|
||
|
/* 3224C 80056E4C 000813C3 */ sra $v0, $t0, 0xf
|
||
|
/* 32250 80056E50 A6020008 */ sh $v0, 8($s0)
|
||
|
/* 32254 80056E54 84820080 */ lh $v0, 0x80($a0)
|
||
|
/* 32258 80056E58 08015BA8 */ j .L80056EA0
|
||
|
/* 3225C 80056E5C 00620018 */ mult $v1, $v0
|
||
|
.L80056E60:
|
||
|
/* 32260 80056E60 86020004 */ lh $v0, 4($s0)
|
||
|
/* 32264 80056E64 86030006 */ lh $v1, 6($s0)
|
||
|
/* 32268 80056E68 00021040 */ sll $v0, $v0, 1
|
||
|
/* 3226C 80056E6C 00441021 */ addu $v0, $v0, $a0
|
||
|
/* 32270 80056E70 84420000 */ lh $v0, ($v0)
|
||
|
/* 32274 80056E74 00620018 */ mult $v1, $v0
|
||
|
/* 32278 80056E78 86020004 */ lh $v0, 4($s0)
|
||
|
/* 3227C 80056E7C 00C21023 */ subu $v0, $a2, $v0
|
||
|
/* 32280 80056E80 00021040 */ sll $v0, $v0, 1
|
||
|
/* 32284 80056E84 00441021 */ addu $v0, $v0, $a0
|
||
|
/* 32288 80056E88 00004012 */ mflo $t0
|
||
|
/* 3228C 80056E8C 00081BC3 */ sra $v1, $t0, 0xf
|
||
|
/* 32290 80056E90 A6030008 */ sh $v1, 8($s0)
|
||
|
/* 32294 80056E94 86030006 */ lh $v1, 6($s0)
|
||
|
/* 32298 80056E98 84420000 */ lh $v0, ($v0)
|
||
|
/* 3229C 80056E9C 00620018 */ mult $v1, $v0
|
||
|
.L80056EA0:
|
||
|
/* 322A0 80056EA0 00004012 */ mflo $t0
|
||
|
/* 322A4 80056EA4 000813C3 */ sra $v0, $t0, 0xf
|
||
|
/* 322A8 80056EA8 A602000A */ sh $v0, 0xa($s0)
|
||
|
.L80056EAC:
|
||
|
/* 322AC 80056EAC E6940004 */ swc1 $f20, 4($s4)
|
||
|
/* 322B0 80056EB0 8FBF0024 */ lw $ra, 0x24($sp)
|
||
|
/* 322B4 80056EB4 8FB40020 */ lw $s4, 0x20($sp)
|
||
|
/* 322B8 80056EB8 8FB3001C */ lw $s3, 0x1c($sp)
|
||
|
/* 322BC 80056EBC 8FB20018 */ lw $s2, 0x18($sp)
|
||
|
/* 322C0 80056EC0 8FB10014 */ lw $s1, 0x14($sp)
|
||
|
/* 322C4 80056EC4 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 322C8 80056EC8 D7B40028 */ ldc1 $f20, 0x28($sp)
|
||
|
/* 322CC 80056ECC 03E00008 */ jr $ra
|
||
|
/* 322D0 80056ED0 27BD0030 */ addiu $sp, $sp, 0x30
|