papermario/asm/nonmatchings/code_28910_len_5090/func_80050888.s
2021-01-13 00:42:27 +09:00

41 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80050888
/* 2BC88 80050888 10C00002 */ beqz $a2, .L80050894
/* 2BC8C 8005088C 00061200 */ sll $v0, $a2, 8
/* 2BC90 80050890 344600FF */ ori $a2, $v0, 0xff
.L80050894:
/* 2BC94 80050894 1CE00003 */ bgtz $a3, .L800508A4
/* 2BC98 80050898 28E203E9 */ slti $v0, $a3, 0x3e9
/* 2BC9C 8005089C 0801422B */ j .L800508AC
/* 2BCA0 800508A0 24070001 */ addiu $a3, $zero, 1
.L800508A4:
/* 2BCA4 800508A4 50400001 */ beql $v0, $zero, .L800508AC
/* 2BCA8 800508A8 240703E8 */ addiu $a3, $zero, 0x3e8
.L800508AC:
/* 2BCAC 800508AC 8CA2002C */ lw $v0, 0x2c($a1)
/* 2BCB0 800508B0 14C20003 */ bne $a2, $v0, .L800508C0
/* 2BCB4 800508B4 00061400 */ sll $v0, $a2, 0x10
/* 2BCB8 800508B8 03E00008 */ jr $ra
/* 2BCBC 800508BC A4A00036 */ sh $zero, 0x36($a1)
.L800508C0:
/* 2BCC0 800508C0 8CA3002C */ lw $v1, 0x2c($a1)
/* 2BCC4 800508C4 00431023 */ subu $v0, $v0, $v1
/* 2BCC8 800508C8 14E00002 */ bnez $a3, .L800508D4
/* 2BCCC 800508CC 0047001A */ div $zero, $v0, $a3
/* 2BCD0 800508D0 0007000D */ break 7
.L800508D4:
/* 2BCD4 800508D4 2401FFFF */ addiu $at, $zero, -1
/* 2BCD8 800508D8 14E10004 */ bne $a3, $at, .L800508EC
/* 2BCDC 800508DC 3C018000 */ lui $at, 0x8000
/* 2BCE0 800508E0 14410002 */ bne $v0, $at, .L800508EC
/* 2BCE4 800508E4 00000000 */ nop
/* 2BCE8 800508E8 0006000D */ break 6
.L800508EC:
/* 2BCEC 800508EC 00001012 */ mflo $v0
/* 2BCF0 800508F0 A4A70036 */ sh $a3, 0x36($a1)
/* 2BCF4 800508F4 A4A60034 */ sh $a2, 0x34($a1)
/* 2BCF8 800508F8 03E00008 */ jr $ra
/* 2BCFC 800508FC ACA20030 */ sw $v0, 0x30($a1)