.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80245748 /* 138A88 80245748 0080802D */ daddu $s0, $a0, $zero /* 138A8C 8024574C 3C078025 */ lui $a3, 0x8025 /* 138A90 80245750 24E7EF80 */ addiu $a3, $a3, -0x1080 /* 138A94 80245754 3C068025 */ lui $a2, 0x8025 /* 138A98 80245758 24C6F1D0 */ addiu $a2, $a2, -0xe30 /* 138A9C 8024575C 3C058016 */ lui $a1, 0x8016 /* 138AA0 80245760 24A59D50 */ addiu $a1, $a1, -0x62b0 /* 138AA4 80245764 3C038025 */ lui $v1, 0x8025 /* 138AA8 80245768 2463F1E0 */ addiu $v1, $v1, -0xe20 /* 138AAC 8024576C 02061021 */ addu $v0, $s0, $a2 .L80245770: /* 138AB0 80245770 90420000 */ lbu $v0, ($v0) /* 138AB4 80245774 00021080 */ sll $v0, $v0, 2 /* 138AB8 80245778 00471021 */ addu $v0, $v0, $a3 /* 138ABC 8024577C 8C420000 */ lw $v0, ($v0) /* 138AC0 80245780 90420000 */ lbu $v0, ($v0) /* 138AC4 80245784 50400009 */ beql $v0, $zero, .L802457AC /* 138AC8 80245788 26100001 */ addiu $s0, $s0, 1 /* 138ACC 8024578C 02031021 */ addu $v0, $s0, $v1 /* 138AD0 80245790 90420000 */ lbu $v0, ($v0) /* 138AD4 80245794 00021140 */ sll $v0, $v0, 5 /* 138AD8 80245798 00451021 */ addu $v0, $v0, $a1 /* 138ADC 8024579C 90420000 */ lbu $v0, ($v0) /* 138AE0 802457A0 30420008 */ andi $v0, $v0, 8 /* 138AE4 802457A4 1440FFE1 */ bnez $v0, .L8024572C /* 138AE8 802457A8 26100001 */ addiu $s0, $s0, 1 .L802457AC: /* 138AEC 802457AC 2A020006 */ slti $v0, $s0, 6 /* 138AF0 802457B0 1440FFEF */ bnez $v0, .L80245770 /* 138AF4 802457B4 02061021 */ addu $v0, $s0, $a2