.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel func_80029124 /* 4524 80029124 24A5000F */ addiu $a1, $a1, 0xf /* 4528 80029128 2402FFF0 */ addiu $v0, $zero, -0x10 /* 452C 8002912C 00A22824 */ and $a1, $a1, $v0 /* 4530 80029130 14A00003 */ bnez $a1, .L80029140 /* 4534 80029134 0000402D */ daddu $t0, $zero, $zero /* 4538 80029138 03E00008 */ jr $ra /* 453C 8002913C 0100102D */ daddu $v0, $t0, $zero .L80029140: /* 4540 80029140 0000302D */ daddu $a2, $zero, $zero /* 4544 80029144 00C0382D */ daddu $a3, $a2, $zero .L80029148: /* 4548 80029148 94820008 */ lhu $v0, 8($a0) /* 454C 8002914C 14400008 */ bnez $v0, .L80029170 /* 4550 80029150 00000000 */ nop /* 4554 80029154 8C830004 */ lw $v1, 4($a0) /* 4558 80029158 0065102B */ sltu $v0, $v1, $a1 /* 455C 8002915C 14400004 */ bnez $v0, .L80029170 /* 4560 80029160 00000000 */ nop /* 4564 80029164 0080402D */ daddu $t0, $a0, $zero /* 4568 80029168 0060302D */ daddu $a2, $v1, $zero /* 456C 8002916C 8C870000 */ lw $a3, ($a0) .L80029170: /* 4570 80029170 8C840000 */ lw $a0, ($a0) /* 4574 80029174 1480FFF4 */ bnez $a0, .L80029148 /* 4578 80029178 00000000 */ nop /* 457C 8002917C 10C00015 */ beqz $a2, .L800291D4 /* 4580 80029180 24A30010 */ addiu $v1, $a1, 0x10 /* 4584 80029184 00C3102B */ sltu $v0, $a2, $v1 /* 4588 80029188 1440000C */ bnez $v0, .L800291BC /* 458C 8002918C 0100202D */ daddu $a0, $t0, $zero /* 4590 80029190 00861021 */ addu $v0, $a0, $a2 /* 4594 80029194 00451023 */ subu $v0, $v0, $a1 /* 4598 80029198 AC820000 */ sw $v0, ($a0) /* 459C 8002919C 00C31023 */ subu $v0, $a2, $v1 /* 45A0 800291A0 AC820004 */ sw $v0, 4($a0) /* 45A4 800291A4 A4800008 */ sh $zero, 8($a0) /* 45A8 800291A8 8C840000 */ lw $a0, ($a0) /* 45AC 800291AC 24020001 */ addiu $v0, $zero, 1 /* 45B0 800291B0 AC870000 */ sw $a3, ($a0) /* 45B4 800291B4 0800A472 */ j .L800291C8 /* 45B8 800291B8 AC850004 */ sw $a1, 4($a0) .L800291BC: /* 45BC 800291BC 24020001 */ addiu $v0, $zero, 1 /* 45C0 800291C0 AC870000 */ sw $a3, ($a0) /* 45C4 800291C4 AC860004 */ sw $a2, 4($a0) .L800291C8: /* 45C8 800291C8 A4820008 */ sh $v0, 8($a0) /* 45CC 800291CC 03E00008 */ jr $ra /* 45D0 800291D0 24820010 */ addiu $v0, $a0, 0x10 .L800291D4: /* 45D4 800291D4 03E00008 */ jr $ra /* 45D8 800291D8 0000102D */ daddu $v0, $zero, $zero