mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 13:02:41 +01:00
52 lines
2.2 KiB
ArmAsm
52 lines
2.2 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_800E6C44
|
|
/* 0800F4 800E6C44 0000402D */ daddu $t0, $zero, $zero
|
|
/* 0800F8 800E6C48 0100302D */ daddu $a2, $t0, $zero
|
|
/* 0800FC 800E6C4C 3C0B8008 */ lui $t3, 0x8008
|
|
/* 080100 800E6C50 256B78E0 */ addiu $t3, $t3, 0x78e0
|
|
/* 080104 800E6C54 3C0A8009 */ lui $t2, 0x8009
|
|
/* 080108 800E6C58 254AA680 */ addiu $t2, $t2, -0x5980
|
|
/* 08010C 800E6C5C 24090001 */ addiu $t1, $zero, 1
|
|
/* 080110 800E6C60 3C078011 */ lui $a3, 0x8011
|
|
/* 080114 800E6C64 24E7F290 */ addiu $a3, $a3, -0xd70
|
|
.L800E6C68:
|
|
/* 080118 800E6C68 84E201B4 */ lh $v0, 0x1b4($a3)
|
|
/* 08011C 800E6C6C 50400018 */ beql $v0, $zero, .L800E6CD0
|
|
/* 080120 800E6C70 24C60001 */ addiu $a2, $a2, 1
|
|
/* 080124 800E6C74 00021140 */ sll $v0, $v0, 5
|
|
/* 080128 800E6C78 004B2821 */ addu $a1, $v0, $t3
|
|
/* 08012C 800E6C7C 84A20004 */ lh $v0, 4($a1)
|
|
/* 080130 800E6C80 94A30018 */ lhu $v1, 0x18($a1)
|
|
/* 080134 800E6C84 000210C0 */ sll $v0, $v0, 3
|
|
/* 080138 800E6C88 30630001 */ andi $v1, $v1, 1
|
|
/* 08013C 800E6C8C 10600005 */ beqz $v1, .L800E6CA4
|
|
/* 080140 800E6C90 004A1021 */ addu $v0, $v0, $t2
|
|
/* 080144 800E6C94 8C420000 */ lw $v0, ($v0)
|
|
/* 080148 800E6C98 AC860108 */ sw $a2, 0x108($a0)
|
|
/* 08014C 800E6C9C 08039B2C */ j .L800E6CB0
|
|
/* 080150 800E6CA0 AC89018C */ sw $t1, 0x18c($a0)
|
|
|
|
.L800E6CA4:
|
|
/* 080154 800E6CA4 8C420004 */ lw $v0, 4($v0)
|
|
/* 080158 800E6CA8 AC860108 */ sw $a2, 0x108($a0)
|
|
/* 08015C 800E6CAC AC80018C */ sw $zero, 0x18c($a0)
|
|
.L800E6CB0:
|
|
/* 080160 800E6CB0 AC820000 */ sw $v0, ($a0)
|
|
/* 080164 800E6CB4 8CA20000 */ lw $v0, ($a1)
|
|
/* 080168 800E6CB8 AC820084 */ sw $v0, 0x84($a0)
|
|
/* 08016C 800E6CBC 8CA20014 */ lw $v0, 0x14($a1)
|
|
/* 080170 800E6CC0 25080001 */ addiu $t0, $t0, 1
|
|
/* 080174 800E6CC4 AC820294 */ sw $v0, 0x294($a0)
|
|
/* 080178 800E6CC8 24840004 */ addiu $a0, $a0, 4
|
|
/* 08017C 800E6CCC 24C60001 */ addiu $a2, $a2, 1
|
|
.L800E6CD0:
|
|
/* 080180 800E6CD0 28C2000A */ slti $v0, $a2, 0xa
|
|
/* 080184 800E6CD4 1440FFE4 */ bnez $v0, .L800E6C68
|
|
/* 080188 800E6CD8 24E70002 */ addiu $a3, $a3, 2
|
|
/* 08018C 800E6CDC 03E00008 */ jr $ra
|
|
/* 080190 800E6CE0 0100102D */ daddu $v0, $t0, $zero
|
|
|