mirror of
https://github.com/pmret/papermario.git
synced 2024-11-13 22:43:00 +01:00
60 lines
2.9 KiB
ArmAsm
60 lines
2.9 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_80218638_685068
|
|
/* 685068 80218638 27BDFFE0 */ addiu $sp, $sp, -0x20
|
|
/* 68506C 8021863C AFB10014 */ sw $s1, 0x14($sp)
|
|
/* 685070 80218640 0080882D */ daddu $s1, $a0, $zero
|
|
/* 685074 80218644 AFBF0018 */ sw $ra, 0x18($sp)
|
|
/* 685078 80218648 AFB00010 */ sw $s0, 0x10($sp)
|
|
/* 68507C 8021864C 8E30000C */ lw $s0, 0xc($s1)
|
|
/* 685080 80218650 8E050000 */ lw $a1, ($s0)
|
|
/* 685084 80218654 0C0B1EAF */ jal get_variable
|
|
/* 685088 80218658 26100004 */ addiu $s0, $s0, 4
|
|
/* 68508C 8021865C 0040202D */ daddu $a0, $v0, $zero
|
|
/* 685090 80218660 2402FF81 */ addiu $v0, $zero, -0x7f
|
|
/* 685094 80218664 14820002 */ bne $a0, $v0, .L80218670
|
|
/* 685098 80218668 00000000 */ nop
|
|
/* 68509C 8021866C 8E240148 */ lw $a0, 0x148($s1)
|
|
.L80218670:
|
|
/* 6850A0 80218670 0C09A75B */ jal get_actor
|
|
/* 6850A4 80218674 00000000 */ nop
|
|
/* 6850A8 80218678 0040202D */ daddu $a0, $v0, $zero
|
|
/* 6850AC 8021867C 90830136 */ lbu $v1, 0x136($a0)
|
|
/* 6850B0 80218680 24020047 */ addiu $v0, $zero, 0x47
|
|
/* 6850B4 80218684 1062000B */ beq $v1, $v0, .L802186B4
|
|
/* 6850B8 80218688 0062102A */ slt $v0, $v1, $v0
|
|
/* 6850BC 8021868C 54400011 */ bnel $v0, $zero, .L802186D4
|
|
/* 6850C0 80218690 0220202D */ daddu $a0, $s1, $zero
|
|
/* 6850C4 80218694 28620065 */ slti $v0, $v1, 0x65
|
|
/* 6850C8 80218698 1040000D */ beqz $v0, .L802186D0
|
|
/* 6850CC 8021869C 2862004D */ slti $v0, $v1, 0x4d
|
|
/* 6850D0 802186A0 1440000C */ bnez $v0, .L802186D4
|
|
/* 6850D4 802186A4 0220202D */ daddu $a0, $s1, $zero
|
|
/* 6850D8 802186A8 8E050000 */ lw $a1, ($s0)
|
|
/* 6850DC 802186AC 080861B7 */ j .L802186DC
|
|
/* 6850E0 802186B0 2406FFFF */ addiu $a2, $zero, -1
|
|
.L802186B4:
|
|
/* 6850E4 802186B4 8C8300A8 */ lw $v1, 0xa8($a0)
|
|
/* 6850E8 802186B8 24020001 */ addiu $v0, $zero, 1
|
|
/* 6850EC 802186BC 14620005 */ bne $v1, $v0, .L802186D4
|
|
/* 6850F0 802186C0 0220202D */ daddu $a0, $s1, $zero
|
|
/* 6850F4 802186C4 8E050000 */ lw $a1, ($s0)
|
|
/* 6850F8 802186C8 080861B7 */ j .L802186DC
|
|
/* 6850FC 802186CC 2406FFFF */ addiu $a2, $zero, -1
|
|
.L802186D0:
|
|
/* 685100 802186D0 0220202D */ daddu $a0, $s1, $zero
|
|
.L802186D4:
|
|
/* 685104 802186D4 8E050000 */ lw $a1, ($s0)
|
|
/* 685108 802186D8 0000302D */ daddu $a2, $zero, $zero
|
|
.L802186DC:
|
|
/* 68510C 802186DC 0C0B2026 */ jal set_variable
|
|
/* 685110 802186E0 00000000 */ nop
|
|
/* 685114 802186E4 8FBF0018 */ lw $ra, 0x18($sp)
|
|
/* 685118 802186E8 8FB10014 */ lw $s1, 0x14($sp)
|
|
/* 68511C 802186EC 8FB00010 */ lw $s0, 0x10($sp)
|
|
/* 685120 802186F0 24020002 */ addiu $v0, $zero, 2
|
|
/* 685124 802186F4 03E00008 */ jr $ra
|
|
/* 685128 802186F8 27BD0020 */ addiu $sp, $sp, 0x20
|
|
/* 68512C 802186FC 00000000 */ nop
|