.set noat # allow manual use of $at .set noreorder # don't insert nops after branches glabel osPfsDeclearPage /* 04389C 8006849C 24020001 */ addiu $v0, $zero, 1 /* 0438A0 800684A0 8FAA0014 */ lw $t2, 0x14($sp) /* 0438A4 800684A4 93AB0013 */ lbu $t3, 0x13($sp) /* 0438A8 800684A8 8FAE0018 */ lw $t6, 0x18($sp) /* 0438AC 800684AC 15600002 */ bnez $t3, .L800684B8 /* 0438B0 800684B0 00007821 */ addu $t7, $zero, $zero /* 0438B4 800684B4 8C820060 */ lw $v0, 0x60($a0) .L800684B8: /* 0438B8 800684B8 00402021 */ addu $a0, $v0, $zero /* 0438BC 800684BC 28820080 */ slti $v0, $a0, 0x80 /* 0438C0 800684C0 1040000A */ beqz $v0, .L800684EC /* 0438C4 800684C4 00041040 */ sll $v0, $a0, 1 /* 0438C8 800684C8 24080003 */ addiu $t0, $zero, 3 /* 0438CC 800684CC 00451821 */ addu $v1, $v0, $a1 .L800684D0: /* 0438D0 800684D0 94620000 */ lhu $v0, ($v1) /* 0438D4 800684D4 10480006 */ beq $v0, $t0, .L800684F0 /* 0438D8 800684D8 24020080 */ addiu $v0, $zero, 0x80 /* 0438DC 800684DC 24840001 */ addiu $a0, $a0, 1 /* 0438E0 800684E0 28820080 */ slti $v0, $a0, 0x80 /* 0438E4 800684E4 1440FFFA */ bnez $v0, .L800684D0 /* 0438E8 800684E8 24630002 */ addiu $v1, $v1, 2 .L800684EC: /* 0438EC 800684EC 24020080 */ addiu $v0, $zero, 0x80 .L800684F0: /* 0438F0 800684F0 14820004 */ bne $a0, $v0, .L80068504 /* 0438F4 800684F4 24030001 */ addiu $v1, $zero, 1 /* 0438F8 800684F8 2402FFFF */ addiu $v0, $zero, -1 /* 0438FC 800684FC 0801A16B */ j .L800685AC /* 043900 80068500 ACE20000 */ sw $v0, ($a3) .L80068504: /* 043904 80068504 AD430000 */ sw $v1, ($t2) /* 043908 80068508 00804021 */ addu $t0, $a0, $zero /* 04390C 8006850C 25040001 */ addiu $a0, $t0, 1 /* 043910 80068510 0066182A */ slt $v1, $v1, $a2 /* 043914 80068514 28820080 */ slti $v0, $a0, 0x80 /* 043918 80068518 00621824 */ and $v1, $v1, $v0 /* 04391C 8006851C 10600015 */ beqz $v1, .L80068574 /* 043920 80068520 01006821 */ addu $t5, $t0, $zero /* 043924 80068524 240C0003 */ addiu $t4, $zero, 3 /* 043928 80068528 00041040 */ sll $v0, $a0, 1 /* 04392C 8006852C 00454821 */ addu $t1, $v0, $a1 .L80068530: /* 043930 80068530 95220000 */ lhu $v0, ($t1) /* 043934 80068534 144C0008 */ bne $v0, $t4, .L80068558 /* 043938 80068538 00081040 */ sll $v0, $t0, 1 /* 04393C 8006853C 00A21021 */ addu $v0, $a1, $v0 /* 043940 80068540 A04B0000 */ sb $t3, ($v0) /* 043944 80068544 A0440001 */ sb $a0, 1($v0) /* 043948 80068548 8D420000 */ lw $v0, ($t2) /* 04394C 8006854C 00804021 */ addu $t0, $a0, $zero /* 043950 80068550 24420001 */ addiu $v0, $v0, 1 /* 043954 80068554 AD420000 */ sw $v0, ($t2) .L80068558: /* 043958 80068558 8D430000 */ lw $v1, ($t2) /* 04395C 8006855C 24840001 */ addiu $a0, $a0, 1 /* 043960 80068560 28820080 */ slti $v0, $a0, 0x80 /* 043964 80068564 0066182A */ slt $v1, $v1, $a2 /* 043968 80068568 00621824 */ and $v1, $v1, $v0 /* 04396C 8006856C 1460FFF0 */ bnez $v1, .L80068530 /* 043970 80068570 25290002 */ addiu $t1, $t1, 2 .L80068574: /* 043974 80068574 24020080 */ addiu $v0, $zero, 0x80 /* 043978 80068578 14820007 */ bne $a0, $v0, .L80068598 /* 04397C 8006857C ACED0000 */ sw $t5, ($a3) /* 043980 80068580 8D420000 */ lw $v0, ($t2) /* 043984 80068584 0046102A */ slt $v0, $v0, $a2 /* 043988 80068588 50400004 */ beql $v0, $zero, .L8006859C /* 04398C 8006858C 00081040 */ sll $v0, $t0, 1 /* 043990 80068590 0801A16B */ j .L800685AC /* 043994 80068594 ADC80000 */ sw $t0, ($t6) .L80068598: /* 043998 80068598 00081040 */ sll $v0, $t0, 1 .L8006859C: /* 04399C 8006859C 00A21021 */ addu $v0, $a1, $v0 /* 0439A0 800685A0 24030001 */ addiu $v1, $zero, 1 /* 0439A4 800685A4 A4430000 */ sh $v1, ($v0) /* 0439A8 800685A8 ADC00000 */ sw $zero, ($t6) .L800685AC: /* 0439AC 800685AC 03E00008 */ jr $ra /* 0439B0 800685B0 01E01021 */ addu $v0, $t7, $zero /* 0439B4 800685B4 00000000 */ nop /* 0439B8 800685B8 00000000 */ nop /* 0439BC 800685BC 00000000 */ nop