mirror of
https://github.com/pmret/papermario.git
synced 2024-11-13 22:43:00 +01:00
36 lines
1.7 KiB
ArmAsm
36 lines
1.7 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
glabel func_8004B9E4
|
|
/* 26DE4 8004B9E4 30A500FF */ andi $a1, $a1, 0xff
|
|
/* 26DE8 8004B9E8 240200F0 */ addiu $v0, $zero, 0xf0
|
|
/* 26DEC 8004B9EC 10A20017 */ beq $a1, $v0, .L8004BA4C
|
|
/* 26DF0 8004B9F0 28A20008 */ slti $v0, $a1, 8
|
|
/* 26DF4 8004B9F4 10400013 */ beqz $v0, .L8004BA44
|
|
/* 26DF8 8004B9F8 240200FF */ addiu $v0, $zero, 0xff
|
|
/* 26DFC 8004B9FC 9082008C */ lbu $v0, 0x8c($a0)
|
|
/* 26E00 8004BA00 1045000C */ beq $v0, $a1, .L8004BA34
|
|
/* 26E04 8004BA04 24020006 */ addiu $v0, $zero, 6
|
|
/* 26E08 8004BA08 8C830000 */ lw $v1, ($a0)
|
|
/* 26E0C 8004BA0C A085008C */ sb $a1, 0x8c($a0)
|
|
/* 26E10 8004BA10 A0620044 */ sb $v0, 0x44($v1)
|
|
/* 26E14 8004BA14 8C830000 */ lw $v1, ($a0)
|
|
/* 26E18 8004BA18 24020001 */ addiu $v0, $zero, 1
|
|
/* 26E1C 8004BA1C A0620045 */ sb $v0, 0x45($v1)
|
|
/* 26E20 8004BA20 00051080 */ sll $v0, $a1, 2
|
|
/* 26E24 8004BA24 00821021 */ addu $v0, $a0, $v0
|
|
/* 26E28 8004BA28 8C420064 */ lw $v0, 0x64($v0)
|
|
/* 26E2C 8004BA2C 3C018008 */ lui $at, 0x8008
|
|
/* 26E30 8004BA30 AC22F1F8 */ sw $v0, -0xe08($at)
|
|
.L8004BA34:
|
|
/* 26E34 8004BA34 00851021 */ addu $v0, $a0, $a1
|
|
/* 26E38 8004BA38 90420084 */ lbu $v0, 0x84($v0)
|
|
/* 26E3C 8004BA3C 08012E93 */ j .L8004BA4C
|
|
/* 26E40 8004BA40 A082008D */ sb $v0, 0x8d($a0)
|
|
.L8004BA44:
|
|
/* 26E44 8004BA44 A082008C */ sb $v0, 0x8c($a0)
|
|
/* 26E48 8004BA48 A080008D */ sb $zero, 0x8d($a0)
|
|
.L8004BA4C:
|
|
/* 26E4C 8004BA4C 03E00008 */ jr $ra
|
|
/* 26E50 8004BA50 9082008C */ lbu $v0, 0x8c($a0)
|