papermario/asm/nonmatchings/code_1370_len_7d0/func_80026164.s
Ethan Roseman 84f211a2ae First pass
2020-10-14 22:56:47 -04:00

371 lines
19 KiB
ArmAsm

.set noat # allow manual use of $at
.set noreorder # don't insert nops after branches
glabel func_80026164
/* 1564 80026164 27BDFFC0 */ addiu $sp, $sp, -0x40
/* 1568 80026168 3C048007 */ lui $a0, 0x8007
/* 156C 8002616C 8C8441F4 */ lw $a0, 0x41f4($a0)
/* 1570 80026170 3C058016 */ lui $a1, 0x8016
/* 1574 80026174 24A54000 */ addiu $a1, $a1, 0x4000
/* 1578 80026178 AFB20020 */ sw $s2, 0x20($sp)
/* 157C 8002617C 3C12800A */ lui $s2, 0x800a
/* 1580 80026180 2652A66C */ addiu $s2, $s2, -0x5994
/* 1584 80026184 AFBF003C */ sw $ra, 0x3c($sp)
/* 1588 80026188 AFBE0038 */ sw $fp, 0x38($sp)
/* 158C 8002618C AFB70034 */ sw $s7, 0x34($sp)
/* 1590 80026190 AFB60030 */ sw $s6, 0x30($sp)
/* 1594 80026194 AFB5002C */ sw $s5, 0x2c($sp)
/* 1598 80026198 AFB40028 */ sw $s4, 0x28($sp)
/* 159C 8002619C AFB30024 */ sw $s3, 0x24($sp)
/* 15A0 800261A0 AFB1001C */ sw $s1, 0x1c($sp)
/* 15A4 800261A4 AFB00018 */ sw $s0, 0x18($sp)
/* 15A8 800261A8 3C018007 */ lui $at, 0x8007
/* 15AC 800261AC A42041F0 */ sh $zero, 0x41f0($at)
/* 15B0 800261B0 00041040 */ sll $v0, $a0, 1
/* 15B4 800261B4 00441021 */ addu $v0, $v0, $a0
/* 15B8 800261B8 000210C0 */ sll $v0, $v0, 3
/* 15BC 800261BC 00441021 */ addu $v0, $v0, $a0
/* 15C0 800261C0 00021980 */ sll $v1, $v0, 6
/* 15C4 800261C4 00431021 */ addu $v0, $v0, $v1
/* 15C8 800261C8 00021080 */ sll $v0, $v0, 2
/* 15CC 800261CC 00441023 */ subu $v0, $v0, $a0
/* 15D0 800261D0 00021100 */ sll $v0, $v0, 4
/* 15D4 800261D4 00451021 */ addu $v0, $v0, $a1
/* 15D8 800261D8 3C01800A */ lui $at, 0x800a
/* 15DC 800261DC AC22A674 */ sw $v0, -0x598c($at)
/* 15E0 800261E0 24420230 */ addiu $v0, $v0, 0x230
/* 15E4 800261E4 AE420000 */ sw $v0, ($s2)
/* 15E8 800261E8 3C118007 */ lui $s1, 0x8007
/* 15EC 800261EC 8E313E04 */ lw $s1, 0x3e04($s1)
/* 15F0 800261F0 0C009C68 */ jal func_800271A0
/* 15F4 800261F4 3C13070F */ lui $s3, 0x70f
/* 15F8 800261F8 3C06FF10 */ lui $a2, 0xff10
/* 15FC 800261FC 34C6013F */ ori $a2, $a2, 0x13f
/* 1600 80026200 3C02FE00 */ lui $v0, 0xfe00
/* 1604 80026204 8E500000 */ lw $s0, ($s2)
/* 1608 80026208 3C038000 */ lui $v1, 0x8000
/* 160C 8002620C 0200282D */ daddu $a1, $s0, $zero
/* 1610 80026210 26100008 */ addiu $s0, $s0, 8
/* 1614 80026214 AE500000 */ sw $s0, ($s2)
/* 1618 80026218 ACA20000 */ sw $v0, ($a1)
/* 161C 8002621C 3C02800A */ lui $v0, %hi(nuGfxZBuffer)
/* 1620 80026220 8C42A5DC */ lw $v0, %lo(nuGfxZBuffer)($v0)
/* 1624 80026224 0220202D */ daddu $a0, $s1, $zero
/* 1628 80026228 00431021 */ addu $v0, $v0, $v1
/* 162C 8002622C ACA20004 */ sw $v0, 4($a1)
/* 1630 80026230 26020008 */ addiu $v0, $s0, 8
/* 1634 80026234 AE420000 */ sw $v0, ($s2)
/* 1638 80026238 0C0187A4 */ jal osVirtualToPhysical
/* 163C 8002623C AE060000 */ sw $a2, ($s0)
/* 1640 80026240 3C050050 */ lui $a1, 0x50
/* 1644 80026244 34A503C0 */ ori $a1, $a1, 0x3c0
/* 1648 80026248 3C06D700 */ lui $a2, 0xd700
/* 164C 8002624C 34C60002 */ ori $a2, $a2, 2
/* 1650 80026250 3C07E300 */ lui $a3, 0xe300
/* 1654 80026254 34E70A01 */ ori $a3, $a3, 0xa01
/* 1658 80026258 3C08E300 */ lui $t0, 0xe300
/* 165C 8002625C 35080C00 */ ori $t0, $t0, 0xc00
/* 1660 80026260 3C09E300 */ lui $t1, 0xe300
/* 1664 80026264 35291001 */ ori $t1, $t1, 0x1001
/* 1668 80026268 3C0BE200 */ lui $t3, 0xe200
/* 166C 8002626C 356B001C */ ori $t3, $t3, 0x1c
/* 1670 80026270 3C0A0F0A */ lui $t2, 0xf0a
/* 1674 80026274 354A4000 */ ori $t2, $t2, 0x4000
/* 1678 80026278 3C0CE300 */ lui $t4, 0xe300
/* 167C 8002627C 358C1201 */ ori $t4, $t4, 0x1201
/* 1680 80026280 3C0DFCFF */ lui $t5, 0xfcff
/* 1684 80026284 35ADFFFF */ ori $t5, $t5, 0xffff
/* 1688 80026288 3C0EE200 */ lui $t6, 0xe200
/* 168C 8002628C 35CE1E01 */ ori $t6, $t6, 0x1e01
/* 1690 80026290 3C0FFD88 */ lui $t7, 0xfd88
/* 1694 80026294 35EF003F */ ori $t7, $t7, 0x3f
/* 1698 80026298 3C11F588 */ lui $s1, 0xf588
/* 169C 8002629C 36311000 */ ori $s1, $s1, 0x1000
/* 16A0 800262A0 3673E01C */ ori $s3, $s3, 0xe01c
/* 16A4 800262A4 3C14F580 */ lui $s4, 0xf580
/* 16A8 800262A8 36941000 */ ori $s4, $s4, 0x1000
/* 16AC 800262AC 3C15001F */ lui $s5, 0x1f
/* 16B0 800262B0 36B5C01C */ ori $s5, $s5, 0xc01c
/* 16B4 800262B4 0000B02D */ daddu $s6, $zero, $zero
/* 16B8 800262B8 3C17E400 */ lui $s7, 0xe400
/* 16BC 800262BC 3C19E100 */ lui $t9, 0xe100
/* 16C0 800262C0 3C18F100 */ lui $t8, 0xf100
/* 16C4 800262C4 8E430000 */ lw $v1, ($s2)
/* 16C8 800262C8 241E0098 */ addiu $fp, $zero, 0x98
/* 16CC 800262CC AE020004 */ sw $v0, 4($s0)
/* 16D0 800262D0 3C02ED00 */ lui $v0, 0xed00
/* 16D4 800262D4 0060202D */ daddu $a0, $v1, $zero
/* 16D8 800262D8 24630008 */ addiu $v1, $v1, 8
/* 16DC 800262DC AE430000 */ sw $v1, ($s2)
/* 16E0 800262E0 AC820000 */ sw $v0, ($a0)
/* 16E4 800262E4 24620008 */ addiu $v0, $v1, 8
/* 16E8 800262E8 AC850004 */ sw $a1, 4($a0)
/* 16EC 800262EC AE420000 */ sw $v0, ($s2)
/* 16F0 800262F0 2402FFFF */ addiu $v0, $zero, -1
/* 16F4 800262F4 AC620004 */ sw $v0, 4($v1)
/* 16F8 800262F8 24620010 */ addiu $v0, $v1, 0x10
/* 16FC 800262FC AC660000 */ sw $a2, ($v1)
/* 1700 80026300 AE420000 */ sw $v0, ($s2)
/* 1704 80026304 24620018 */ addiu $v0, $v1, 0x18
/* 1708 80026308 AC670008 */ sw $a3, 8($v1)
/* 170C 8002630C AC60000C */ sw $zero, 0xc($v1)
/* 1710 80026310 AE420000 */ sw $v0, ($s2)
/* 1714 80026314 24620020 */ addiu $v0, $v1, 0x20
/* 1718 80026318 AC680010 */ sw $t0, 0x10($v1)
/* 171C 8002631C AC600014 */ sw $zero, 0x14($v1)
/* 1720 80026320 AE420000 */ sw $v0, ($s2)
/* 1724 80026324 24620028 */ addiu $v0, $v1, 0x28
/* 1728 80026328 AC690018 */ sw $t1, 0x18($v1)
/* 172C 8002632C AC60001C */ sw $zero, 0x1c($v1)
/* 1730 80026330 AE420000 */ sw $v0, ($s2)
/* 1734 80026334 24620030 */ addiu $v0, $v1, 0x30
/* 1738 80026338 AC6B0020 */ sw $t3, 0x20($v1)
/* 173C 8002633C AC6A0024 */ sw $t2, 0x24($v1)
/* 1740 80026340 AE420000 */ sw $v0, ($s2)
/* 1744 80026344 24620038 */ addiu $v0, $v1, 0x38
/* 1748 80026348 AC6C0028 */ sw $t4, 0x28($v1)
/* 174C 8002634C AC60002C */ sw $zero, 0x2c($v1)
/* 1750 80026350 AE420000 */ sw $v0, ($s2)
/* 1754 80026354 2402F3F9 */ addiu $v0, $zero, -0xc07
/* 1758 80026358 AC620034 */ sw $v0, 0x34($v1)
/* 175C 8002635C 24620040 */ addiu $v0, $v1, 0x40
/* 1760 80026360 AC6D0030 */ sw $t5, 0x30($v1)
/* 1764 80026364 AE420000 */ sw $v0, ($s2)
/* 1768 80026368 24020001 */ addiu $v0, $zero, 1
/* 176C 8002636C AC62003C */ sw $v0, 0x3c($v1)
/* 1770 80026370 24620048 */ addiu $v0, $v1, 0x48
/* 1774 80026374 AC6E0038 */ sw $t6, 0x38($v1)
/* 1778 80026378 AE420000 */ sw $v0, ($s2)
/* 177C 8002637C 3C02F900 */ lui $v0, 0xf900
/* 1780 80026380 AC620040 */ sw $v0, 0x40($v1)
/* 1784 80026384 2402007F */ addiu $v0, $zero, 0x7f
/* 1788 80026388 AC620044 */ sw $v0, 0x44($v1)
/* 178C 8002638C 24620050 */ addiu $v0, $v1, 0x50
/* 1790 80026390 AE420000 */ sw $v0, ($s2)
/* 1794 80026394 3C028007 */ lui $v0, 0x8007
/* 1798 80026398 24423E10 */ addiu $v0, $v0, 0x3e10
/* 179C 8002639C AC6F0048 */ sw $t7, 0x48($v1)
/* 17A0 800263A0 AC62004C */ sw $v0, 0x4c($v1)
/* 17A4 800263A4 24620058 */ addiu $v0, $v1, 0x58
/* 17A8 800263A8 AE420000 */ sw $v0, ($s2)
/* 17AC 800263AC 3C020700 */ lui $v0, 0x700
/* 17B0 800263B0 AC620054 */ sw $v0, 0x54($v1)
/* 17B4 800263B4 24620060 */ addiu $v0, $v1, 0x60
/* 17B8 800263B8 AC710050 */ sw $s1, 0x50($v1)
/* 17BC 800263BC AE420000 */ sw $v0, ($s2)
/* 17C0 800263C0 3C02E600 */ lui $v0, 0xe600
/* 17C4 800263C4 AC620058 */ sw $v0, 0x58($v1)
/* 17C8 800263C8 24620068 */ addiu $v0, $v1, 0x68
/* 17CC 800263CC AC60005C */ sw $zero, 0x5c($v1)
/* 17D0 800263D0 AE420000 */ sw $v0, ($s2)
/* 17D4 800263D4 3C02F400 */ lui $v0, 0xf400
/* 17D8 800263D8 AC620060 */ sw $v0, 0x60($v1)
/* 17DC 800263DC 24620070 */ addiu $v0, $v1, 0x70
/* 17E0 800263E0 AC730064 */ sw $s3, 0x64($v1)
/* 17E4 800263E4 AE420000 */ sw $v0, ($s2)
/* 17E8 800263E8 3C02E700 */ lui $v0, 0xe700
/* 17EC 800263EC AC620068 */ sw $v0, 0x68($v1)
/* 17F0 800263F0 24620078 */ addiu $v0, $v1, 0x78
/* 17F4 800263F4 AC60006C */ sw $zero, 0x6c($v1)
/* 17F8 800263F8 AE420000 */ sw $v0, ($s2)
/* 17FC 800263FC 24620080 */ addiu $v0, $v1, 0x80
/* 1800 80026400 AC740070 */ sw $s4, 0x70($v1)
/* 1804 80026404 AC600074 */ sw $zero, 0x74($v1)
/* 1808 80026408 AE420000 */ sw $v0, ($s2)
/* 180C 8002640C 3C02F200 */ lui $v0, 0xf200
/* 1810 80026410 AC620078 */ sw $v0, 0x78($v1)
/* 1814 80026414 AC75007C */ sw $s5, 0x7c($v1)
/* 1818 80026418 0000702D */ daddu $t6, $zero, $zero
.L8002641C:
/* 181C 8002641C 00161C00 */ sll $v1, $s6, 0x10
/* 1820 80026420 00031C03 */ sra $v1, $v1, 0x10
/* 1824 80026424 2474000E */ addiu $s4, $v1, 0xe
/* 1828 80026428 000318C0 */ sll $v1, $v1, 3
/* 182C 8002642C 246200A8 */ addiu $v0, $v1, 0xa8
/* 1830 80026430 00021080 */ sll $v0, $v0, 2
/* 1834 80026434 30420FFF */ andi $v0, $v0, 0xfff
/* 1838 80026438 00029B00 */ sll $s3, $v0, 0xc
/* 183C 8002643C 246200A0 */ addiu $v0, $v1, 0xa0
/* 1840 80026440 00021080 */ sll $v0, $v0, 2
/* 1844 80026444 30420FFF */ andi $v0, $v0, 0xfff
/* 1848 80026448 00028B00 */ sll $s1, $v0, 0xc
/* 184C 8002644C 241500A0 */ addiu $s5, $zero, 0xa0
/* 1850 80026450 02A31023 */ subu $v0, $s5, $v1
/* 1854 80026454 00021080 */ sll $v0, $v0, 2
/* 1858 80026458 30420FFF */ andi $v0, $v0, 0xfff
/* 185C 8002645C 00028300 */ sll $s0, $v0, 0xc
/* 1860 80026460 03C31823 */ subu $v1, $fp, $v1
/* 1864 80026464 00031880 */ sll $v1, $v1, 2
/* 1868 80026468 30630FFF */ andi $v1, $v1, 0xfff
/* 186C 8002646C 00037B00 */ sll $t7, $v1, 0xc
/* 1870 80026470 000E1400 */ sll $v0, $t6, 0x10
.L80026474:
/* 1874 80026474 00023C03 */ sra $a3, $v0, 0x10
/* 1878 80026478 02871823 */ subu $v1, $s4, $a3
/* 187C 8002647C 24020021 */ addiu $v0, $zero, 0x21
/* 1880 80026480 00431023 */ subu $v0, $v0, $v1
/* 1884 80026484 00021FC2 */ srl $v1, $v0, 0x1f
/* 1888 80026488 00431021 */ addu $v0, $v0, $v1
/* 188C 8002648C 3C038007 */ lui $v1, 0x8007
/* 1890 80026490 94634010 */ lhu $v1, 0x4010($v1)
/* 1894 80026494 00021043 */ sra $v0, $v0, 1
/* 1898 80026498 2463FFF1 */ addiu $v1, $v1, -0xf
/* 189C 8002649C 00431023 */ subu $v0, $v0, $v1
/* 18A0 800264A0 00021400 */ sll $v0, $v0, 0x10
/* 18A4 800264A4 00026C03 */ sra $t5, $v0, 0x10
/* 18A8 800264A8 29A20010 */ slti $v0, $t5, 0x10
/* 18AC 800264AC 1040005C */ beqz $v0, .L80026620
/* 18B0 800264B0 25C20001 */ addiu $v0, $t6, 1
/* 18B4 800264B4 05A2005B */ bltzl $t5, .L80026624
/* 18B8 800264B8 0040702D */ daddu $t6, $v0, $zero
/* 18BC 800264BC 3C060400 */ lui $a2, 0x400
/* 18C0 800264C0 34C60400 */ ori $a2, $a2, 0x400
/* 18C4 800264C4 3C0A0400 */ lui $t2, 0x400
/* 18C8 800264C8 354AFC00 */ ori $t2, $t2, 0xfc00
/* 18CC 800264CC 3C0BFC00 */ lui $t3, 0xfc00
/* 18D0 800264D0 356B0400 */ ori $t3, $t3, 0x400
/* 18D4 800264D4 3C0CFC00 */ lui $t4, 0xfc00
/* 18D8 800264D8 358CFC00 */ ori $t4, $t4, 0xfc00
/* 18DC 800264DC 000748C0 */ sll $t1, $a3, 3
/* 18E0 800264E0 25240008 */ addiu $a0, $t1, 8
/* 18E4 800264E4 00042080 */ sll $a0, $a0, 2
/* 18E8 800264E8 30840FFF */ andi $a0, $a0, 0xfff
/* 18EC 800264EC 00972025 */ or $a0, $a0, $s7
/* 18F0 800264F0 02641025 */ or $v0, $s3, $a0
/* 18F4 800264F4 00073940 */ sll $a3, $a3, 5
/* 18F8 800264F8 30E70FFF */ andi $a3, $a3, 0xfff
/* 18FC 800264FC 000D4600 */ sll $t0, $t5, 0x18
/* 1900 80026500 8E430000 */ lw $v1, ($s2)
/* 1904 80026504 02042025 */ or $a0, $s0, $a0
/* 1908 80026508 0060282D */ daddu $a1, $v1, $zero
/* 190C 8002650C 24630008 */ addiu $v1, $v1, 8
/* 1910 80026510 AE430000 */ sw $v1, ($s2)
/* 1914 80026514 ACA20000 */ sw $v0, ($a1)
/* 1918 80026518 02271025 */ or $v0, $s1, $a3
/* 191C 8002651C ACA20004 */ sw $v0, 4($a1)
/* 1920 80026520 24620008 */ addiu $v0, $v1, 8
/* 1924 80026524 AE420000 */ sw $v0, ($s2)
/* 1928 80026528 24620010 */ addiu $v0, $v1, 0x10
/* 192C 8002652C AC790000 */ sw $t9, ($v1)
/* 1930 80026530 AC680004 */ sw $t0, 4($v1)
/* 1934 80026534 AE420000 */ sw $v0, ($s2)
/* 1938 80026538 24620018 */ addiu $v0, $v1, 0x18
/* 193C 8002653C 240500F0 */ addiu $a1, $zero, 0xf0
/* 1940 80026540 00A92823 */ subu $a1, $a1, $t1
/* 1944 80026544 00052880 */ sll $a1, $a1, 2
/* 1948 80026548 30A50FFF */ andi $a1, $a1, 0xfff
/* 194C 8002654C 00B72825 */ or $a1, $a1, $s7
/* 1950 80026550 AC780008 */ sw $t8, 8($v1)
/* 1954 80026554 AC66000C */ sw $a2, 0xc($v1)
/* 1958 80026558 AE420000 */ sw $v0, ($s2)
/* 195C 8002655C 02651025 */ or $v0, $s3, $a1
/* 1960 80026560 240600E8 */ addiu $a2, $zero, 0xe8
/* 1964 80026564 00C93023 */ subu $a2, $a2, $t1
/* 1968 80026568 00063080 */ sll $a2, $a2, 2
/* 196C 8002656C 30C60FFF */ andi $a2, $a2, 0xfff
/* 1970 80026570 AC620010 */ sw $v0, 0x10($v1)
/* 1974 80026574 02261025 */ or $v0, $s1, $a2
/* 1978 80026578 AC620014 */ sw $v0, 0x14($v1)
/* 197C 8002657C 24620020 */ addiu $v0, $v1, 0x20
/* 1980 80026580 350800E0 */ ori $t0, $t0, 0xe0
/* 1984 80026584 AE420000 */ sw $v0, ($s2)
/* 1988 80026588 24620028 */ addiu $v0, $v1, 0x28
/* 198C 8002658C AC790018 */ sw $t9, 0x18($v1)
/* 1990 80026590 AC68001C */ sw $t0, 0x1c($v1)
/* 1994 80026594 AE420000 */ sw $v0, ($s2)
/* 1998 80026598 24620030 */ addiu $v0, $v1, 0x30
/* 199C 8002659C 01E73825 */ or $a3, $t7, $a3
/* 19A0 800265A0 AC780020 */ sw $t8, 0x20($v1)
/* 19A4 800265A4 AC6A0024 */ sw $t2, 0x24($v1)
/* 19A8 800265A8 AE420000 */ sw $v0, ($s2)
/* 19AC 800265AC 24620038 */ addiu $v0, $v1, 0x38
/* 19B0 800265B0 AC640028 */ sw $a0, 0x28($v1)
/* 19B4 800265B4 000D2200 */ sll $a0, $t5, 8
/* 19B8 800265B8 348400E0 */ ori $a0, $a0, 0xe0
/* 19BC 800265BC 00042400 */ sll $a0, $a0, 0x10
/* 19C0 800265C0 AC67002C */ sw $a3, 0x2c($v1)
/* 19C4 800265C4 AE420000 */ sw $v0, ($s2)
/* 19C8 800265C8 24620040 */ addiu $v0, $v1, 0x40
/* 19CC 800265CC AC790030 */ sw $t9, 0x30($v1)
/* 19D0 800265D0 AC640034 */ sw $a0, 0x34($v1)
/* 19D4 800265D4 AE420000 */ sw $v0, ($s2)
/* 19D8 800265D8 24620048 */ addiu $v0, $v1, 0x48
/* 19DC 800265DC 02052825 */ or $a1, $s0, $a1
/* 19E0 800265E0 01E63025 */ or $a2, $t7, $a2
/* 19E4 800265E4 AC780038 */ sw $t8, 0x38($v1)
/* 19E8 800265E8 AC6B003C */ sw $t3, 0x3c($v1)
/* 19EC 800265EC AE420000 */ sw $v0, ($s2)
/* 19F0 800265F0 24620050 */ addiu $v0, $v1, 0x50
/* 19F4 800265F4 348400E0 */ ori $a0, $a0, 0xe0
/* 19F8 800265F8 AC650040 */ sw $a1, 0x40($v1)
/* 19FC 800265FC AC660044 */ sw $a2, 0x44($v1)
/* 1A00 80026600 AE420000 */ sw $v0, ($s2)
/* 1A04 80026604 24620058 */ addiu $v0, $v1, 0x58
/* 1A08 80026608 AC790048 */ sw $t9, 0x48($v1)
/* 1A0C 8002660C AC64004C */ sw $a0, 0x4c($v1)
/* 1A10 80026610 AE420000 */ sw $v0, ($s2)
/* 1A14 80026614 AC780050 */ sw $t8, 0x50($v1)
/* 1A18 80026618 AC6C0054 */ sw $t4, 0x54($v1)
/* 1A1C 8002661C 25C20001 */ addiu $v0, $t6, 1
.L80026620:
/* 1A20 80026620 0040702D */ daddu $t6, $v0, $zero
.L80026624:
/* 1A24 80026624 00021400 */ sll $v0, $v0, 0x10
/* 1A28 80026628 00021403 */ sra $v0, $v0, 0x10
/* 1A2C 8002662C 2842000F */ slti $v0, $v0, 0xf
/* 1A30 80026630 1440FF90 */ bnez $v0, .L80026474
/* 1A34 80026634 000E1400 */ sll $v0, $t6, 0x10
/* 1A38 80026638 26C20001 */ addiu $v0, $s6, 1
/* 1A3C 8002663C 0040B02D */ daddu $s6, $v0, $zero
/* 1A40 80026640 00021400 */ sll $v0, $v0, 0x10
/* 1A44 80026644 00021403 */ sra $v0, $v0, 0x10
/* 1A48 80026648 28420014 */ slti $v0, $v0, 0x14
/* 1A4C 8002664C 1440FF73 */ bnez $v0, .L8002641C
/* 1A50 80026650 0000702D */ daddu $t6, $zero, $zero
/* 1A54 80026654 3C06800A */ lui $a2, 0x800a
/* 1A58 80026658 24C6A66C */ addiu $a2, $a2, -0x5994
/* 1A5C 8002665C 3C038007 */ lui $v1, 0x8007
/* 1A60 80026660 24634010 */ addiu $v1, $v1, 0x4010
/* 1A64 80026664 8CC50000 */ lw $a1, ($a2)
/* 1A68 80026668 3C08800A */ lui $t0, 0x800a
/* 1A6C 8002666C 8D08A674 */ lw $t0, -0x598c($t0)
/* 1A70 80026670 94620000 */ lhu $v0, ($v1)
/* 1A74 80026674 00A0382D */ daddu $a3, $a1, $zero
/* 1A78 80026678 24A50008 */ addiu $a1, $a1, 8
/* 1A7C 8002667C 25040230 */ addiu $a0, $t0, 0x230
/* 1A80 80026680 24420001 */ addiu $v0, $v0, 1
/* 1A84 80026684 A4620000 */ sh $v0, ($v1)
/* 1A88 80026688 3C02E900 */ lui $v0, 0xe900
/* 1A8C 8002668C ACC50000 */ sw $a1, ($a2)
/* 1A90 80026690 ACE20000 */ sw $v0, ($a3)
/* 1A94 80026694 24A20008 */ addiu $v0, $a1, 8
/* 1A98 80026698 ACE00004 */ sw $zero, 4($a3)
/* 1A9C 8002669C ACC20000 */ sw $v0, ($a2)
/* 1AA0 800266A0 3C02DF00 */ lui $v0, 0xdf00
/* 1AA4 800266A4 ACA20000 */ sw $v0, ($a1)
/* 1AA8 800266A8 ACA00004 */ sw $zero, 4($a1)
/* 1AAC 800266AC 24A5FDD8 */ addiu $a1, $a1, -0x228
/* 1AB0 800266B0 00A82823 */ subu $a1, $a1, $t0
/* 1AB4 800266B4 000528C3 */ sra $a1, $a1, 3
/* 1AB8 800266B8 000528C0 */ sll $a1, $a1, 3
/* 1ABC 800266BC 0000302D */ daddu $a2, $zero, $zero
/* 1AC0 800266C0 0C00B331 */ jal nuGfxTaskStart
/* 1AC4 800266C4 3C070004 */ lui $a3, 4
/* 1AC8 800266C8 3C038007 */ lui $v1, 0x8007
/* 1ACC 800266CC 246341F4 */ addiu $v1, $v1, 0x41f4
/* 1AD0 800266D0 8C620000 */ lw $v0, ($v1)
/* 1AD4 800266D4 38420001 */ xori $v0, $v0, 1
/* 1AD8 800266D8 AC620000 */ sw $v0, ($v1)
/* 1ADC 800266DC 8FBF003C */ lw $ra, 0x3c($sp)
/* 1AE0 800266E0 8FBE0038 */ lw $fp, 0x38($sp)
/* 1AE4 800266E4 8FB70034 */ lw $s7, 0x34($sp)
/* 1AE8 800266E8 8FB60030 */ lw $s6, 0x30($sp)
/* 1AEC 800266EC 8FB5002C */ lw $s5, 0x2c($sp)
/* 1AF0 800266F0 8FB40028 */ lw $s4, 0x28($sp)
/* 1AF4 800266F4 8FB30024 */ lw $s3, 0x24($sp)
/* 1AF8 800266F8 8FB20020 */ lw $s2, 0x20($sp)
/* 1AFC 800266FC 8FB1001C */ lw $s1, 0x1c($sp)
/* 1B00 80026700 8FB00018 */ lw $s0, 0x18($sp)
/* 1B04 80026704 03E00008 */ jr $ra
/* 1B08 80026708 27BD0040 */ addiu $sp, $sp, 0x40