mirror of
https://github.com/pmret/papermario.git
synced 2024-11-15 07:22:29 +01:00
53 lines
2.3 KiB
ArmAsm
53 lines
2.3 KiB
ArmAsm
|
.set noat # allow manual use of $at
|
||
|
.set noreorder # don't insert nops after branches
|
||
|
|
||
|
|
||
|
glabel func_800506C8
|
||
|
/* 02BAC8 800506C8 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||
|
/* 02BACC 800506CC AFB00010 */ sw $s0, 0x10($sp)
|
||
|
/* 02BAD0 800506D0 00A0802D */ daddu $s0, $a1, $zero
|
||
|
/* 02BAD4 800506D4 AFB10014 */ sw $s1, 0x14($sp)
|
||
|
/* 02BAD8 800506D8 0000882D */ daddu $s1, $zero, $zero
|
||
|
/* 02BADC 800506DC AFB20018 */ sw $s2, 0x18($sp)
|
||
|
/* 02BAE0 800506E0 0200902D */ daddu $s2, $s0, $zero
|
||
|
/* 02BAE4 800506E4 1080001C */ beqz $a0, .L80050758
|
||
|
/* 02BAE8 800506E8 AFBF001C */ sw $ra, 0x1c($sp)
|
||
|
/* 02BAEC 800506EC 0C0135E5 */ jal func_8004D794
|
||
|
/* 02BAF0 800506F0 00000000 */ nop
|
||
|
/* 02BAF4 800506F4 0040282D */ daddu $a1, $v0, $zero
|
||
|
/* 02BAF8 800506F8 10A00017 */ beqz $a1, .L80050758
|
||
|
/* 02BAFC 800506FC 00000000 */ nop
|
||
|
/* 02BB00 80050700 8CA2016C */ lw $v0, 0x16c($a1)
|
||
|
/* 02BB04 80050704 10500014 */ beq $v0, $s0, .L80050758
|
||
|
/* 02BB08 80050708 324200FF */ andi $v0, $s2, 0xff
|
||
|
/* 02BB0C 8005070C 90A30170 */ lbu $v1, 0x170($a1)
|
||
|
/* 02BB10 80050710 10620003 */ beq $v1, $v0, .L80050720
|
||
|
/* 02BB14 80050714 ACB0016C */ sw $s0, 0x16c($a1)
|
||
|
/* 02BB18 80050718 A0B00170 */ sb $s0, 0x170($a1)
|
||
|
/* 02BB1C 8005071C 24110001 */ addiu $s1, $zero, 1
|
||
|
.L80050720:
|
||
|
/* 02BB20 80050720 00101602 */ srl $v0, $s0, 0x18
|
||
|
/* 02BB24 80050724 3042007F */ andi $v0, $v0, 0x7f
|
||
|
/* 02BB28 80050728 A0A20171 */ sb $v0, 0x171($a1)
|
||
|
/* 02BB2C 8005072C 0000202D */ daddu $a0, $zero, $zero
|
||
|
/* 02BB30 80050730 24060001 */ addiu $a2, $zero, 1
|
||
|
/* 02BB34 80050734 2403025C */ addiu $v1, $zero, 0x25c
|
||
|
.L80050738:
|
||
|
/* 02BB38 80050738 12200002 */ beqz $s1, .L80050744
|
||
|
/* 02BB3C 8005073C 00A31021 */ addu $v0, $a1, $v1
|
||
|
/* 02BB40 80050740 A046004D */ sb $a2, 0x4d($v0)
|
||
|
.L80050744:
|
||
|
/* 02BB44 80050744 A046004E */ sb $a2, 0x4e($v0)
|
||
|
/* 02BB48 80050748 24840001 */ addiu $a0, $a0, 1
|
||
|
/* 02BB4C 8005074C 28820010 */ slti $v0, $a0, 0x10
|
||
|
/* 02BB50 80050750 1440FFF9 */ bnez $v0, .L80050738
|
||
|
/* 02BB54 80050754 24630060 */ addiu $v1, $v1, 0x60
|
||
|
.L80050758:
|
||
|
/* 02BB58 80050758 8FBF001C */ lw $ra, 0x1c($sp)
|
||
|
/* 02BB5C 8005075C 8FB20018 */ lw $s2, 0x18($sp)
|
||
|
/* 02BB60 80050760 8FB10014 */ lw $s1, 0x14($sp)
|
||
|
/* 02BB64 80050764 8FB00010 */ lw $s0, 0x10($sp)
|
||
|
/* 02BB68 80050768 03E00008 */ jr $ra
|
||
|
/* 02BB6C 8005076C 27BD0020 */ addiu $sp, $sp, 0x20
|
||
|
|