papermario/asm/nonmatchings/code_f4c60_len_4300/ShowChoice.s

44 lines
1.9 KiB
ArmAsm
Raw Normal View History

2020-08-04 08:49:11 +02:00
.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel ShowChoice
/* 0F551C 802D0B6C 27BDFFE8 */ addiu $sp, $sp, -0x18
/* 0F5520 802D0B70 AFB00010 */ sw $s0, 0x10($sp)
/* 0F5524 802D0B74 0080802D */ daddu $s0, $a0, $zero
/* 0F5528 802D0B78 AFBF0014 */ sw $ra, 0x14($sp)
/* 0F552C 802D0B7C 10A00009 */ beqz $a1, .L802D0BA4
/* 0F5530 802D0B80 8E02000C */ lw $v0, 0xc($s0)
/* 0F5534 802D0B84 0C0B1EAF */ jal get_variable
/* 0F5538 802D0B88 8C450000 */ lw $a1, ($v0)
/* 0F553C 802D0B8C 0040202D */ daddu $a0, $v0, $zero
/* 0F5540 802D0B90 26050074 */ addiu $a1, $s0, 0x74
/* 0F5544 802D0B94 0C049640 */ jal load_string
/* 0F5548 802D0B98 AE000074 */ sw $zero, 0x74($s0)
/* 0F554C 802D0B9C 3C01802E */ lui $at, 0x802e
/* 0F5550 802D0BA0 AC22B268 */ sw $v0, -0x4d98($at)
.L802D0BA4:
/* 0F5554 802D0BA4 3C04802E */ lui $a0, 0x802e
/* 0F5558 802D0BA8 2484B268 */ addiu $a0, $a0, -0x4d98
/* 0F555C 802D0BAC 8C820000 */ lw $v0, ($a0)
/* 0F5560 802D0BB0 3C03802E */ lui $v1, 0x802e
/* 0F5564 802D0BB4 8C63B260 */ lw $v1, -0x4da0($v1)
/* 0F5568 802D0BB8 904204E8 */ lbu $v0, 0x4e8($v0)
/* 0F556C 802D0BBC A06204E8 */ sb $v0, 0x4e8($v1)
/* 0F5570 802D0BC0 8C830000 */ lw $v1, ($a0)
/* 0F5574 802D0BC4 304200FF */ andi $v0, $v0, 0xff
/* 0F5578 802D0BC8 AE020084 */ sw $v0, 0x84($s0)
/* 0F557C 802D0BCC 8C6204FC */ lw $v0, 0x4fc($v1)
/* 0F5580 802D0BD0 30420040 */ andi $v0, $v0, 0x40
/* 0F5584 802D0BD4 54400004 */ bnel $v0, $zero, .L802D0BE8
/* 0F5588 802D0BD8 24020001 */ addiu $v0, $zero, 1
/* 0F558C 802D0BDC 8E020074 */ lw $v0, 0x74($s0)
/* 0F5590 802D0BE0 38420001 */ xori $v0, $v0, 1
/* 0F5594 802D0BE4 2C420001 */ sltiu $v0, $v0, 1
.L802D0BE8:
/* 0F5598 802D0BE8 8FBF0014 */ lw $ra, 0x14($sp)
/* 0F559C 802D0BEC 8FB00010 */ lw $s0, 0x10($sp)
/* 0F55A0 802D0BF0 03E00008 */ jr $ra
/* 0F55A4 802D0BF4 27BD0018 */ addiu $sp, $sp, 0x18