papermario/asm/nonmatchings/code_28910_len_5090/func_80050568.s
2020-09-23 23:16:13 -04:00

40 lines
1.8 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80050568
/* 2B968 80050568 8C820050 */ lw $v0, 0x50($a0)
/* 2B96C 8005056C 30A500FF */ andi $a1, $a1, 0xff
/* 2B970 80050570 000221C3 */ sra $a0, $v0, 7
/* 2B974 80050574 00021883 */ sra $v1, $v0, 2
/* 2B978 80050578 00832021 */ addu $a0, $a0, $v1
/* 2B97C 8005057C 30840001 */ andi $a0, $a0, 1
/* 2B980 80050580 00021A03 */ sra $v1, $v0, 8
/* 2B984 80050584 3063003F */ andi $v1, $v1, 0x3f
/* 2B988 80050588 00021100 */ sll $v0, $v0, 4
/* 2B98C 8005058C 304200C0 */ andi $v0, $v0, 0xc0
/* 2B990 80050590 10800007 */ beqz $a0, .L800505B0
/* 2B994 80050594 00621821 */ addu $v1, $v1, $v0
/* 2B998 80050598 30C200FF */ andi $v0, $a2, 0xff
/* 2B99C 8005059C 00430018 */ mult $v0, $v1
/* 2B9A0 800505A0 00003812 */ mflo $a3
/* 2B9A4 800505A4 00071203 */ sra $v0, $a3, 8
/* 2B9A8 800505A8 08014171 */ j .L800505C4
/* 2B9AC 800505AC 00A22821 */ addu $a1, $a1, $v0
.L800505B0:
/* 2B9B0 800505B0 30C200FF */ andi $v0, $a2, 0xff
/* 2B9B4 800505B4 00430018 */ mult $v0, $v1
/* 2B9B8 800505B8 00003812 */ mflo $a3
/* 2B9BC 800505BC 00071203 */ sra $v0, $a3, 8
/* 2B9C0 800505C0 00A22823 */ subu $a1, $a1, $v0
.L800505C4:
/* 2B9C4 800505C4 04A10003 */ bgez $a1, .L800505D4
/* 2B9C8 800505C8 28A20080 */ slti $v0, $a1, 0x80
/* 2B9CC 800505CC 08014177 */ j .L800505DC
/* 2B9D0 800505D0 0000282D */ daddu $a1, $zero, $zero
.L800505D4:
/* 2B9D4 800505D4 50400001 */ beql $v0, $zero, .L800505DC
/* 2B9D8 800505D8 2405007F */ addiu $a1, $zero, 0x7f
.L800505DC:
/* 2B9DC 800505DC 03E00008 */ jr $ra
/* 2B9E0 800505E0 30A200FF */ andi $v0, $a1, 0xff