mirror of
https://github.com/pmret/papermario.git
synced 2024-11-10 04:52:34 +01:00
33 lines
1.5 KiB
ArmAsm
33 lines
1.5 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel is_trigger_bound
|
|
/* DC36C 80145C6C 0000402D */ daddu $t0, $zero, $zero
|
|
/* DC370 80145C70 3C078016 */ lui $a3, %hi(gCurrentTriggerListPtr)
|
|
/* DC374 80145C74 8CE79390 */ lw $a3, %lo(gCurrentTriggerListPtr)($a3)
|
|
.L80145C78:
|
|
/* DC378 80145C78 8CE30000 */ lw $v1, ($a3)
|
|
/* DC37C 80145C7C 5060000F */ beql $v1, $zero, .L80145CBC
|
|
/* DC380 80145C80 25080001 */ addiu $t0, $t0, 1
|
|
/* DC384 80145C84 5064000D */ beql $v1, $a0, .L80145CBC
|
|
/* DC388 80145C88 25080001 */ addiu $t0, $t0, 1
|
|
/* DC38C 80145C8C 8C660000 */ lw $a2, ($v1)
|
|
/* DC390 80145C90 30C20001 */ andi $v0, $a2, 1
|
|
/* DC394 80145C94 10400009 */ beqz $v0, .L80145CBC
|
|
/* DC398 80145C98 25080001 */ addiu $t0, $t0, 1
|
|
/* DC39C 80145C9C 30C20002 */ andi $v0, $a2, 2
|
|
/* DC3A0 80145CA0 10400006 */ beqz $v0, .L80145CBC
|
|
/* DC3A4 80145CA4 00000000 */ nop
|
|
/* DC3A8 80145CA8 8C620010 */ lw $v0, 0x10($v1)
|
|
/* DC3AC 80145CAC 14450004 */ bne $v0, $a1, .L80145CC0
|
|
/* DC3B0 80145CB0 29020040 */ slti $v0, $t0, 0x40
|
|
/* DC3B4 80145CB4 03E00008 */ jr $ra
|
|
/* DC3B8 80145CB8 24020001 */ addiu $v0, $zero, 1
|
|
.L80145CBC:
|
|
/* DC3BC 80145CBC 29020040 */ slti $v0, $t0, 0x40
|
|
.L80145CC0:
|
|
/* DC3C0 80145CC0 1440FFED */ bnez $v0, .L80145C78
|
|
/* DC3C4 80145CC4 24E70004 */ addiu $a3, $a3, 4
|
|
/* DC3C8 80145CC8 03E00008 */ jr $ra
|
|
/* DC3CC 80145CCC 0000102D */ daddu $v0, $zero, $zero
|