mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
54 lines
2.3 KiB
ArmAsm
54 lines
2.3 KiB
ArmAsm
.set noat # allow manual use of $at
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
glabel func_80246BE4
|
|
/* 139F24 80246BE4 00000000 */ nop
|
|
/* 139F28 80246BE8 00620018 */ mult $v1, $v0
|
|
/* 139F2C 80246BEC 00001812 */ mflo $v1
|
|
/* 139F30 80246BF0 00831021 */ addu $v0, $a0, $v1
|
|
/* 139F34 80246BF4 00451021 */ addu $v0, $v0, $a1
|
|
/* 139F38 80246BF8 8E030008 */ lw $v1, 8($s0)
|
|
/* 139F3C 80246BFC 92040003 */ lbu $a0, 3($s0)
|
|
/* 139F40 80246C00 00621821 */ addu $v1, $v1, $v0
|
|
/* 139F44 80246C04 90620000 */ lbu $v0, ($v1)
|
|
/* 139F48 80246C08 1082FFE6 */ beq $a0, $v0, .L80246BA4
|
|
/* 139F4C 80246C0C 00000000 */ nop
|
|
.L80246C10:
|
|
/* 139F50 80246C10 3C028027 */ lui $v0, 0x8027
|
|
/* 139F54 80246C14 8C4200C0 */ lw $v0, 0xc0($v0)
|
|
/* 139F58 80246C18 3C030008 */ lui $v1, 8
|
|
/* 139F5C 80246C1C 00431024 */ and $v0, $v0, $v1
|
|
/* 139F60 80246C20 1040001E */ beqz $v0, .L80246C9C
|
|
/* 139F64 80246C24 00000000 */ nop
|
|
/* 139F68 80246C28 92060005 */ lbu $a2, 5($s0)
|
|
/* 139F6C 80246C2C 82050005 */ lb $a1, 5($s0)
|
|
.L80246C30:
|
|
/* 139F70 80246C30 92020001 */ lbu $v0, 1($s0)
|
|
/* 139F74 80246C34 24420001 */ addiu $v0, $v0, 1
|
|
/* 139F78 80246C38 A2020001 */ sb $v0, 1($s0)
|
|
/* 139F7C 80246C3C 00021600 */ sll $v0, $v0, 0x18
|
|
/* 139F80 80246C40 00022603 */ sra $a0, $v0, 0x18
|
|
/* 139F84 80246C44 0085102A */ slt $v0, $a0, $a1
|
|
/* 139F88 80246C48 104000A2 */ beqz $v0, .L80246ED4
|
|
/* 139F8C 80246C4C 24C2FFFF */ addiu $v0, $a2, -1
|
|
/* 139F90 80246C50 82020004 */ lb $v0, 4($s0)
|
|
/* 139F94 80246C54 00450018 */ mult $v0, $a1
|
|
/* 139F98 80246C58 00001812 */ mflo $v1
|
|
/* 139F9C 80246C5C 82020006 */ lb $v0, 6($s0)
|
|
/* 139FA0 80246C60 00000000 */ nop
|
|
/* 139FA4 80246C64 00620018 */ mult $v1, $v0
|
|
/* 139FA8 80246C68 00001812 */ mflo $v1
|
|
/* 139FAC 80246C6C 82020002 */ lb $v0, 2($s0)
|
|
/* 139FB0 80246C70 00000000 */ nop
|
|
/* 139FB4 80246C74 00A20018 */ mult $a1, $v0
|
|
/* 139FB8 80246C78 00004812 */ mflo $t1
|
|
/* 139FBC 80246C7C 00691021 */ addu $v0, $v1, $t1
|
|
/* 139FC0 80246C80 00441021 */ addu $v0, $v0, $a0
|
|
/* 139FC4 80246C84 8E030008 */ lw $v1, 8($s0)
|
|
/* 139FC8 80246C88 92040003 */ lbu $a0, 3($s0)
|
|
/* 139FCC 80246C8C 00621821 */ addu $v1, $v1, $v0
|
|
/* 139FD0 80246C90 90620000 */ lbu $v0, ($v1)
|
|
/* 139FD4 80246C94 1082FFE6 */ beq $a0, $v0, .L80246C30
|
|
/* 139FD8 80246C98 00000000 */ nop
|