mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
119 lines
6.1 KiB
ArmAsm
119 lines
6.1 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8002A904
|
|
/* 5D04 8002A904 27BDFFF8 */ addiu $sp, $sp, -8
|
|
/* 5D08 8002A908 0080602D */ daddu $t4, $a0, $zero
|
|
/* 5D0C 8002A90C 00A0682D */ daddu $t5, $a1, $zero
|
|
/* 5D10 8002A910 00E0582D */ daddu $t3, $a3, $zero
|
|
/* 5D14 8002A914 3C08800A */ lui $t0, %hi(D_8009A66C)
|
|
/* 5D18 8002A918 2508A66C */ addiu $t0, $t0, %lo(D_8009A66C)
|
|
/* 5D1C 8002A91C 3C02E700 */ lui $v0, 0xe700
|
|
/* 5D20 8002A920 AFB00000 */ sw $s0, ($sp)
|
|
/* 5D24 8002A924 8D070000 */ lw $a3, ($t0)
|
|
/* 5D28 8002A928 97B9001A */ lhu $t9, 0x1a($sp)
|
|
/* 5D2C 8002A92C 97B0001E */ lhu $s0, 0x1e($sp)
|
|
/* 5D30 8002A930 97AF0022 */ lhu $t7, 0x22($sp)
|
|
/* 5D34 8002A934 97B80026 */ lhu $t8, 0x26($sp)
|
|
/* 5D38 8002A938 00E0182D */ daddu $v1, $a3, $zero
|
|
/* 5D3C 8002A93C 24E70008 */ addiu $a3, $a3, 8
|
|
/* 5D40 8002A940 AD070000 */ sw $a3, ($t0)
|
|
/* 5D44 8002A944 AC620000 */ sw $v0, ($v1)
|
|
/* 5D48 8002A948 24E20008 */ addiu $v0, $a3, 8
|
|
/* 5D4C 8002A94C AC600004 */ sw $zero, 4($v1)
|
|
/* 5D50 8002A950 AD020000 */ sw $v0, ($t0)
|
|
/* 5D54 8002A954 3C02DE00 */ lui $v0, %hi(D_DE004580)
|
|
/* 5D58 8002A958 ACE20000 */ sw $v0, ($a3)
|
|
/* 5D5C 8002A95C 3C028007 */ lui $v0, %hi(D_80074580)
|
|
/* 5D60 8002A960 24424580 */ addiu $v0, $v0, %lo(D_DE004580)
|
|
/* 5D64 8002A964 316300FF */ andi $v1, $t3, 0xff
|
|
/* 5D68 8002A968 ACE20004 */ sw $v0, 4($a3)
|
|
/* 5D6C 8002A96C 240200FF */ addiu $v0, $zero, 0xff
|
|
/* 5D70 8002A970 1462000A */ bne $v1, $v0, .L8002A99C
|
|
/* 5D74 8002A974 00C0702D */ daddu $t6, $a2, $zero
|
|
/* 5D78 8002A978 3C05E200 */ lui $a1, 0xe200
|
|
/* 5D7C 8002A97C 34A5001C */ ori $a1, $a1, 0x1c
|
|
/* 5D80 8002A980 3C030F0A */ lui $v1, 0xf0a
|
|
/* 5D84 8002A984 34634000 */ ori $v1, $v1, 0x4000
|
|
/* 5D88 8002A988 3C06FCFF */ lui $a2, 0xfcff
|
|
/* 5D8C 8002A98C 34C6FFFF */ ori $a2, $a2, 0xffff
|
|
/* 5D90 8002A990 3C04FFFD */ lui $a0, 0xfffd
|
|
/* 5D94 8002A994 0800AA6F */ j .L8002A9BC
|
|
/* 5D98 8002A998 3484FCFE */ ori $a0, $a0, 0xfcfe
|
|
.L8002A99C:
|
|
/* 5D9C 8002A99C 3C05E200 */ lui $a1, 0xe200
|
|
/* 5DA0 8002A9A0 34A5001C */ ori $a1, $a1, 0x1c
|
|
/* 5DA4 8002A9A4 3C030050 */ lui $v1, 0x50
|
|
/* 5DA8 8002A9A8 34634240 */ ori $v1, $v1, 0x4240
|
|
/* 5DAC 8002A9AC 3C06FCFF */ lui $a2, 0xfcff
|
|
/* 5DB0 8002A9B0 34C6FFFF */ ori $a2, $a2, 0xffff
|
|
/* 5DB4 8002A9B4 3C04FFFD */ lui $a0, 0xfffd
|
|
/* 5DB8 8002A9B8 3484F6FB */ ori $a0, $a0, 0xf6fb
|
|
.L8002A9BC:
|
|
/* 5DBC 8002A9BC 24E20010 */ addiu $v0, $a3, 0x10
|
|
/* 5DC0 8002A9C0 AD020000 */ sw $v0, ($t0)
|
|
/* 5DC4 8002A9C4 24E20018 */ addiu $v0, $a3, 0x18
|
|
/* 5DC8 8002A9C8 ACE50008 */ sw $a1, 8($a3)
|
|
/* 5DCC 8002A9CC ACE3000C */ sw $v1, 0xc($a3)
|
|
/* 5DD0 8002A9D0 AD020000 */ sw $v0, ($t0)
|
|
/* 5DD4 8002A9D4 ACE60010 */ sw $a2, 0x10($a3)
|
|
/* 5DD8 8002A9D8 ACE40014 */ sw $a0, 0x14($a3)
|
|
/* 5DDC 8002A9DC 3C09E200 */ lui $t1, 0xe200
|
|
/* 5DE0 8002A9E0 3529001C */ ori $t1, $t1, 0x1c
|
|
/* 5DE4 8002A9E4 3C070F0A */ lui $a3, 0xf0a
|
|
/* 5DE8 8002A9E8 34E77008 */ ori $a3, $a3, 0x7008
|
|
/* 5DEC 8002A9EC 3C0AFCFF */ lui $t2, 0xfcff
|
|
/* 5DF0 8002A9F0 354AFFFF */ ori $t2, $t2, 0xffff
|
|
/* 5DF4 8002A9F4 3C08FFFC */ lui $t0, 0xfffc
|
|
/* 5DF8 8002A9F8 3C06800A */ lui $a2, %hi(D_8009A66C)
|
|
/* 5DFC 8002A9FC 24C6A66C */ addiu $a2, $a2, %lo(D_8009A66C)
|
|
/* 5E00 8002AA00 3508F279 */ ori $t0, $t0, 0xf279
|
|
/* 5E04 8002AA04 3C02FA00 */ lui $v0, 0xfa00
|
|
/* 5E08 8002AA08 8CC50000 */ lw $a1, ($a2)
|
|
/* 5E0C 8002AA0C 000C1E00 */ sll $v1, $t4, 0x18
|
|
/* 5E10 8002AA10 00A0202D */ daddu $a0, $a1, $zero
|
|
/* 5E14 8002AA14 24A50008 */ addiu $a1, $a1, 8
|
|
/* 5E18 8002AA18 ACC50000 */ sw $a1, ($a2)
|
|
/* 5E1C 8002AA1C AC820000 */ sw $v0, ($a0)
|
|
/* 5E20 8002AA20 31A200FF */ andi $v0, $t5, 0xff
|
|
/* 5E24 8002AA24 00021400 */ sll $v0, $v0, 0x10
|
|
/* 5E28 8002AA28 00621825 */ or $v1, $v1, $v0
|
|
/* 5E2C 8002AA2C 31C200FF */ andi $v0, $t6, 0xff
|
|
/* 5E30 8002AA30 00021200 */ sll $v0, $v0, 8
|
|
/* 5E34 8002AA34 00621825 */ or $v1, $v1, $v0
|
|
/* 5E38 8002AA38 316200FF */ andi $v0, $t3, 0xff
|
|
/* 5E3C 8002AA3C 00621825 */ or $v1, $v1, $v0
|
|
/* 5E40 8002AA40 24A20008 */ addiu $v0, $a1, 8
|
|
/* 5E44 8002AA44 AC830004 */ sw $v1, 4($a0)
|
|
/* 5E48 8002AA48 31E403FF */ andi $a0, $t7, 0x3ff
|
|
/* 5E4C 8002AA4C 00042380 */ sll $a0, $a0, 0xe
|
|
/* 5E50 8002AA50 ACC20000 */ sw $v0, ($a2)
|
|
/* 5E54 8002AA54 330203FF */ andi $v0, $t8, 0x3ff
|
|
/* 5E58 8002AA58 00021080 */ sll $v0, $v0, 2
|
|
/* 5E5C 8002AA5C 3C03F600 */ lui $v1, 0xf600
|
|
/* 5E60 8002AA60 00431025 */ or $v0, $v0, $v1
|
|
/* 5E64 8002AA64 00822025 */ or $a0, $a0, $v0
|
|
/* 5E68 8002AA68 332303FF */ andi $v1, $t9, 0x3ff
|
|
/* 5E6C 8002AA6C 00031B80 */ sll $v1, $v1, 0xe
|
|
/* 5E70 8002AA70 320203FF */ andi $v0, $s0, 0x3ff
|
|
/* 5E74 8002AA74 00021080 */ sll $v0, $v0, 2
|
|
/* 5E78 8002AA78 00621825 */ or $v1, $v1, $v0
|
|
/* 5E7C 8002AA7C 24A20010 */ addiu $v0, $a1, 0x10
|
|
/* 5E80 8002AA80 ACA40000 */ sw $a0, ($a1)
|
|
/* 5E84 8002AA84 ACA30004 */ sw $v1, 4($a1)
|
|
/* 5E88 8002AA88 ACC20000 */ sw $v0, ($a2)
|
|
/* 5E8C 8002AA8C 3C02E700 */ lui $v0, 0xe700
|
|
/* 5E90 8002AA90 ACA20008 */ sw $v0, 8($a1)
|
|
/* 5E94 8002AA94 24A20018 */ addiu $v0, $a1, 0x18
|
|
/* 5E98 8002AA98 ACA0000C */ sw $zero, 0xc($a1)
|
|
/* 5E9C 8002AA9C ACC20000 */ sw $v0, ($a2)
|
|
/* 5EA0 8002AAA0 24A20020 */ addiu $v0, $a1, 0x20
|
|
/* 5EA4 8002AAA4 ACA90010 */ sw $t1, 0x10($a1)
|
|
/* 5EA8 8002AAA8 ACA70014 */ sw $a3, 0x14($a1)
|
|
/* 5EAC 8002AAAC ACC20000 */ sw $v0, ($a2)
|
|
/* 5EB0 8002AAB0 ACAA0018 */ sw $t2, 0x18($a1)
|
|
/* 5EB4 8002AAB4 ACA8001C */ sw $t0, 0x1c($a1)
|
|
/* 5EB8 8002AAB8 8FB00000 */ lw $s0, ($sp)
|
|
/* 5EBC 8002AABC 03E00008 */ jr $ra
|
|
/* 5EC0 8002AAC0 27BD0008 */ addiu $sp, $sp, 8
|