mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
134 lines
6.2 KiB
ArmAsm
134 lines
6.2 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel GetPartEventFlags
|
|
/* 19BD68 8026D488 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 19BD6C 8026D48C AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 19BD70 8026D490 0080902D */ daddu $s2, $a0, $zero
|
|
/* 19BD74 8026D494 AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 19BD78 8026D498 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 19BD7C 8026D49C AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 19BD80 8026D4A0 8E51000C */ lw $s1, 0xc($s2)
|
|
/* 19BD84 8026D4A4 8E250000 */ lw $a1, ($s1)
|
|
/* 19BD88 8026D4A8 0C0B1EAF */ jal get_variable
|
|
/* 19BD8C 8026D4AC 26310004 */ addiu $s1, $s1, 4
|
|
/* 19BD90 8026D4B0 0040802D */ daddu $s0, $v0, $zero
|
|
/* 19BD94 8026D4B4 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
/* 19BD98 8026D4B8 16020002 */ bne $s0, $v0, .L8026D4C4
|
|
/* 19BD9C 8026D4BC 00000000 */ nop
|
|
/* 19BDA0 8026D4C0 8E500148 */ lw $s0, 0x148($s2)
|
|
.L8026D4C4:
|
|
/* 19BDA4 8026D4C4 8E250000 */ lw $a1, ($s1)
|
|
/* 19BDA8 8026D4C8 26310004 */ addiu $s1, $s1, 4
|
|
/* 19BDAC 8026D4CC 0C0B1EAF */ jal get_variable
|
|
/* 19BDB0 8026D4D0 0240202D */ daddu $a0, $s2, $zero
|
|
/* 19BDB4 8026D4D4 0200202D */ daddu $a0, $s0, $zero
|
|
/* 19BDB8 8026D4D8 8E310000 */ lw $s1, ($s1)
|
|
/* 19BDBC 8026D4DC 0C09A75B */ jal get_actor
|
|
/* 19BDC0 8026D4E0 0040802D */ daddu $s0, $v0, $zero
|
|
/* 19BDC4 8026D4E4 0040202D */ daddu $a0, $v0, $zero
|
|
/* 19BDC8 8026D4E8 0C099117 */ jal get_actor_part
|
|
/* 19BDCC 8026D4EC 0200282D */ daddu $a1, $s0, $zero
|
|
/* 19BDD0 8026D4F0 0240202D */ daddu $a0, $s2, $zero
|
|
/* 19BDD4 8026D4F4 8C46007C */ lw $a2, 0x7c($v0)
|
|
/* 19BDD8 8026D4F8 0C0B2026 */ jal set_variable
|
|
/* 19BDDC 8026D4FC 0220282D */ daddu $a1, $s1, $zero
|
|
/* 19BDE0 8026D500 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 19BDE4 8026D504 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 19BDE8 8026D508 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 19BDEC 8026D50C 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 19BDF0 8026D510 24020002 */ addiu $v0, $zero, 2
|
|
/* 19BDF4 8026D514 03E00008 */ jr $ra
|
|
/* 19BDF8 8026D518 27BD0020 */ addiu $sp, $sp, 0x20
|
|
|
|
/* 19BDFC 8026D51C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 19BE00 8026D520 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 19BE04 8026D524 0080902D */ daddu $s2, $a0, $zero
|
|
/* 19BE08 8026D528 AFBF001C */ sw $ra, 0x1c($sp)
|
|
/* 19BE0C 8026D52C AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 19BE10 8026D530 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 19BE14 8026D534 8E51000C */ lw $s1, 0xc($s2)
|
|
/* 19BE18 8026D538 8E250000 */ lw $a1, ($s1)
|
|
/* 19BE1C 8026D53C 0C0B1EAF */ jal get_variable
|
|
/* 19BE20 8026D540 26310004 */ addiu $s1, $s1, 4
|
|
/* 19BE24 8026D544 0040802D */ daddu $s0, $v0, $zero
|
|
/* 19BE28 8026D548 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
/* 19BE2C 8026D54C 16020002 */ bne $s0, $v0, .L8026D558
|
|
/* 19BE30 8026D550 00000000 */ nop
|
|
/* 19BE34 8026D554 8E500148 */ lw $s0, 0x148($s2)
|
|
.L8026D558:
|
|
/* 19BE38 8026D558 8E250000 */ lw $a1, ($s1)
|
|
/* 19BE3C 8026D55C 26310004 */ addiu $s1, $s1, 4
|
|
/* 19BE40 8026D560 0C0B1EAF */ jal get_variable
|
|
/* 19BE44 8026D564 0240202D */ daddu $a0, $s2, $zero
|
|
/* 19BE48 8026D568 0200202D */ daddu $a0, $s0, $zero
|
|
/* 19BE4C 8026D56C 8E310000 */ lw $s1, ($s1)
|
|
/* 19BE50 8026D570 0C09A75B */ jal get_actor
|
|
/* 19BE54 8026D574 0040802D */ daddu $s0, $v0, $zero
|
|
/* 19BE58 8026D578 0040202D */ daddu $a0, $v0, $zero
|
|
/* 19BE5C 8026D57C 0C099117 */ jal get_actor_part
|
|
/* 19BE60 8026D580 0200282D */ daddu $a1, $s0, $zero
|
|
/* 19BE64 8026D584 AC510080 */ sw $s1, 0x80($v0)
|
|
/* 19BE68 8026D588 8FBF001C */ lw $ra, 0x1c($sp)
|
|
/* 19BE6C 8026D58C 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 19BE70 8026D590 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 19BE74 8026D594 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 19BE78 8026D598 24020002 */ addiu $v0, $zero, 2
|
|
/* 19BE7C 8026D59C 03E00008 */ jr $ra
|
|
/* 19BE80 8026D5A0 27BD0020 */ addiu $sp, $sp, 0x20
|
|
|
|
/* 19BE84 8026D5A4 27BDFFD8 */ addiu $sp, $sp, -0x28
|
|
/* 19BE88 8026D5A8 AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 19BE8C 8026D5AC 0080882D */ daddu $s1, $a0, $zero
|
|
/* 19BE90 8026D5B0 AFBF0020 */ sw $ra, 0x20($sp)
|
|
/* 19BE94 8026D5B4 AFB3001C */ sw $s3, 0x1c($sp)
|
|
/* 19BE98 8026D5B8 AFB20018 */ sw $s2, 0x18($sp)
|
|
/* 19BE9C 8026D5BC AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 19BEA0 8026D5C0 8E30000C */ lw $s0, 0xc($s1)
|
|
/* 19BEA4 8026D5C4 8E050000 */ lw $a1, ($s0)
|
|
/* 19BEA8 8026D5C8 0C0B1EAF */ jal get_variable
|
|
/* 19BEAC 8026D5CC 26100004 */ addiu $s0, $s0, 4
|
|
/* 19BEB0 8026D5D0 0040902D */ daddu $s2, $v0, $zero
|
|
/* 19BEB4 8026D5D4 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
/* 19BEB8 8026D5D8 16420002 */ bne $s2, $v0, .L8026D5E4
|
|
/* 19BEBC 8026D5DC 00000000 */ nop
|
|
/* 19BEC0 8026D5E0 8E320148 */ lw $s2, 0x148($s1)
|
|
.L8026D5E4:
|
|
/* 19BEC4 8026D5E4 8E050000 */ lw $a1, ($s0)
|
|
/* 19BEC8 8026D5E8 26100004 */ addiu $s0, $s0, 4
|
|
/* 19BECC 8026D5EC 0C0B1EAF */ jal get_variable
|
|
/* 19BED0 8026D5F0 0220202D */ daddu $a0, $s1, $zero
|
|
/* 19BED4 8026D5F4 0220202D */ daddu $a0, $s1, $zero
|
|
/* 19BED8 8026D5F8 8E050004 */ lw $a1, 4($s0)
|
|
/* 19BEDC 8026D5FC 8E130000 */ lw $s3, ($s0)
|
|
/* 19BEE0 8026D600 0C0B1EAF */ jal get_variable
|
|
/* 19BEE4 8026D604 0040882D */ daddu $s1, $v0, $zero
|
|
/* 19BEE8 8026D608 0240202D */ daddu $a0, $s2, $zero
|
|
/* 19BEEC 8026D60C 0C09A75B */ jal get_actor
|
|
/* 19BEF0 8026D610 0040802D */ daddu $s0, $v0, $zero
|
|
/* 19BEF4 8026D614 0040202D */ daddu $a0, $v0, $zero
|
|
/* 19BEF8 8026D618 0C099117 */ jal get_actor_part
|
|
/* 19BEFC 8026D61C 0220282D */ daddu $a1, $s1, $zero
|
|
/* 19BF00 8026D620 12000004 */ beqz $s0, .L8026D634
|
|
/* 19BF04 8026D624 0040202D */ daddu $a0, $v0, $zero
|
|
/* 19BF08 8026D628 8C820080 */ lw $v0, 0x80($a0)
|
|
/* 19BF0C 8026D62C 0809B590 */ j .L8026D640
|
|
/* 19BF10 8026D630 00531025 */ or $v0, $v0, $s3
|
|
|
|
.L8026D634:
|
|
/* 19BF14 8026D634 8C820080 */ lw $v0, 0x80($a0)
|
|
/* 19BF18 8026D638 00131827 */ nor $v1, $zero, $s3
|
|
/* 19BF1C 8026D63C 00431024 */ and $v0, $v0, $v1
|
|
.L8026D640:
|
|
/* 19BF20 8026D640 AC820080 */ sw $v0, 0x80($a0)
|
|
/* 19BF24 8026D644 8FBF0020 */ lw $ra, 0x20($sp)
|
|
/* 19BF28 8026D648 8FB3001C */ lw $s3, 0x1c($sp)
|
|
/* 19BF2C 8026D64C 8FB20018 */ lw $s2, 0x18($sp)
|
|
/* 19BF30 8026D650 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 19BF34 8026D654 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 19BF38 8026D658 24020002 */ addiu $v0, $zero, 2
|
|
/* 19BF3C 8026D65C 03E00008 */ jr $ra
|
|
/* 19BF40 8026D660 27BD0028 */ addiu $sp, $sp, 0x28
|
|
|