.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_800579BC /* 32DBC 800579BC 27BDFFE8 */ addiu $sp, $sp, -0x18 /* 32DC0 800579C0 308400FF */ andi $a0, $a0, 0xff /* 32DC4 800579C4 00041140 */ sll $v0, $a0, 5 /* 32DC8 800579C8 3C038008 */ lui $v1, %hi(D_80078E24) /* 32DCC 800579CC 8C638E24 */ lw $v1, %lo(D_80078E24)($v1) /* 32DD0 800579D0 00441023 */ subu $v0, $v0, $a0 /* 32DD4 800579D4 AFBF0010 */ sw $ra, 0x10($sp) /* 32DD8 800579D8 8C63001C */ lw $v1, 0x1c($v1) /* 32DDC 800579DC 00021080 */ sll $v0, $v0, 2 /* 32DE0 800579E0 00623821 */ addu $a3, $v1, $v0 /* 32DE4 800579E4 8CE50064 */ lw $a1, 0x64($a3) /* 32DE8 800579E8 8CE20068 */ lw $v0, 0x68($a3) /* 32DEC 800579EC 00A2102A */ slt $v0, $a1, $v0 /* 32DF0 800579F0 14400018 */ bnez $v0, .L80057A54 /* 32DF4 800579F4 00000000 */ nop /* 32DF8 800579F8 3C028008 */ lui $v0, %hi(D_80078151) /* 32DFC 800579FC 24428151 */ addiu $v0, $v0, %lo(D_80078151) /* 32E00 80057A00 90420000 */ lbu $v0, ($v0) /* 32E04 80057A04 54400008 */ bnel $v0, $zero, .L80057A28 /* 32E08 80057A08 2402007F */ addiu $v0, $zero, 0x7f /* 32E0C 80057A0C 84E3004E */ lh $v1, 0x4e($a3) /* 32E10 80057A10 3C028008 */ lui $v0, %hi(D_80078EB0) /* 32E14 80057A14 84428EB0 */ lh $v0, %lo(D_80078EB0)($v0) /* 32E18 80057A18 00620018 */ mult $v1, $v0 /* 32E1C 80057A1C 00004012 */ mflo $t0 /* 32E20 80057A20 08015E9A */ j .L80057A68 /* 32E24 80057A24 00081040 */ sll $v0, $t0, 1 .L80057A28: /* 32E28 80057A28 84E3004C */ lh $v1, 0x4c($a3) /* 32E2C 80057A2C 00431023 */ subu $v0, $v0, $v1 /* 32E30 80057A30 00021040 */ sll $v0, $v0, 1 /* 32E34 80057A34 84E3004E */ lh $v1, 0x4e($a3) /* 32E38 80057A38 3C018008 */ lui $at, %hi(D_80078E30) /* 32E3C 80057A3C 00220821 */ addu $at, $at, $v0 /* 32E40 80057A40 84228E30 */ lh $v0, %lo(D_80078E30)($at) /* 32E44 80057A44 00620018 */ mult $v1, $v0 /* 32E48 80057A48 00004012 */ mflo $t0 /* 32E4C 80057A4C 08015E9A */ j .L80057A68 /* 32E50 80057A50 00081040 */ sll $v0, $t0, 1 .L80057A54: /* 32E54 80057A54 84E40050 */ lh $a0, 0x50($a3) /* 32E58 80057A58 84E6005A */ lh $a2, 0x5a($a3) /* 32E5C 80057A5C 0C015F2D */ jal func_80057CB4 /* 32E60 80057A60 94E70058 */ lhu $a3, 0x58($a3) /* 32E64 80057A64 00021400 */ sll $v0, $v0, 0x10 .L80057A68: /* 32E68 80057A68 00021403 */ sra $v0, $v0, 0x10 /* 32E6C 80057A6C 8FBF0010 */ lw $ra, 0x10($sp) /* 32E70 80057A70 03E00008 */ jr $ra /* 32E74 80057A74 27BD0018 */ addiu $sp, $sp, 0x18