mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
73 lines
3.7 KiB
ArmAsm
73 lines
3.7 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
glabel func_80027054
|
||
|
/* 2454 80027054 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||
|
/* 2458 80027058 0080282D */ daddu $a1, $a0, $zero
|
||
|
/* 245C 8002705C 2CA20005 */ sltiu $v0, $a1, 5
|
||
|
/* 2460 80027060 1040003B */ beqz $v0, .L80027150
|
||
|
/* 2464 80027064 AFBF0010 */ sw $ra, 0x10($sp)
|
||
|
/* 2468 80027068 00051080 */ sll $v0, $a1, 2
|
||
|
/* 246C 8002706C 3C018009 */ lui $at, %hi(D_80097D28)
|
||
|
/* 2470 80027070 00220821 */ addu $at, $at, $v0
|
||
|
/* 2474 80027074 8C227D28 */ lw $v0, %lo(D_80097D28)($at)
|
||
|
/* 2478 80027078 00400008 */ jr $v0
|
||
|
/* 247C 8002707C 00000000 */ nop
|
||
|
/* 2480 80027080 24040003 */ addiu $a0, $zero, 3
|
||
|
/* 2484 80027084 3C02800A */ lui $v0, %hi(D_8009A630)
|
||
|
/* 2488 80027088 2442A630 */ addiu $v0, $v0, %lo(D_8009A630)
|
||
|
/* 248C 8002708C 3C01800A */ lui $at, %hi(D_8009A5B8)
|
||
|
/* 2490 80027090 AC25A5B8 */ sw $a1, %lo(D_8009A5B8)($at)
|
||
|
/* 2494 80027094 8C430000 */ lw $v1, ($v0)
|
||
|
/* 2498 80027098 2405F0FF */ addiu $a1, $zero, -0xf01
|
||
|
/* 249C 8002709C 00651824 */ and $v1, $v1, $a1
|
||
|
/* 24A0 800270A0 0C0B1192 */ jal func_802C4648
|
||
|
/* 24A4 800270A4 AC430000 */ sw $v1, ($v0)
|
||
|
/* 24A8 800270A8 08009C54 */ j .L80027150
|
||
|
/* 24AC 800270AC 00000000 */ nop
|
||
|
/* 24B0 800270B0 24040001 */ addiu $a0, $zero, 1
|
||
|
/* 24B4 800270B4 3C02800A */ lui $v0, %hi(D_8009A630)
|
||
|
/* 24B8 800270B8 2442A630 */ addiu $v0, $v0, %lo(D_8009A630)
|
||
|
/* 24BC 800270BC 3C01800A */ lui $at, %hi(D_8009A5B8)
|
||
|
/* 24C0 800270C0 AC25A5B8 */ sw $a1, %lo(D_8009A5B8)($at)
|
||
|
/* 24C4 800270C4 8C430000 */ lw $v1, ($v0)
|
||
|
/* 24C8 800270C8 2405F1FF */ addiu $a1, $zero, -0xe01
|
||
|
/* 24CC 800270CC 00651824 */ and $v1, $v1, $a1
|
||
|
/* 24D0 800270D0 08009C49 */ j .L80027124
|
||
|
/* 24D4 800270D4 34630100 */ ori $v1, $v1, 0x100
|
||
|
/* 24D8 800270D8 24040002 */ addiu $a0, $zero, 2
|
||
|
/* 24DC 800270DC 3C02800A */ lui $v0, %hi(D_8009A630)
|
||
|
/* 24E0 800270E0 2442A630 */ addiu $v0, $v0, %lo(D_8009A630)
|
||
|
/* 24E4 800270E4 3C01800A */ lui $at, %hi(D_8009A5B8)
|
||
|
/* 24E8 800270E8 AC25A5B8 */ sw $a1, %lo(D_8009A5B8)($at)
|
||
|
/* 24EC 800270EC 8C430000 */ lw $v1, ($v0)
|
||
|
/* 24F0 800270F0 2405F3FF */ addiu $a1, $zero, -0xc01
|
||
|
/* 24F4 800270F4 00651824 */ and $v1, $v1, $a1
|
||
|
/* 24F8 800270F8 08009C49 */ j .L80027124
|
||
|
/* 24FC 800270FC 34630300 */ ori $v1, $v1, 0x300
|
||
|
/* 2500 80027100 24040002 */ addiu $a0, $zero, 2
|
||
|
/* 2504 80027104 3C02800A */ lui $v0, %hi(D_8009A630)
|
||
|
/* 2508 80027108 2442A630 */ addiu $v0, $v0, %lo(D_8009A630)
|
||
|
/* 250C 8002710C 3C01800A */ lui $at, %hi(D_8009A5B8)
|
||
|
/* 2510 80027110 AC25A5B8 */ sw $a1, %lo(D_8009A5B8)($at)
|
||
|
/* 2514 80027114 8C430000 */ lw $v1, ($v0)
|
||
|
/* 2518 80027118 2405F7FF */ addiu $a1, $zero, -0x801
|
||
|
/* 251C 8002711C 00651824 */ and $v1, $v1, $a1
|
||
|
/* 2520 80027120 34630700 */ ori $v1, $v1, 0x700
|
||
|
.L80027124:
|
||
|
/* 2524 80027124 0C0B117A */ jal func_802C45E8
|
||
|
/* 2528 80027128 AC430000 */ sw $v1, ($v0)
|
||
|
/* 252C 8002712C 08009C54 */ j .L80027150
|
||
|
/* 2530 80027130 00000000 */ nop
|
||
|
/* 2534 80027134 3C03800A */ lui $v1, %hi(D_8009A630)
|
||
|
/* 2538 80027138 2463A630 */ addiu $v1, $v1, %lo(D_8009A630)
|
||
|
/* 253C 8002713C 8C620000 */ lw $v0, ($v1)
|
||
|
/* 2540 80027140 3C01800A */ lui $at, %hi(D_8009A5B8)
|
||
|
/* 2544 80027144 AC25A5B8 */ sw $a1, %lo(D_8009A5B8)($at)
|
||
|
/* 2548 80027148 34420F00 */ ori $v0, $v0, 0xf00
|
||
|
/* 254C 8002714C AC620000 */ sw $v0, ($v1)
|
||
|
.L80027150:
|
||
|
/* 2550 80027150 8FBF0010 */ lw $ra, 0x10($sp)
|
||
|
/* 2554 80027154 03E00008 */ jr $ra
|
||
|
/* 2558 80027158 27BD0018 */ addiu $sp, $sp, 0x18
|