papermario/asm/nonmatchings/code_197F40/DidActionSucceed.s

25 lines
1.1 KiB
ArmAsm
Raw Normal View History

2020-09-24 05:16:13 +02:00
.set noat # allow manual use of $at
2020-08-04 08:49:11 +02:00
.set noreorder # don't insert nops after branches
glabel DidActionSucceed
2020-09-24 05:16:13 +02:00
/* 1A5794 80276EB4 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 1A5798 80276EB8 AFBF0010 */ sw $ra, 0x10($sp)
/* 1A579C 80276EBC 8C82000C */ lw $v0, 0xc($a0)
/* 1A57A0 80276EC0 3C03800E */ lui $v1, 0x800e
/* 1A57A4 80276EC4 8063C0F1 */ lb $v1, -0x3f0f($v1)
/* 1A57A8 80276EC8 8C450000 */ lw $a1, ($v0)
/* 1A57AC 80276ECC 04610002 */ bgez $v1, .L80276ED8
/* 1A57B0 80276ED0 0000302D */ daddu $a2, $zero, $zero
/* 1A57B4 80276ED4 00C0182D */ daddu $v1, $a2, $zero
2020-08-04 08:49:11 +02:00
.L80276ED8:
2020-09-24 05:16:13 +02:00
/* 1A57B8 80276ED8 00C3102A */ slt $v0, $a2, $v1
/* 1A57BC 80276EDC 54400001 */ bnel $v0, $zero, .L80276EE4
/* 1A57C0 80276EE0 0060302D */ daddu $a2, $v1, $zero
2020-08-04 08:49:11 +02:00
.L80276EE4:
2020-09-24 05:16:13 +02:00
/* 1A57C4 80276EE4 0C0B2026 */ jal set_variable
/* 1A57C8 80276EE8 00000000 */ nop
/* 1A57CC 80276EEC 8FBF0010 */ lw $ra, 0x10($sp)
/* 1A57D0 80276EF0 24020002 */ addiu $v0, $zero, 2
/* 1A57D4 80276EF4 03E00008 */ jr $ra
/* 1A57D8 80276EF8 27BD0018 */ addiu $sp, $sp, 0x18