diff --git a/src/game/activemenu.c b/src/game/activemenu.c index bb528e4f8..791113e79 100644 --- a/src/game/activemenu.c +++ b/src/game/activemenu.c @@ -1254,5670 +1254,438 @@ Gfx *amRenderSlot(Gfx *gdl, char *text, s16 x, s16 y, s32 mode, s32 flags) return gdl; } +#if VERSION >= VERSION_NTSC_1_0 +Gfx *amRender(Gfx *gdl) +{ + struct chrdata *chr; + u32 flags; + u32 *colours; + struct gfxvtx *vertices; + s32 mpchrnum; + s16 column; + s16 row; + u32 colour; + s16 slotx; + s16 sloty; + s16 tmp1; + s16 tmp2; + +#if PAL + g_ScaleX = 1; +#else + g_ScaleX = g_ViRes == VIRES_HI ? 2 : 1; +#endif + + g_AmIndex = g_Vars.currentplayernum; + g_Vars.currentplayer->commandingaibot = NULL; + + if (g_Vars.currentplayer->activemenumode != AMMODE_CLOSED) { + // Draw diamond + gdl = text0f153628(gdl); + + if (g_Vars.normmplayerisrunning + && g_AmMenus[g_AmIndex].screenindex >= 2) { + mpchrnum = g_Vars.currentplayer->aibuddynums[g_AmMenus[g_AmIndex].screenindex - 2]; + } + + if (g_AmMenus[g_AmIndex].dstx == -123) { + amCalculateSlotPosition( + g_AmMenus[g_AmIndex].slotnum % 3, + g_AmMenus[g_AmIndex].slotnum / 3, + &g_AmMenus[g_AmIndex].selx, + &g_AmMenus[g_AmIndex].sely); + g_AmMenus[g_AmIndex].dstx = g_AmMenus[g_AmIndex].selx; + g_AmMenus[g_AmIndex].dsty = g_AmMenus[g_AmIndex].sely; + } else { + amCalculateSlotPosition( + g_AmMenus[g_AmIndex].slotnum % 3, + g_AmMenus[g_AmIndex].slotnum / 3, + &g_AmMenus[g_AmIndex].dstx, + &g_AmMenus[g_AmIndex].dsty); + } + + gdl = func0f0d479c(gdl); + + colours = gfxAllocateColours(2); + vertices = gfxAllocateVertices(8); + + gDPPipeSync(gdl++); + gDPSetCycleType(gdl++, G_CYC_1CYCLE); + gDPSetAlphaCompare(gdl++, G_AC_NONE); + gDPSetAlphaDither(gdl++, G_AD_NOISE); + gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); + gSPClearGeometryMode(gdl++, G_CULL_BOTH); + + texSelect(&gdl, NULL, 2, 0, 2, 1, NULL); + + gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); + + // Top + amCalculateSlotPosition(1, 0, &slotx, &sloty); + + vertices[0].x = slotx * 10; + vertices[0].y = sloty * 10; + vertices[0].z = -10; + + // Right + amCalculateSlotPosition(2, 1, &slotx, &sloty); + + vertices[1].x = slotx * 10; + vertices[1].y = sloty * 10; + vertices[1].z = -10; + + // Bottom + amCalculateSlotPosition(1, 2, &slotx, &sloty); + + vertices[2].x = slotx * 10; + vertices[2].y = sloty * 10; + vertices[2].z = -10; + + // Left + amCalculateSlotPosition(0, 1, &slotx, &sloty); + + vertices[3].x = slotx * 10; + vertices[3].y = sloty * 10; + vertices[3].z = -10; + + vertices[4].z = -10; + vertices[5].z = -10; + vertices[6].z = -10; + vertices[7].z = -10; + + tmp2 = (vertices[1].x - vertices[3].x) / 8; + tmp1 = (vertices[2].y - vertices[0].y) / 8; + + vertices[4].x = vertices[0].x; + vertices[4].y = vertices[0].y + tmp1; + vertices[5].x = vertices[1].x - tmp2; + vertices[5].y = vertices[1].y; + vertices[6].x = vertices[2].x; + vertices[6].y = vertices[2].y - tmp1; + vertices[7].x = vertices[3].x + tmp2; + vertices[7].y = vertices[3].y; + + vertices[0].colour = 0; + vertices[1].colour = 0; + vertices[2].colour = 0; + vertices[3].colour = 0; + vertices[4].colour = 4; + vertices[5].colour = 4; + vertices[6].colour = 4; + vertices[7].colour = 4; + + colours[0] = 0x22222200; + colours[1] = 0x0000004f; + + gDPSetColorArray(gdl++, osVirtualToPhysical(colours), 2); + gDPSetVerticeArray(gdl++, osVirtualToPhysical(vertices), 8); + + gDPTri2(gdl++, 4, 5, 6, 6, 7, 4); + gDPTri4(gdl++, 0, 4, 7, 7, 3, 0, 0, 1, 5, 5, 4, 0); + gDPTri4(gdl++, 1, 2, 6, 6, 5, 1, 6, 2, 3, 3, 7, 6); + + gdl = func0f0d49c8(gdl); + + // Draw slots + for (column = 0; column < 3; column++) { + for (row = 0; row < 3; row++) { + s16 slotx; + s16 sloty; + u32 mode; + char text[32]; + s32 buddynum; + + mode = AMSLOTMODE_DEFAULT; + amCalculateSlotPosition(column, row, &slotx, &sloty); + flags = 0; + + if (column + row * 3 == g_AmMenus[g_AmIndex].slotnum) { + mode = AMSLOTMODE_FOCUSED; + } + + if (g_MissionConfig.iscoop && (buddynum = amGetFirstBuddyIndex(), buddynum >= 0)) { + if (mode == AMSLOTMODE_DEFAULT && g_AmMenus[g_AmIndex].screenindex >= 2) { + struct chrdata *chr = g_Vars.aibuddies[buddynum]->chr; + +#if VERSION >= VERSION_NTSC_1_0 + if (var800719a0[row][column] == 7) { + if (chr->hidden & CHRHFLAG_PASSIVE) { + mode = AMSLOTMODE_CURRENT; + } + } else if (var800719a0[row][column] == 1) { + if ((chr->hidden & CHRHFLAG_PASSIVE) == 0) { + mode = AMSLOTMODE_CURRENT; + } + } +#else + if (chr->hidden & CHRHFLAG_PASSIVE) { + if (var800719a0[row][column] == 7) { + mode = AMSLOTMODE_CURRENT; + } + } else { + if (var800719a0[row][column] == 1) { + mode = AMSLOTMODE_CURRENT; + } + } +#endif + } + } else { + if (g_Vars.normmplayerisrunning + && mode == AMSLOTMODE_DEFAULT + && g_AmMenus[g_AmIndex].screenindex >= 2) { + s32 slotcmd = g_AmBotCommands[var800719a0[row][column]]; + s32 botcmd = g_MpAllChrPtrs[mpchrnum]->aibot->command; + + if (slotcmd == botcmd) { + mode = AMSLOTMODE_CURRENT; + } + } + } + + colour = 0xffffffff; + + if (g_Vars.currentplayer->activemenumode == AMMODE_EDIT) { + colour = 0x4f4f4f7f; + } + + amGetSlotDetails(column + row * 3, &flags, text); + + if (column == 1 && row == 1) { + if (!amIsCramped()) { + gdl = amRenderText(gdl, text, colour, slotx, sloty); + } + } else { + gdl = amRenderSlot(gdl, text, slotx, sloty, mode, flags); + } + } + } + + // Render AI bot name and weapon + { + struct g_vars *vars = &g_Vars; + #if VERSION >= VERSION_JPN_FINAL -GLOBAL_ASM( -glabel amRender -/* f10151c: 27bdfeb8 */ addiu $sp,$sp,-328 -/* f101520: 3c0e8007 */ lui $t6,0x8007 -/* f101524: 8dce0c18 */ lw $t6,0xc18($t6) -/* f101528: 24030001 */ li $v1,0x1 -/* f10152c: afbf004c */ sw $ra,0x4c($sp) -/* f101530: afbe0048 */ sw $s8,0x48($sp) -/* f101534: afb70044 */ sw $s7,0x44($sp) -/* f101538: afb60040 */ sw $s6,0x40($sp) -/* f10153c: afb5003c */ sw $s5,0x3c($sp) -/* f101540: afb40038 */ sw $s4,0x38($sp) -/* f101544: afb30034 */ sw $s3,0x34($sp) -/* f101548: afb20030 */ sw $s2,0x30($sp) -/* f10154c: afb1002c */ sw $s1,0x2c($sp) -/* f101550: afb00028 */ sw $s0,0x28($sp) -/* f101554: 146e0005 */ bne $v1,$t6,.JF0f10156c -/* f101558: afa40148 */ sw $a0,0x148($sp) -/* f10155c: 240f0002 */ li $t7,0x2 -/* f101560: 3c018008 */ lui $at,0x8008 -/* f101564: 10000003 */ b .JF0f101574 -/* f101568: ac2f00f4 */ sw $t7,0xf4($at) -.JF0f10156c: -/* f10156c: 3c018008 */ lui $at,0x8008 -/* f101570: ac2300f4 */ sw $v1,0xf4($at) -.JF0f101574: -/* f101574: 3c17800a */ lui $s7,0x800a -/* f101578: 26f7a630 */ addiu $s7,$s7,-22992 -/* f10157c: 8ef8028c */ lw $t8,0x28c($s7) -/* f101580: 8ef90284 */ lw $t9,0x284($s7) -/* f101584: 3c1e800a */ lui $s8,0x800a -/* f101588: 27de28b8 */ addiu $s8,$s8,0x28b8 -/* f10158c: afd80000 */ sw $t8,0x0($s8) -/* f101590: af201c04 */ sw $zero,0x1c04($t9) -/* f101594: 8ee90284 */ lw $t1,0x284($s7) -/* f101598: 912a0250 */ lbu $t2,0x250($t1) -/* f10159c: 5140033d */ beqzl $t2,.JF0f102294 -/* f1015a0: 8fbf004c */ lw $ra,0x4c($sp) -/* f1015a4: 0fc54b55 */ jal text0f153628 -/* f1015a8: 8fa40148 */ lw $a0,0x148($sp) -/* f1015ac: 8eeb0318 */ lw $t3,0x318($s7) -/* f1015b0: afa20148 */ sw $v0,0x148($sp) -/* f1015b4: 51600010 */ beqzl $t3,.JF0f1015f8 -/* f1015b8: 8fd90000 */ lw $t9,0x0($s8) -/* f1015bc: 8fcc0000 */ lw $t4,0x0($s8) -/* f1015c0: 3c02800a */ lui $v0,0x800a -/* f1015c4: 000c68c0 */ sll $t5,$t4,0x3 -/* f1015c8: 01ac6823 */ subu $t5,$t5,$t4 -/* f1015cc: 000d68c0 */ sll $t5,$t5,0x3 -/* f1015d0: 004d1021 */ addu $v0,$v0,$t5 -/* f1015d4: 804227d0 */ lb $v0,0x27d0($v0) -/* f1015d8: 28410002 */ slti $at,$v0,0x2 -/* f1015dc: 54200006 */ bnezl $at,.JF0f1015f8 -/* f1015e0: 8fd90000 */ lw $t9,0x0($s8) -/* f1015e4: 8eee0284 */ lw $t6,0x284($s7) -/* f1015e8: 01c27821 */ addu $t7,$t6,$v0 -/* f1015ec: 91f81be5 */ lbu $t8,0x1be5($t7) -/* f1015f0: afb80134 */ sw $t8,0x134($sp) -/* f1015f4: 8fd90000 */ lw $t9,0x0($s8) -.JF0f1015f8: -/* f1015f8: 3c0a800a */ lui $t2,0x800a -/* f1015fc: 254a27d0 */ addiu $t2,$t2,0x27d0 -/* f101600: 001948c0 */ sll $t1,$t9,0x3 -/* f101604: 01394823 */ subu $t1,$t1,$t9 -/* f101608: 000948c0 */ sll $t1,$t1,0x3 -/* f10160c: 012a8021 */ addu $s0,$t1,$t2 -/* f101610: 860b000a */ lh $t3,0xa($s0) -/* f101614: 2401ff85 */ li $at,-123 -/* f101618: 55610023 */ bnel $t3,$at,.JF0f1016a8 -/* f10161c: 9202000e */ lbu $v0,0xe($s0) -/* f101620: 9202000e */ lbu $v0,0xe($s0) -/* f101624: 24030003 */ li $v1,0x3 -/* f101628: 26060006 */ addiu $a2,$s0,0x6 -/* f10162c: 0043001a */ div $zero,$v0,$v1 -/* f101630: 00002010 */ mfhi $a0 -/* f101634: 00002812 */ mflo $a1 -/* f101638: 00057400 */ sll $t6,$a1,0x10 -/* f10163c: 00046400 */ sll $t4,$a0,0x10 -/* f101640: 14600002 */ bnez $v1,.JF0f10164c -/* f101644: 00000000 */ nop -/* f101648: 0007000d */ break 0x7 -.JF0f10164c: -/* f10164c: 2401ffff */ li $at,-1 -/* f101650: 14610004 */ bne $v1,$at,.JF0f101664 -/* f101654: 3c018000 */ lui $at,0x8000 -/* f101658: 14410002 */ bne $v0,$at,.JF0f101664 -/* f10165c: 00000000 */ nop -/* f101660: 0006000d */ break 0x6 -.JF0f101664: -/* f101664: 000c2403 */ sra $a0,$t4,0x10 -/* f101668: 000e2c03 */ sra $a1,$t6,0x10 -/* f10166c: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f101670: 26070008 */ addiu $a3,$s0,0x8 -/* f101674: 8fd80000 */ lw $t8,0x0($s8) -/* f101678: 3c09800a */ lui $t1,0x800a -/* f10167c: 252927d0 */ addiu $t1,$t1,0x27d0 -/* f101680: 0018c8c0 */ sll $t9,$t8,0x3 -/* f101684: 0338c823 */ subu $t9,$t9,$t8 -/* f101688: 0019c8c0 */ sll $t9,$t9,0x3 -/* f10168c: 03298021 */ addu $s0,$t9,$t1 -/* f101690: 860a0006 */ lh $t2,0x6($s0) -/* f101694: 860b0008 */ lh $t3,0x8($s0) -/* f101698: a60a000a */ sh $t2,0xa($s0) -/* f10169c: 1000000d */ b .JF0f1016d4 -/* f1016a0: a60b000c */ sh $t3,0xc($s0) -/* f1016a4: 9202000e */ lbu $v0,0xe($s0) -.JF0f1016a8: -/* f1016a8: 24010003 */ li $at,0x3 -/* f1016ac: 2606000a */ addiu $a2,$s0,0xa -/* f1016b0: 0041001a */ div $zero,$v0,$at -/* f1016b4: 00002010 */ mfhi $a0 -/* f1016b8: 00002812 */ mflo $a1 -/* f1016bc: 00057400 */ sll $t6,$a1,0x10 -/* f1016c0: 00046400 */ sll $t4,$a0,0x10 -/* f1016c4: 000c2403 */ sra $a0,$t4,0x10 -/* f1016c8: 000e2c03 */ sra $a1,$t6,0x10 -/* f1016cc: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f1016d0: 2607000c */ addiu $a3,$s0,0xc -.JF0f1016d4: -/* f1016d4: 0fc35617 */ jal func0f0d479c -/* f1016d8: 8fa40148 */ lw $a0,0x148($sp) -/* f1016dc: afa20148 */ sw $v0,0x148($sp) -/* f1016e0: 0fc59f77 */ jal gfxAllocateColours -/* f1016e4: 24040002 */ li $a0,0x2 -/* f1016e8: 0040a825 */ move $s5,$v0 -/* f1016ec: 0fc59f5d */ jal gfxAllocateVertices -/* f1016f0: 24040008 */ li $a0,0x8 -/* f1016f4: 8fb80148 */ lw $t8,0x148($sp) -/* f1016f8: 3c09e700 */ lui $t1,0xe700 -/* f1016fc: 3c0cba00 */ lui $t4,0xba00 -/* f101700: 27190008 */ addiu $t9,$t8,0x8 -/* f101704: afb90148 */ sw $t9,0x148($sp) -/* f101708: af000004 */ sw $zero,0x4($t8) -/* f10170c: af090000 */ sw $t1,0x0($t8) -/* f101710: 8faa0148 */ lw $t2,0x148($sp) -/* f101714: 358c1402 */ ori $t4,$t4,0x1402 -/* f101718: 3c0fb900 */ lui $t7,0xb900 -/* f10171c: 254b0008 */ addiu $t3,$t2,0x8 -/* f101720: afab0148 */ sw $t3,0x148($sp) -/* f101724: ad400004 */ sw $zero,0x4($t2) -/* f101728: ad4c0000 */ sw $t4,0x0($t2) -/* f10172c: 8fad0148 */ lw $t5,0x148($sp) -/* f101730: 35ef0002 */ ori $t7,$t7,0x2 -/* f101734: 3c09ba00 */ lui $t1,0xba00 -/* f101738: 25ae0008 */ addiu $t6,$t5,0x8 -/* f10173c: afae0148 */ sw $t6,0x148($sp) -/* f101740: ada00004 */ sw $zero,0x4($t5) -/* f101744: adaf0000 */ sw $t7,0x0($t5) -/* f101748: 8fb80148 */ lw $t8,0x148($sp) -/* f10174c: 35290402 */ ori $t1,$t1,0x402 -/* f101750: 240a0020 */ li $t2,0x20 -/* f101754: 27190008 */ addiu $t9,$t8,0x8 -/* f101758: afb90148 */ sw $t9,0x148($sp) -/* f10175c: af0a0004 */ sw $t2,0x4($t8) -/* f101760: af090000 */ sw $t1,0x0($t8) -/* f101764: 8fab0148 */ lw $t3,0x148($sp) -/* f101768: 3c0dfc12 */ lui $t5,0xfc12 -/* f10176c: 35ad7e24 */ ori $t5,$t5,0x7e24 -/* f101770: 256c0008 */ addiu $t4,$t3,0x8 -/* f101774: afac0148 */ sw $t4,0x148($sp) -/* f101778: 240ef9fc */ li $t6,-1540 -/* f10177c: ad6e0004 */ sw $t6,0x4($t3) -/* f101780: ad6d0000 */ sw $t5,0x0($t3) -/* f101784: 8faf0148 */ lw $t7,0x148($sp) -/* f101788: 24093000 */ li $t1,0x3000 -/* f10178c: 3c19b600 */ lui $t9,0xb600 -/* f101790: 25f80008 */ addiu $t8,$t7,0x8 -/* f101794: afb80148 */ sw $t8,0x148($sp) -/* f101798: ade90004 */ sw $t1,0x4($t7) -/* f10179c: adf90000 */ sw $t9,0x0($t7) -/* f1017a0: 240b0001 */ li $t3,0x1 -/* f1017a4: 240a0002 */ li $t2,0x2 -/* f1017a8: 00408025 */ move $s0,$v0 -/* f1017ac: afaa0010 */ sw $t2,0x10($sp) -/* f1017b0: afab0014 */ sw $t3,0x14($sp) -/* f1017b4: afa00018 */ sw $zero,0x18($sp) -/* f1017b8: 27a40148 */ addiu $a0,$sp,0x148 -/* f1017bc: 00002825 */ move $a1,$zero -/* f1017c0: 24060002 */ li $a2,0x2 -/* f1017c4: 0fc2d290 */ jal texSelect -/* f1017c8: 00003825 */ move $a3,$zero -/* f1017cc: 8fac0148 */ lw $t4,0x148($sp) -/* f1017d0: 3c0eb900 */ lui $t6,0xb900 -/* f1017d4: 3c0f0050 */ lui $t7,0x50 -/* f1017d8: 258d0008 */ addiu $t5,$t4,0x8 -/* f1017dc: 27b3012a */ addiu $s3,$sp,0x12a -/* f1017e0: 27b40128 */ addiu $s4,$sp,0x128 -/* f1017e4: afad0148 */ sw $t5,0x148($sp) -/* f1017e8: 35ef4240 */ ori $t7,$t7,0x4240 -/* f1017ec: 35ce031d */ ori $t6,$t6,0x31d -/* f1017f0: 02803825 */ move $a3,$s4 -/* f1017f4: 02603025 */ move $a2,$s3 -/* f1017f8: 24040001 */ li $a0,0x1 -/* f1017fc: 00002825 */ move $a1,$zero -/* f101800: ad8e0000 */ sw $t6,0x0($t4) -/* f101804: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f101808: ad8f0004 */ sw $t7,0x4($t4) -/* f10180c: 87b8012a */ lh $t8,0x12a($sp) -/* f101810: 2411000a */ li $s1,0xa -/* f101814: 2412fff6 */ li $s2,-10 -/* f101818: 03110019 */ multu $t8,$s1 -/* f10181c: 24040002 */ li $a0,0x2 -/* f101820: 24050001 */ li $a1,0x1 -/* f101824: 02603025 */ move $a2,$s3 -/* f101828: 02803825 */ move $a3,$s4 -/* f10182c: 0000c812 */ mflo $t9 -/* f101830: a6190000 */ sh $t9,0x0($s0) -/* f101834: 87a90128 */ lh $t1,0x128($sp) -/* f101838: a6120004 */ sh $s2,0x4($s0) -/* f10183c: 01310019 */ multu $t1,$s1 -/* f101840: 00005012 */ mflo $t2 -/* f101844: a60a0002 */ sh $t2,0x2($s0) -/* f101848: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f10184c: 00000000 */ nop -/* f101850: 87ab012a */ lh $t3,0x12a($sp) -/* f101854: 24040001 */ li $a0,0x1 -/* f101858: 24050002 */ li $a1,0x2 -/* f10185c: 01710019 */ multu $t3,$s1 -/* f101860: 02603025 */ move $a2,$s3 -/* f101864: 02803825 */ move $a3,$s4 -/* f101868: 00006012 */ mflo $t4 -/* f10186c: a60c000c */ sh $t4,0xc($s0) -/* f101870: 87ad0128 */ lh $t5,0x128($sp) -/* f101874: a6120010 */ sh $s2,0x10($s0) -/* f101878: 01b10019 */ multu $t5,$s1 -/* f10187c: 00007012 */ mflo $t6 -/* f101880: a60e000e */ sh $t6,0xe($s0) -/* f101884: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f101888: 00000000 */ nop -/* f10188c: 87af012a */ lh $t7,0x12a($sp) -/* f101890: 00002025 */ move $a0,$zero -/* f101894: 24050001 */ li $a1,0x1 -/* f101898: 01f10019 */ multu $t7,$s1 -/* f10189c: 02603025 */ move $a2,$s3 -/* f1018a0: 02803825 */ move $a3,$s4 -/* f1018a4: 0000c012 */ mflo $t8 -/* f1018a8: a6180018 */ sh $t8,0x18($s0) -/* f1018ac: 87b90128 */ lh $t9,0x128($sp) -/* f1018b0: a612001c */ sh $s2,0x1c($s0) -/* f1018b4: 03310019 */ multu $t9,$s1 -/* f1018b8: 00004812 */ mflo $t1 -/* f1018bc: a609001a */ sh $t1,0x1a($s0) -/* f1018c0: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f1018c4: 00000000 */ nop -/* f1018c8: 87aa012a */ lh $t2,0x12a($sp) -/* f1018cc: 8602000c */ lh $v0,0xc($s0) -/* f1018d0: 8607001a */ lh $a3,0x1a($s0) -/* f1018d4: 01510019 */ multu $t2,$s1 -/* f1018d8: 86030002 */ lh $v1,0x2($s0) -/* f1018dc: 00e33023 */ subu $a2,$a3,$v1 -/* f1018e0: 00005812 */ mflo $t3 -/* f1018e4: a60b0024 */ sh $t3,0x24($s0) -/* f1018e8: 87ac0128 */ lh $t4,0x128($sp) -/* f1018ec: 86050024 */ lh $a1,0x24($s0) -/* f1018f0: 860b0000 */ lh $t3,0x0($s0) -/* f1018f4: 01910019 */ multu $t4,$s1 -/* f1018f8: 00452023 */ subu $a0,$v0,$a1 -/* f1018fc: a60b0030 */ sh $t3,0x30($s0) -/* f101900: a6120028 */ sh $s2,0x28($s0) -/* f101904: a6120034 */ sh $s2,0x34($s0) -/* f101908: a6120040 */ sh $s2,0x40($s0) -/* f10190c: a612004c */ sh $s2,0x4c($s0) -/* f101910: a6120058 */ sh $s2,0x58($s0) -/* f101914: a2000007 */ sb $zero,0x7($s0) -/* f101918: a2000013 */ sb $zero,0x13($s0) -/* f10191c: 00006812 */ mflo $t5 -/* f101920: a60d0026 */ sh $t5,0x26($s0) -/* f101924: 04810003 */ bgez $a0,.JF0f101934 -/* f101928: 000470c3 */ sra $t6,$a0,0x3 -/* f10192c: 24810007 */ addiu $at,$a0,0x7 -/* f101930: 000170c3 */ sra $t6,$at,0x3 -.JF0f101934: -/* f101934: 000e7c00 */ sll $t7,$t6,0x10 -/* f101938: 000fc403 */ sra $t8,$t7,0x10 -/* f10193c: 03002025 */ move $a0,$t8 -/* f101940: 04c10003 */ bgez $a2,.JF0f101950 -/* f101944: 0006c8c3 */ sra $t9,$a2,0x3 -/* f101948: 24c10007 */ addiu $at,$a2,0x7 -/* f10194c: 0001c8c3 */ sra $t9,$at,0x3 -.JF0f101950: -/* f101950: 00446823 */ subu $t5,$v0,$a0 -/* f101954: 03205025 */ move $t2,$t9 -/* f101958: 24020004 */ li $v0,0x4 -/* f10195c: 860e000e */ lh $t6,0xe($s0) -/* f101960: 860f0018 */ lh $t7,0x18($s0) -/* f101964: 86090026 */ lh $t1,0x26($s0) -/* f101968: 00eac023 */ subu $t8,$a3,$t2 -/* f10196c: 006a6021 */ addu $t4,$v1,$t2 -/* f101970: 00a4c821 */ addu $t9,$a1,$a0 -/* f101974: a60c0032 */ sh $t4,0x32($s0) -/* f101978: a60d003c */ sh $t5,0x3c($s0) -/* f10197c: a618004a */ sh $t8,0x4a($s0) -/* f101980: a6190054 */ sh $t9,0x54($s0) -/* f101984: a200001f */ sb $zero,0x1f($s0) -/* f101988: a200002b */ sb $zero,0x2b($s0) -/* f10198c: a2020037 */ sb $v0,0x37($s0) -/* f101990: a2020043 */ sb $v0,0x43($s0) -/* f101994: a202004f */ sb $v0,0x4f($s0) -/* f101998: a202005b */ sb $v0,0x5b($s0) -/* f10199c: 3c0a2222 */ lui $t2,0x2222 -/* f1019a0: a60e003e */ sh $t6,0x3e($s0) -/* f1019a4: a60f0048 */ sh $t7,0x48($s0) -/* f1019a8: a6090056 */ sh $t1,0x56($s0) -/* f1019ac: 354a2200 */ ori $t2,$t2,0x2200 -/* f1019b0: 240b004f */ li $t3,0x4f -/* f1019b4: aeaa0000 */ sw $t2,0x0($s5) -/* f1019b8: aeab0004 */ sw $t3,0x4($s5) -/* f1019bc: 8fb10148 */ lw $s1,0x148($sp) -/* f1019c0: 3c0e0704 */ lui $t6,0x704 -/* f1019c4: 35ce0008 */ ori $t6,$t6,0x8 -/* f1019c8: 262d0008 */ addiu $t5,$s1,0x8 -/* f1019cc: afad0148 */ sw $t5,0x148($sp) -/* f1019d0: 02a02025 */ move $a0,$s5 -/* f1019d4: 0c012b34 */ jal osVirtualToPhysical -/* f1019d8: ae2e0000 */ sw $t6,0x0($s1) -/* f1019dc: ae220004 */ sw $v0,0x4($s1) -/* f1019e0: 8fb20148 */ lw $s2,0x148($sp) -/* f1019e4: 3c190470 */ lui $t9,0x470 -/* f1019e8: 37390060 */ ori $t9,$t9,0x60 -/* f1019ec: 26580008 */ addiu $t8,$s2,0x8 -/* f1019f0: afb80148 */ sw $t8,0x148($sp) -/* f1019f4: 02002025 */ move $a0,$s0 -/* f1019f8: 0c012b34 */ jal osVirtualToPhysical -/* f1019fc: ae590000 */ sw $t9,0x0($s2) -/* f101a00: ae420004 */ sw $v0,0x4($s2) -/* f101a04: 8fa90148 */ lw $t1,0x148($sp) -/* f101a08: 3c0bb100 */ lui $t3,0xb100 -/* f101a0c: 356b0046 */ ori $t3,$t3,0x46 -/* f101a10: 252a0008 */ addiu $t2,$t1,0x8 -/* f101a14: afaa0148 */ sw $t2,0x148($sp) -/* f101a18: 240c7654 */ li $t4,0x7654 -/* f101a1c: ad2c0004 */ sw $t4,0x4($t1) -/* f101a20: ad2b0000 */ sw $t3,0x0($t1) -/* f101a24: 8fad0148 */ lw $t5,0x148($sp) -/* f101a28: 3c0fb100 */ lui $t7,0xb100 -/* f101a2c: 3c184510 */ lui $t8,0x4510 -/* f101a30: 25ae0008 */ addiu $t6,$t5,0x8 -/* f101a34: afae0148 */ sw $t6,0x148($sp) -/* f101a38: 37183740 */ ori $t8,$t8,0x3740 -/* f101a3c: 35ef0507 */ ori $t7,$t7,0x507 -/* f101a40: adaf0000 */ sw $t7,0x0($t5) -/* f101a44: adb80004 */ sw $t8,0x4($t5) -/* f101a48: 8fb90148 */ lw $t9,0x148($sp) -/* f101a4c: 3c0b7326 */ lui $t3,0x7326 -/* f101a50: 3c0ab100 */ lui $t2,0xb100 -/* f101a54: 27290008 */ addiu $t1,$t9,0x8 -/* f101a58: afa90148 */ sw $t1,0x148($sp) -/* f101a5c: 354a6316 */ ori $t2,$t2,0x6316 -/* f101a60: 356b5621 */ ori $t3,$t3,0x5621 -/* f101a64: af2b0004 */ sw $t3,0x4($t9) -/* f101a68: af2a0000 */ sw $t2,0x0($t9) -/* f101a6c: 0fc356a2 */ jal func0f0d49c8 -/* f101a70: 8fa40148 */ lw $a0,0x148($sp) -/* f101a74: 3c168007 */ lui $s6,0x8007 -/* f101a78: afa20148 */ sw $v0,0x148($sp) -/* f101a7c: 26d61ed0 */ addiu $s6,$s6,0x1ed0 -/* f101a80: 00009825 */ move $s3,$zero -/* f101a84: 27b500cc */ addiu $s5,$sp,0xcc -/* f101a88: 00008825 */ move $s1,$zero -.JF0f101a8c: -/* f101a8c: 00132400 */ sll $a0,$s3,0x10 -.JF0f101a90: -/* f101a90: 00112c00 */ sll $a1,$s1,0x10 -/* f101a94: 00056c03 */ sra $t5,$a1,0x10 -/* f101a98: 00046403 */ sra $t4,$a0,0x10 -/* f101a9c: 00008025 */ move $s0,$zero -/* f101aa0: 01802025 */ move $a0,$t4 -/* f101aa4: 01a02825 */ move $a1,$t5 -/* f101aa8: 27a600f2 */ addiu $a2,$sp,0xf2 -/* f101aac: 27a700f0 */ addiu $a3,$sp,0xf0 -/* f101ab0: 0fc3ffc5 */ jal amCalculateSlotPosition -/* f101ab4: 2414ffff */ li $s4,-1 -/* f101ab8: 8fcf0000 */ lw $t7,0x0($s8) -/* f101abc: 3c19800a */ lui $t9,0x800a -/* f101ac0: 00117080 */ sll $t6,$s1,0x2 -/* f101ac4: 000fc0c0 */ sll $t8,$t7,0x3 -/* f101ac8: 030fc023 */ subu $t8,$t8,$t7 -/* f101acc: 0018c0c0 */ sll $t8,$t8,0x3 -/* f101ad0: 0338c821 */ addu $t9,$t9,$t8 -/* f101ad4: 933927de */ lbu $t9,0x27de($t9) -/* f101ad8: 01d17023 */ subu $t6,$t6,$s1 -/* f101adc: 026e9021 */ addu $s2,$s3,$t6 -/* f101ae0: 16590002 */ bne $s2,$t9,.JF0f101aec -/* f101ae4: afa00140 */ sw $zero,0x140($sp) -/* f101ae8: 24100001 */ li $s0,0x1 -.JF0f101aec: -/* f101aec: 3c09800a */ lui $t1,0x800a -/* f101af0: 812ae6eb */ lb $t2,-0x1915($t1) -/* f101af4: 0543002b */ bgezl $t2,.JF0f101ba4 -/* f101af8: 8eef0318 */ lw $t7,0x318($s7) -/* f101afc: 0fc3fae3 */ jal amGetFirstBuddyIndex -/* f101b00: 00000000 */ nop -/* f101b04: 04420027 */ bltzl $v0,.JF0f101ba4 -/* f101b08: 8eef0318 */ lw $t7,0x318($s7) -/* f101b0c: 56000045 */ bnezl $s0,.JF0f101c24 -/* f101b10: 8ee90284 */ lw $t1,0x284($s7) -/* f101b14: 8fcb0000 */ lw $t3,0x0($s8) -/* f101b18: 3c0d800a */ lui $t5,0x800a -/* f101b1c: 00027080 */ sll $t6,$v0,0x2 -/* f101b20: 000b60c0 */ sll $t4,$t3,0x3 -/* f101b24: 018b6023 */ subu $t4,$t4,$t3 -/* f101b28: 000c60c0 */ sll $t4,$t4,0x3 -/* f101b2c: 01ac6821 */ addu $t5,$t5,$t4 -/* f101b30: 81ad27d0 */ lb $t5,0x27d0($t5) -/* f101b34: 0011c880 */ sll $t9,$s1,0x2 -/* f101b38: 02ee7821 */ addu $t7,$s7,$t6 -/* f101b3c: 29a10002 */ slti $at,$t5,0x2 -/* f101b40: 14200037 */ bnez $at,.JF0f101c20 -/* f101b44: 0331c823 */ subu $t9,$t9,$s1 -/* f101b48: 02d94821 */ addu $t1,$s6,$t9 -/* f101b4c: 01335021 */ addu $t2,$t1,$s3 -/* f101b50: 91440000 */ lbu $a0,0x0($t2) -/* f101b54: 8df804b8 */ lw $t8,0x4b8($t7) -/* f101b58: 24010007 */ li $at,0x7 -/* f101b5c: 14810007 */ bne $a0,$at,.JF0f101b7c -/* f101b60: 8f030004 */ lw $v1,0x4($t8) -/* f101b64: 8c6b0014 */ lw $t3,0x14($v1) -/* f101b68: 316c0400 */ andi $t4,$t3,0x400 -/* f101b6c: 5180002d */ beqzl $t4,.JF0f101c24 -/* f101b70: 8ee90284 */ lw $t1,0x284($s7) -/* f101b74: 1000002a */ b .JF0f101c20 -/* f101b78: 24100002 */ li $s0,0x2 -.JF0f101b7c: -/* f101b7c: 24010001 */ li $at,0x1 -/* f101b80: 54810028 */ bnel $a0,$at,.JF0f101c24 -/* f101b84: 8ee90284 */ lw $t1,0x284($s7) -/* f101b88: 8c6d0014 */ lw $t5,0x14($v1) -/* f101b8c: 31ae0400 */ andi $t6,$t5,0x400 -/* f101b90: 55c00024 */ bnezl $t6,.JF0f101c24 -/* f101b94: 8ee90284 */ lw $t1,0x284($s7) -/* f101b98: 10000021 */ b .JF0f101c20 -/* f101b9c: 24100002 */ li $s0,0x2 -/* f101ba0: 8eef0318 */ lw $t7,0x318($s7) -.JF0f101ba4: -/* f101ba4: 51e0001f */ beqzl $t7,.JF0f101c24 -/* f101ba8: 8ee90284 */ lw $t1,0x284($s7) -/* f101bac: 5600001d */ bnezl $s0,.JF0f101c24 -/* f101bb0: 8ee90284 */ lw $t1,0x284($s7) -/* f101bb4: 8fd80000 */ lw $t8,0x0($s8) -/* f101bb8: 3c09800a */ lui $t1,0x800a -/* f101bbc: 00115080 */ sll $t2,$s1,0x2 -/* f101bc0: 0018c8c0 */ sll $t9,$t8,0x3 -/* f101bc4: 0338c823 */ subu $t9,$t9,$t8 -/* f101bc8: 0019c8c0 */ sll $t9,$t9,0x3 -/* f101bcc: 01394821 */ addu $t1,$t1,$t9 -/* f101bd0: 812927d0 */ lb $t1,0x27d0($t1) -/* f101bd4: 01515023 */ subu $t2,$t2,$s1 -/* f101bd8: 02ca5821 */ addu $t3,$s6,$t2 -/* f101bdc: 29210002 */ slti $at,$t1,0x2 -/* f101be0: 1420000f */ bnez $at,.JF0f101c20 -/* f101be4: 8fae0134 */ lw $t6,0x134($sp) -/* f101be8: 000e7880 */ sll $t7,$t6,0x2 -/* f101bec: 3c18800b */ lui $t8,0x800b -/* f101bf0: 030fc021 */ addu $t8,$t8,$t7 -/* f101bf4: 8f18cf00 */ lw $t8,-0x3100($t8) -/* f101bf8: 01736021 */ addu $t4,$t3,$s3 -/* f101bfc: 918d0000 */ lbu $t5,0x0($t4) -/* f101c00: 8f1902d4 */ lw $t9,0x2d4($t8) -/* f101c04: 3c02800b */ lui $v0,0x800b -/* f101c08: 004d1021 */ addu $v0,$v0,$t5 -/* f101c0c: 9042d5a8 */ lbu $v0,-0x2a58($v0) -/* f101c10: 93230079 */ lbu $v1,0x79($t9) -/* f101c14: 54430003 */ bnel $v0,$v1,.JF0f101c24 -/* f101c18: 8ee90284 */ lw $t1,0x284($s7) -/* f101c1c: 24100002 */ li $s0,0x2 -.JF0f101c20: -/* f101c20: 8ee90284 */ lw $t1,0x284($s7) -.JF0f101c24: -/* f101c24: 24010002 */ li $at,0x2 -/* f101c28: 02402025 */ move $a0,$s2 -/* f101c2c: 912a0250 */ lbu $t2,0x250($t1) -/* f101c30: 27a50140 */ addiu $a1,$sp,0x140 -/* f101c34: 15410003 */ bne $t2,$at,.JF0f101c44 -/* f101c38: 00000000 */ nop -/* f101c3c: 3c144f4f */ lui $s4,0x4f4f -/* f101c40: 36944f7f */ ori $s4,$s4,0x4f7f -.JF0f101c44: -/* f101c44: 0fc3fbe0 */ jal amGetSlotDetails -/* f101c48: 02a03025 */ move $a2,$s5 -/* f101c4c: 24020001 */ li $v0,0x1 -/* f101c50: 1662000f */ bne $s3,$v0,.JF0f101c90 -/* f101c54: 8fa40148 */ lw $a0,0x148($sp) -/* f101c58: 5622000e */ bnel $s1,$v0,.JF0f101c94 -/* f101c5c: 8fac0140 */ lw $t4,0x140($sp) -/* f101c60: 0fc3ff48 */ jal amIsCramped -/* f101c64: 00000000 */ nop -/* f101c68: 14400011 */ bnez $v0,.JF0f101cb0 -/* f101c6c: 8fa40148 */ lw $a0,0x148($sp) -/* f101c70: 87ab00f0 */ lh $t3,0xf0($sp) -/* f101c74: 02a02825 */ move $a1,$s5 -/* f101c78: 02803025 */ move $a2,$s4 -/* f101c7c: 87a700f2 */ lh $a3,0xf2($sp) -/* f101c80: 0fc400df */ jal amRenderText -/* f101c84: afab0010 */ sw $t3,0x10($sp) -/* f101c88: 10000009 */ b .JF0f101cb0 -/* f101c8c: afa20148 */ sw $v0,0x148($sp) -.JF0f101c90: -/* f101c90: 8fac0140 */ lw $t4,0x140($sp) -.JF0f101c94: -/* f101c94: 02a02825 */ move $a1,$s5 -/* f101c98: 87a600f2 */ lh $a2,0xf2($sp) -/* f101c9c: 87a700f0 */ lh $a3,0xf0($sp) -/* f101ca0: afb00010 */ sw $s0,0x10($sp) -/* f101ca4: 0fc40302 */ jal amRenderSlot -/* f101ca8: afac0014 */ sw $t4,0x14($sp) -/* f101cac: afa20148 */ sw $v0,0x148($sp) -.JF0f101cb0: -/* f101cb0: 26310001 */ addiu $s1,$s1,0x1 -/* f101cb4: 00116c00 */ sll $t5,$s1,0x10 -/* f101cb8: 000d8c03 */ sra $s1,$t5,0x10 -/* f101cbc: 2a210003 */ slti $at,$s1,0x3 -/* f101cc0: 5420ff73 */ bnezl $at,.JF0f101a90 -/* f101cc4: 00132400 */ sll $a0,$s3,0x10 -/* f101cc8: 26730001 */ addiu $s3,$s3,0x1 -/* f101ccc: 00137c00 */ sll $t7,$s3,0x10 -/* f101cd0: 000f9c03 */ sra $s3,$t7,0x10 -/* f101cd4: 2a610003 */ slti $at,$s3,0x3 -/* f101cd8: 5420ff6c */ bnezl $at,.JF0f101a8c -/* f101cdc: 00008825 */ move $s1,$zero -/* f101ce0: 3c19800a */ lui $t9,0x800a -/* f101ce4: 8329e6eb */ lb $t1,-0x1915($t9) -/* f101ce8: 05230006 */ bgezl $t1,.JF0f101d04 -/* f101cec: 8eea0318 */ lw $t2,0x318($s7) -/* f101cf0: 0fc3fae3 */ jal amGetFirstBuddyIndex -/* f101cf4: 00000000 */ nop -/* f101cf8: 04430013 */ bgezl $v0,.JF0f101d48 -/* f101cfc: 8fcd0000 */ lw $t5,0x0($s8) -/* f101d00: 8eea0318 */ lw $t2,0x318($s7) -.JF0f101d04: -/* f101d04: 51400010 */ beqzl $t2,.JF0f101d48 -/* f101d08: 8fcd0000 */ lw $t5,0x0($s8) -/* f101d0c: 8fcb0000 */ lw $t3,0x0($s8) -/* f101d10: 3c02800a */ lui $v0,0x800a -/* f101d14: 8fa40148 */ lw $a0,0x148($sp) -/* f101d18: 000b60c0 */ sll $t4,$t3,0x3 -/* f101d1c: 018b6023 */ subu $t4,$t4,$t3 -/* f101d20: 000c60c0 */ sll $t4,$t4,0x3 -/* f101d24: 004c1021 */ addu $v0,$v0,$t4 -/* f101d28: 804227d0 */ lb $v0,0x27d0($v0) -/* f101d2c: 28410002 */ slti $at,$v0,0x2 -/* f101d30: 54200005 */ bnezl $at,.JF0f101d48 -/* f101d34: 8fcd0000 */ lw $t5,0x0($s8) -/* f101d38: 0fc40111 */ jal amRenderAibotInfo -/* f101d3c: 2445fffe */ addiu $a1,$v0,-2 -/* f101d40: afa20148 */ sw $v0,0x148($sp) -/* f101d44: 8fcd0000 */ lw $t5,0x0($s8) -.JF0f101d48: -/* f101d48: 3c0f800a */ lui $t7,0x800a -/* f101d4c: 25ef27d0 */ addiu $t7,$t7,0x27d0 -/* f101d50: 000d70c0 */ sll $t6,$t5,0x3 -/* f101d54: 01cd7023 */ subu $t6,$t6,$t5 -/* f101d58: 000e70c0 */ sll $t6,$t6,0x3 -/* f101d5c: 01cf8021 */ addu $s0,$t6,$t7 -/* f101d60: 82180000 */ lb $t8,0x0($s0) -/* f101d64: 24120007 */ li $s2,0x7 -/* f101d68: 2b010002 */ slti $at,$t8,0x2 -/* f101d6c: 14200004 */ bnez $at,.JF0f101d80 -/* f101d70: 24010001 */ li $at,0x1 -/* f101d74: 16610002 */ bne $s3,$at,.JF0f101d80 -/* f101d78: 24010001 */ li $at,0x1 -/* f101d7c: 12210140 */ beq $s1,$at,.JF0f102280 -.JF0f101d80: -/* f101d80: 24130007 */ li $s3,0x7 -/* f101d84: 0c0068df */ jal sinf -/* f101d88: c60c001c */ lwc1 $f12,0x1c($s0) -/* f101d8c: 3c013f80 */ lui $at,0x3f80 -/* f101d90: 44812000 */ mtc1 $at,$f4 -/* f101d94: 3c0142fe */ lui $at,0x42fe -/* f101d98: 44814000 */ mtc1 $at,$f8 -/* f101d9c: 46040180 */ add.s $f6,$f0,$f4 -/* f101da0: 24020001 */ li $v0,0x1 -/* f101da4: 3c014f00 */ lui $at,0x4f00 -/* f101da8: 8fa40148 */ lw $a0,0x148($sp) -/* f101dac: 46083282 */ mul.s $f10,$f6,$f8 -/* f101db0: 4459f800 */ cfc1 $t9,$31 -/* f101db4: 44c2f800 */ ctc1 $v0,$31 -/* f101db8: 00000000 */ nop -/* f101dbc: 46005424 */ cvt.w.s $f16,$f10 -/* f101dc0: 4442f800 */ cfc1 $v0,$31 -/* f101dc4: 00000000 */ nop -/* f101dc8: 30420078 */ andi $v0,$v0,0x78 -/* f101dcc: 50400013 */ beqzl $v0,.JF0f101e1c -/* f101dd0: 44028000 */ mfc1 $v0,$f16 -/* f101dd4: 44818000 */ mtc1 $at,$f16 -/* f101dd8: 24020001 */ li $v0,0x1 -/* f101ddc: 46105401 */ sub.s $f16,$f10,$f16 -/* f101de0: 44c2f800 */ ctc1 $v0,$31 -/* f101de4: 00000000 */ nop -/* f101de8: 46008424 */ cvt.w.s $f16,$f16 -/* f101dec: 4442f800 */ cfc1 $v0,$31 -/* f101df0: 00000000 */ nop -/* f101df4: 30420078 */ andi $v0,$v0,0x78 -/* f101df8: 14400005 */ bnez $v0,.JF0f101e10 -/* f101dfc: 00000000 */ nop -/* f101e00: 44028000 */ mfc1 $v0,$f16 -/* f101e04: 3c018000 */ lui $at,0x8000 -/* f101e08: 10000007 */ b .JF0f101e28 -/* f101e0c: 00411025 */ or $v0,$v0,$at -.JF0f101e10: -/* f101e10: 10000005 */ b .JF0f101e28 -/* f101e14: 2402ffff */ li $v0,-1 -/* f101e18: 44028000 */ mfc1 $v0,$f16 -.JF0f101e1c: -/* f101e1c: 00000000 */ nop -/* f101e20: 0440fffb */ bltz $v0,.JF0f101e10 -/* f101e24: 00000000 */ nop -.JF0f101e28: -/* f101e28: 8eec0284 */ lw $t4,0x284($s7) -/* f101e2c: 3c01ff00 */ lui $at,0xff00 -/* f101e30: 342100ff */ ori $at,$at,0xff -/* f101e34: 918d0250 */ lbu $t5,0x250($t4) -/* f101e38: 00024a00 */ sll $t1,$v0,0x8 -/* f101e3c: 01215025 */ or $t2,$t1,$at -/* f101e40: 44d9f800 */ ctc1 $t9,$31 -/* f101e44: 00025c00 */ sll $t3,$v0,0x10 -/* f101e48: 24010002 */ li $at,0x2 -/* f101e4c: 15a10003 */ bne $t5,$at,.JF0f101e5c -/* f101e50: 014ba025 */ or $s4,$t2,$t3 -/* f101e54: 3c144f4f */ lui $s4,0x4f4f -/* f101e58: 36944f7f */ ori $s4,$s4,0x4f7f -.JF0f101e5c: -/* f101e5c: 0fc54bce */ jal textSetPrimColour -/* f101e60: 02802825 */ move $a1,$s4 -/* f101e64: 8fce0000 */ lw $t6,0x0($s8) -/* f101e68: 3c18800a */ lui $t8,0x800a -/* f101e6c: 271827d0 */ addiu $t8,$t8,0x27d0 -/* f101e70: 000e78c0 */ sll $t7,$t6,0x3 -/* f101e74: 01ee7823 */ subu $t7,$t7,$t6 -/* f101e78: 000f78c0 */ sll $t7,$t7,0x3 -/* f101e7c: 01f88021 */ addu $s0,$t7,$t8 -/* f101e80: 86110004 */ lh $s1,0x4($s0) -/* f101e84: 9209000e */ lbu $t1,0xe($s0) -/* f101e88: afa20148 */ sw $v0,0x148($sp) -/* f101e8c: 06210003 */ bgez $s1,.JF0f101e9c -/* f101e90: 0011c843 */ sra $t9,$s1,0x1 -/* f101e94: 26210001 */ addiu $at,$s1,0x1 -/* f101e98: 0001c843 */ sra $t9,$at,0x1 -.JF0f101e9c: -/* f101e9c: 24010004 */ li $at,0x4 -/* f101ea0: 15210039 */ bne $t1,$at,.JF0f101f88 -/* f101ea4: 03208825 */ move $s1,$t9 -/* f101ea8: 0fc3ff48 */ jal amIsCramped -/* f101eac: 00000000 */ nop -/* f101eb0: 50400006 */ beqzl $v0,.JF0f101ecc -/* f101eb4: 8eea006c */ lw $t2,0x6c($s7) -/* f101eb8: 24110001 */ li $s1,0x1 -/* f101ebc: 24120002 */ li $s2,0x2 -/* f101ec0: 10000031 */ b .JF0f101f88 -/* f101ec4: 00009825 */ move $s3,$zero -/* f101ec8: 8eea006c */ lw $t2,0x6c($s7) -.JF0f101ecc: -/* f101ecc: 00002825 */ move $a1,$zero -/* f101ed0: 00001825 */ move $v1,$zero -/* f101ed4: 11400003 */ beqz $t2,.JF0f101ee4 -/* f101ed8: 00002025 */ move $a0,$zero -/* f101edc: 10000001 */ b .JF0f101ee4 -/* f101ee0: 24050001 */ li $a1,0x1 -.JF0f101ee4: -/* f101ee4: 8eeb0068 */ lw $t3,0x68($s7) -/* f101ee8: 27b00088 */ addiu $s0,$sp,0x88 -/* f101eec: 00001025 */ move $v0,$zero -/* f101ef0: 11600003 */ beqz $t3,.JF0f101f00 -/* f101ef4: 02003025 */ move $a2,$s0 -/* f101ef8: 10000001 */ b .JF0f101f00 -/* f101efc: 24030001 */ li $v1,0x1 -.JF0f101f00: -/* f101f00: 8eec0064 */ lw $t4,0x64($s7) -/* f101f04: 11800003 */ beqz $t4,.JF0f101f14 -/* f101f08: 00000000 */ nop -/* f101f0c: 10000001 */ b .JF0f101f14 -/* f101f10: 24040001 */ li $a0,0x1 -.JF0f101f14: -/* f101f14: 8eed0070 */ lw $t5,0x70($s7) -/* f101f18: 11a00003 */ beqz $t5,.JF0f101f28 -/* f101f1c: 00000000 */ nop -/* f101f20: 10000001 */ b .JF0f101f28 -/* f101f24: 24020001 */ li $v0,0x1 -.JF0f101f28: -/* f101f28: 00447021 */ addu $t6,$v0,$a0 -/* f101f2c: 01c37821 */ addu $t7,$t6,$v1 -/* f101f30: 01e5c021 */ addu $t8,$t7,$a1 -/* f101f34: 2b010002 */ slti $at,$t8,0x2 -/* f101f38: 14200013 */ bnez $at,.JF0f101f88 -/* f101f3c: 24040004 */ li $a0,0x4 -/* f101f40: 0fc3fbe0 */ jal amGetSlotDetails -/* f101f44: 27a50084 */ addiu $a1,$sp,0x84 -/* f101f48: 3c19800a */ lui $t9,0x800a -/* f101f4c: 8f3928b4 */ lw $t9,0x28b4($t9) -/* f101f50: 3c07800a */ lui $a3,0x800a -/* f101f54: 8ce728b0 */ lw $a3,0x28b0($a3) -/* f101f58: 27a400ac */ addiu $a0,$sp,0xac -/* f101f5c: 27a500a8 */ addiu $a1,$sp,0xa8 -/* f101f60: 02003025 */ move $a2,$s0 -/* f101f64: afa00014 */ sw $zero,0x14($sp) -/* f101f68: 0fc55d49 */ jal textMeasure -/* f101f6c: afb90010 */ sw $t9,0x10($sp) -/* f101f70: 8fb100a8 */ lw $s1,0xa8($sp) -/* f101f74: 06210003 */ bgez $s1,.JF0f101f84 -/* f101f78: 00114843 */ sra $t1,$s1,0x1 -/* f101f7c: 26210001 */ addiu $at,$s1,0x1 -/* f101f80: 00014843 */ sra $t1,$at,0x1 -.JF0f101f84: -/* f101f84: 25310002 */ addiu $s1,$t1,0x2 -.JF0f101f88: -/* f101f88: 8fcc0000 */ lw $t4,0x0($s8) -/* f101f8c: 3c0e800a */ lui $t6,0x800a -/* f101f90: 25ce27d0 */ addiu $t6,$t6,0x27d0 -/* f101f94: 000c68c0 */ sll $t5,$t4,0x3 -/* f101f98: 01ac6823 */ subu $t5,$t5,$t4 -/* f101f9c: 000d68c0 */ sll $t5,$t5,0x3 -/* f101fa0: 01ae8021 */ addu $s0,$t5,$t6 -/* f101fa4: 860f0006 */ lh $t7,0x6($s0) -/* f101fa8: 3c078008 */ lui $a3,0x8008 -/* f101fac: 24e700f4 */ addiu $a3,$a3,0xf4 -/* f101fb0: 8ce90000 */ lw $t1,0x0($a3) -/* f101fb4: 01f1c021 */ addu $t8,$t7,$s1 -/* f101fb8: 27190001 */ addiu $t9,$t8,0x1 -/* f101fbc: 03290019 */ multu $t9,$t1 -/* f101fc0: 860d0008 */ lh $t5,0x8($s0) -/* f101fc4: 8fa20148 */ lw $v0,0x148($sp) -/* f101fc8: 3c06f600 */ lui $a2,0xf600 -/* f101fcc: 01b27023 */ subu $t6,$t5,$s2 -/* f101fd0: 25cf0001 */ addiu $t7,$t6,0x1 -/* f101fd4: 244b0008 */ addiu $t3,$v0,0x8 -/* f101fd8: afab0148 */ sw $t3,0x148($sp) -/* f101fdc: 31f803ff */ andi $t8,$t7,0x3ff -/* f101fe0: 0018c880 */ sll $t9,$t8,0x2 -/* f101fe4: 00005012 */ mflo $t2 -/* f101fe8: 314b03ff */ andi $t3,$t2,0x3ff -/* f101fec: 000b6380 */ sll $t4,$t3,0xe -/* f101ff0: 03264825 */ or $t1,$t9,$a2 -/* f101ff4: 012c5025 */ or $t2,$t1,$t4 -/* f101ff8: ac4a0000 */ sw $t2,0x0($v0) -/* f101ffc: 8fcb0000 */ lw $t3,0x0($s8) -/* f102000: 3c0e800a */ lui $t6,0x800a -/* f102004: 25ce27d0 */ addiu $t6,$t6,0x27d0 -/* f102008: 000b68c0 */ sll $t5,$t3,0x3 -/* f10200c: 01ab6823 */ subu $t5,$t5,$t3 -/* f102010: 000d68c0 */ sll $t5,$t5,0x3 -/* f102014: 01ae8021 */ addu $s0,$t5,$t6 -/* f102018: 860f0006 */ lh $t7,0x6($s0) -/* f10201c: 8cf90000 */ lw $t9,0x0($a3) -/* f102020: 860b0008 */ lh $t3,0x8($s0) -/* f102024: 01f1c023 */ subu $t8,$t7,$s1 -/* f102028: 03190019 */ multu $t8,$t9 -/* f10202c: 01726823 */ subu $t5,$t3,$s2 -/* f102030: 31ae03ff */ andi $t6,$t5,0x3ff -/* f102034: 000e7880 */ sll $t7,$t6,0x2 -/* f102038: 3c0d800a */ lui $t5,0x800a -/* f10203c: 25ad27d0 */ addiu $t5,$t5,0x27d0 -/* f102040: 00004812 */ mflo $t1 -/* f102044: 312c03ff */ andi $t4,$t1,0x3ff -/* f102048: 000c5380 */ sll $t2,$t4,0xe -/* f10204c: 01eac025 */ or $t8,$t7,$t2 -/* f102050: ac580004 */ sw $t8,0x4($v0) -/* f102054: 8fcc0000 */ lw $t4,0x0($s8) -/* f102058: 8cf80000 */ lw $t8,0x0($a3) -/* f10205c: 8fa30148 */ lw $v1,0x148($sp) -/* f102060: 000c58c0 */ sll $t3,$t4,0x3 -/* f102064: 016c5823 */ subu $t3,$t3,$t4 -/* f102068: 000b58c0 */ sll $t3,$t3,0x3 -/* f10206c: 016d8021 */ addu $s0,$t3,$t5 -/* f102070: 860e0006 */ lh $t6,0x6($s0) -/* f102074: 860b0008 */ lh $t3,0x8($s0) -/* f102078: 24690008 */ addiu $t1,$v1,0x8 -/* f10207c: 01d17821 */ addu $t7,$t6,$s1 -/* f102080: 25ea0001 */ addiu $t2,$t7,0x1 -/* f102084: 01580019 */ multu $t2,$t8 -/* f102088: 01736821 */ addu $t5,$t3,$s3 -/* f10208c: 25ae0001 */ addiu $t6,$t5,0x1 -/* f102090: 31cf03ff */ andi $t7,$t6,0x3ff -/* f102094: afa90148 */ sw $t1,0x148($sp) -/* f102098: 000f5080 */ sll $t2,$t7,0x2 -/* f10209c: 0146c025 */ or $t8,$t2,$a2 -/* f1020a0: 3c0d800a */ lui $t5,0x800a -/* f1020a4: 25ad27d0 */ addiu $t5,$t5,0x27d0 -/* f1020a8: 0000c812 */ mflo $t9 -/* f1020ac: 332903ff */ andi $t1,$t9,0x3ff -/* f1020b0: 00096380 */ sll $t4,$t1,0xe -/* f1020b4: 030cc825 */ or $t9,$t8,$t4 -/* f1020b8: ac790000 */ sw $t9,0x0($v1) -/* f1020bc: 8fc90000 */ lw $t1,0x0($s8) -/* f1020c0: 8cea0000 */ lw $t2,0x0($a3) -/* f1020c4: 000958c0 */ sll $t3,$t1,0x3 -/* f1020c8: 01695823 */ subu $t3,$t3,$t1 -/* f1020cc: 000b58c0 */ sll $t3,$t3,0x3 -/* f1020d0: 016d8021 */ addu $s0,$t3,$t5 -/* f1020d4: 860e0006 */ lh $t6,0x6($s0) -/* f1020d8: 86090008 */ lh $t1,0x8($s0) -/* f1020dc: 01d17823 */ subu $t7,$t6,$s1 -/* f1020e0: 01ea0019 */ multu $t7,$t2 -/* f1020e4: 01335821 */ addu $t3,$t1,$s3 -/* f1020e8: 316d03ff */ andi $t5,$t3,0x3ff -/* f1020ec: 000d7080 */ sll $t6,$t5,0x2 -/* f1020f0: 3c0b800a */ lui $t3,0x800a -/* f1020f4: 256b27d0 */ addiu $t3,$t3,0x27d0 -/* f1020f8: 0000c012 */ mflo $t8 -/* f1020fc: 330c03ff */ andi $t4,$t8,0x3ff -/* f102100: 000ccb80 */ sll $t9,$t4,0xe -/* f102104: 01d97825 */ or $t7,$t6,$t9 -/* f102108: ac6f0004 */ sw $t7,0x4($v1) -/* f10210c: 8fcc0000 */ lw $t4,0x0($s8) -/* f102110: 8cef0000 */ lw $t7,0x0($a3) -/* f102114: 8fa50148 */ lw $a1,0x148($sp) -/* f102118: 000c48c0 */ sll $t1,$t4,0x3 -/* f10211c: 012c4823 */ subu $t1,$t1,$t4 -/* f102120: 000948c0 */ sll $t1,$t1,0x3 -/* f102124: 012b8021 */ addu $s0,$t1,$t3 -/* f102128: 860d0006 */ lh $t5,0x6($s0) -/* f10212c: 86090008 */ lh $t1,0x8($s0) -/* f102130: 24b80008 */ addiu $t8,$a1,0x8 -/* f102134: 01b17023 */ subu $t6,$t5,$s1 -/* f102138: 25d90001 */ addiu $t9,$t6,0x1 -/* f10213c: 032f0019 */ multu $t9,$t7 -/* f102140: 01335821 */ addu $t3,$t1,$s3 -/* f102144: 316d03ff */ andi $t5,$t3,0x3ff -/* f102148: afb80148 */ sw $t8,0x148($sp) -/* f10214c: 000d7080 */ sll $t6,$t5,0x2 -/* f102150: 01c6c825 */ or $t9,$t6,$a2 -/* f102154: 3c09800a */ lui $t1,0x800a -/* f102158: 252927d0 */ addiu $t1,$t1,0x27d0 -/* f10215c: 00005012 */ mflo $t2 -/* f102160: 315803ff */ andi $t8,$t2,0x3ff -/* f102164: 00186380 */ sll $t4,$t8,0xe -/* f102168: 032c7825 */ or $t7,$t9,$t4 -/* f10216c: acaf0000 */ sw $t7,0x0($a1) -/* f102170: 8fca0000 */ lw $t2,0x0($s8) -/* f102174: 8cee0000 */ lw $t6,0x0($a3) -/* f102178: 000ac0c0 */ sll $t8,$t2,0x3 -/* f10217c: 030ac023 */ subu $t8,$t8,$t2 -/* f102180: 0018c0c0 */ sll $t8,$t8,0x3 -/* f102184: 03098021 */ addu $s0,$t8,$t1 -/* f102188: 860b0006 */ lh $t3,0x6($s0) -/* f10218c: 860a0008 */ lh $t2,0x8($s0) -/* f102190: 01716823 */ subu $t5,$t3,$s1 -/* f102194: 01ae0019 */ multu $t5,$t6 -/* f102198: 0152c023 */ subu $t8,$t2,$s2 -/* f10219c: 27090001 */ addiu $t1,$t8,0x1 -/* f1021a0: 312b03ff */ andi $t3,$t1,0x3ff -/* f1021a4: 000b6880 */ sll $t5,$t3,0x2 -/* f1021a8: 3c09800a */ lui $t1,0x800a -/* f1021ac: 252927d0 */ addiu $t1,$t1,0x27d0 -/* f1021b0: 0000c812 */ mflo $t9 -/* f1021b4: 332c03ff */ andi $t4,$t9,0x3ff -/* f1021b8: 000c7b80 */ sll $t7,$t4,0xe -/* f1021bc: 01af7025 */ or $t6,$t5,$t7 -/* f1021c0: acae0004 */ sw $t6,0x4($a1) -/* f1021c4: 8fca0000 */ lw $t2,0x0($s8) -/* f1021c8: 8cee0000 */ lw $t6,0x0($a3) -/* f1021cc: 8fa20148 */ lw $v0,0x148($sp) -/* f1021d0: 000ac0c0 */ sll $t8,$t2,0x3 -/* f1021d4: 030ac023 */ subu $t8,$t8,$t2 -/* f1021d8: 0018c0c0 */ sll $t8,$t8,0x3 -/* f1021dc: 03098021 */ addu $s0,$t8,$t1 -/* f1021e0: 860b0006 */ lh $t3,0x6($s0) -/* f1021e4: 86180008 */ lh $t8,0x8($s0) -/* f1021e8: 244c0008 */ addiu $t4,$v0,0x8 -/* f1021ec: 01716821 */ addu $t5,$t3,$s1 -/* f1021f0: 25af0001 */ addiu $t7,$t5,0x1 -/* f1021f4: 01ee0019 */ multu $t7,$t6 -/* f1021f8: 03134821 */ addu $t1,$t8,$s3 -/* f1021fc: 312b03ff */ andi $t3,$t1,0x3ff -/* f102200: afac0148 */ sw $t4,0x148($sp) -/* f102204: 000b6880 */ sll $t5,$t3,0x2 -/* f102208: 01a67825 */ or $t7,$t5,$a2 -/* f10220c: 3c18800a */ lui $t8,0x800a -/* f102210: 271827d0 */ addiu $t8,$t8,0x27d0 -/* f102214: 0000c812 */ mflo $t9 -/* f102218: 332c03ff */ andi $t4,$t9,0x3ff -/* f10221c: 000c5380 */ sll $t2,$t4,0xe -/* f102220: 01ea7025 */ or $t6,$t7,$t2 -/* f102224: ac4e0000 */ sw $t6,0x0($v0) -/* f102228: 8fd90000 */ lw $t9,0x0($s8) -/* f10222c: 8ced0000 */ lw $t5,0x0($a3) -/* f102230: 001960c0 */ sll $t4,$t9,0x3 -/* f102234: 01996023 */ subu $t4,$t4,$t9 -/* f102238: 000c60c0 */ sll $t4,$t4,0x3 -/* f10223c: 01988021 */ addu $s0,$t4,$t8 -/* f102240: 86090006 */ lh $t1,0x6($s0) -/* f102244: 86190008 */ lh $t9,0x8($s0) -/* f102248: 01315821 */ addu $t3,$t1,$s1 -/* f10224c: 016d0019 */ multu $t3,$t5 -/* f102250: 03326023 */ subu $t4,$t9,$s2 -/* f102254: 25980001 */ addiu $t8,$t4,0x1 -/* f102258: 330903ff */ andi $t1,$t8,0x3ff -/* f10225c: 00095880 */ sll $t3,$t1,0x2 -/* f102260: 00007812 */ mflo $t7 -/* f102264: 31ea03ff */ andi $t2,$t7,0x3ff -/* f102268: 000a7380 */ sll $t6,$t2,0xe -/* f10226c: 016e6825 */ or $t5,$t3,$t6 -/* f102270: ac4d0004 */ sw $t5,0x4($v0) -/* f102274: 0fc54be5 */ jal text0f153838 -/* f102278: 8fa40148 */ lw $a0,0x148($sp) -/* f10227c: afa20148 */ sw $v0,0x148($sp) -.JF0f102280: -/* f102280: 0fc54bb7 */ jal text0f153780 -/* f102284: 8fa40148 */ lw $a0,0x148($sp) -/* f102288: afa20148 */ sw $v0,0x148($sp) -/* f10228c: 24030001 */ li $v1,0x1 -/* f102290: 8fbf004c */ lw $ra,0x4c($sp) -.JF0f102294: -/* f102294: 3c018008 */ lui $at,0x8008 -/* f102298: 8fa20148 */ lw $v0,0x148($sp) -/* f10229c: 8fb00028 */ lw $s0,0x28($sp) -/* f1022a0: 8fb1002c */ lw $s1,0x2c($sp) -/* f1022a4: 8fb20030 */ lw $s2,0x30($sp) -/* f1022a8: 8fb30034 */ lw $s3,0x34($sp) -/* f1022ac: 8fb40038 */ lw $s4,0x38($sp) -/* f1022b0: 8fb5003c */ lw $s5,0x3c($sp) -/* f1022b4: 8fb60040 */ lw $s6,0x40($sp) -/* f1022b8: 8fb70044 */ lw $s7,0x44($sp) -/* f1022bc: 8fbe0048 */ lw $s8,0x48($sp) -/* f1022c0: ac2300f4 */ sw $v1,0xf4($at) -/* f1022c4: 03e00008 */ jr $ra -/* f1022c8: 27bd0148 */ addiu $sp,$sp,0x148 -); -#elif VERSION >= VERSION_PAL_FINAL -GLOBAL_ASM( -glabel amRender -/* f101250: 27bdfe28 */ addiu $sp,$sp,-472 -/* f101254: 3c0b800a */ lui $t3,0x800a -/* f101258: 240e0001 */ li $t6,0x1 -/* f10125c: 3c018008 */ lui $at,0x8008 -/* f101260: 256ba510 */ addiu $t3,$t3,-23280 -/* f101264: ac2e0020 */ sw $t6,0x20($at) -/* f101268: 8d6f028c */ lw $t7,0x28c($t3) -/* f10126c: 3c01800a */ lui $at,0x800a -/* f101270: afbf004c */ sw $ra,0x4c($sp) -/* f101274: ac2f2758 */ sw $t7,0x2758($at) -/* f101278: 8d780284 */ lw $t8,0x284($t3) -/* f10127c: afbe0048 */ sw $s8,0x48($sp) -/* f101280: afb70044 */ sw $s7,0x44($sp) -/* f101284: afb60040 */ sw $s6,0x40($sp) -/* f101288: afb5003c */ sw $s5,0x3c($sp) -/* f10128c: afb40038 */ sw $s4,0x38($sp) -/* f101290: afb30034 */ sw $s3,0x34($sp) -/* f101294: afb20030 */ sw $s2,0x30($sp) -/* f101298: afb1002c */ sw $s1,0x2c($sp) -/* f10129c: afb00028 */ sw $s0,0x28($sp) -/* f1012a0: afa401d8 */ sw $a0,0x1d8($sp) -/* f1012a4: af001c04 */ sw $zero,0x1c04($t8) -/* f1012a8: 8d630284 */ lw $v1,0x284($t3) -/* f1012ac: 90790250 */ lbu $t9,0x250($v1) -/* f1012b0: 53200353 */ beqzl $t9,.PF0f102000 -/* f1012b4: 8c621c04 */ lw $v0,0x1c04($v1) -/* f1012b8: 0fc550cf */ jal text0f153628 -/* f1012bc: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1012c0: 3c08800a */ lui $t0,0x800a -/* f1012c4: 2508a510 */ addiu $t0,$t0,-23280 -/* f1012c8: 8d0e0318 */ lw $t6,0x318($t0) -/* f1012cc: afa201d8 */ sw $v0,0x1d8($sp) -/* f1012d0: 11c00010 */ beqz $t6,.PF0f101314 -/* f1012d4: 3c0f800a */ lui $t7,0x800a -/* f1012d8: 8def2758 */ lw $t7,0x2758($t7) -/* f1012dc: 241e0038 */ li $s8,0x38 -/* f1012e0: 3c17800a */ lui $s7,0x800a -/* f1012e4: 01fe0019 */ multu $t7,$s8 -/* f1012e8: 26f72670 */ addiu $s7,$s7,0x2670 -/* f1012ec: 0000c012 */ mflo $t8 -/* f1012f0: 02f8c821 */ addu $t9,$s7,$t8 -/* f1012f4: 83220000 */ lb $v0,0x0($t9) -/* f1012f8: 28410002 */ slti $at,$v0,0x2 -/* f1012fc: 14200005 */ bnez $at,.PF0f101314 -/* f101300: 00000000 */ nop -/* f101304: 8d0e0284 */ lw $t6,0x284($t0) -/* f101308: 01c27821 */ addu $t7,$t6,$v0 -/* f10130c: 91f81be5 */ lbu $t8,0x1be5($t7) -/* f101310: afb801c4 */ sw $t8,0x1c4($sp) -.PF0f101314: -/* f101314: 3c19800a */ lui $t9,0x800a -/* f101318: 8f392758 */ lw $t9,0x2758($t9) -/* f10131c: 241e0038 */ li $s8,0x38 -/* f101320: 3c17800a */ lui $s7,0x800a -/* f101324: 033e0019 */ multu $t9,$s8 -/* f101328: 26f72670 */ addiu $s7,$s7,0x2670 -/* f10132c: 2401ff85 */ li $at,-123 -/* f101330: 00007012 */ mflo $t6 -/* f101334: 02ee8021 */ addu $s0,$s7,$t6 -/* f101338: 860f000a */ lh $t7,0xa($s0) -/* f10133c: 55e10021 */ bnel $t7,$at,.PF0f1013c4 -/* f101340: 9202000e */ lbu $v0,0xe($s0) -/* f101344: 9202000e */ lbu $v0,0xe($s0) -/* f101348: 24030003 */ li $v1,0x3 -/* f10134c: 26060006 */ addiu $a2,$s0,0x6 -/* f101350: 0043001a */ div $zero,$v0,$v1 -/* f101354: 00002010 */ mfhi $a0 -/* f101358: 00002812 */ mflo $a1 -/* f10135c: 00057400 */ sll $t6,$a1,0x10 -/* f101360: 0004c400 */ sll $t8,$a0,0x10 -/* f101364: 14600002 */ bnez $v1,.PF0f101370 -/* f101368: 00000000 */ nop -/* f10136c: 0007000d */ break 0x7 -.PF0f101370: -/* f101370: 2401ffff */ li $at,-1 -/* f101374: 14610004 */ bne $v1,$at,.PF0f101388 -/* f101378: 3c018000 */ lui $at,0x8000 -/* f10137c: 14410002 */ bne $v0,$at,.PF0f101388 -/* f101380: 00000000 */ nop -/* f101384: 0006000d */ break 0x6 -.PF0f101388: -/* f101388: 00182403 */ sra $a0,$t8,0x10 -/* f10138c: 000e2c03 */ sra $a1,$t6,0x10 -/* f101390: 0fc3fe7d */ jal amCalculateSlotPosition -/* f101394: 26070008 */ addiu $a3,$s0,0x8 -/* f101398: 3c18800a */ lui $t8,0x800a -/* f10139c: 8f182758 */ lw $t8,0x2758($t8) -/* f1013a0: 031e0019 */ multu $t8,$s8 -/* f1013a4: 0000c812 */ mflo $t9 -/* f1013a8: 02f98021 */ addu $s0,$s7,$t9 -/* f1013ac: 860e0006 */ lh $t6,0x6($s0) -/* f1013b0: 860f0008 */ lh $t7,0x8($s0) -/* f1013b4: a60e000a */ sh $t6,0xa($s0) -/* f1013b8: 1000000d */ b .PF0f1013f0 -/* f1013bc: a60f000c */ sh $t7,0xc($s0) -/* f1013c0: 9202000e */ lbu $v0,0xe($s0) -.PF0f1013c4: -/* f1013c4: 24010003 */ li $at,0x3 -/* f1013c8: 2606000a */ addiu $a2,$s0,0xa -/* f1013cc: 0041001a */ div $zero,$v0,$at -/* f1013d0: 00002010 */ mfhi $a0 -/* f1013d4: 00002812 */ mflo $a1 -/* f1013d8: 00057400 */ sll $t6,$a1,0x10 -/* f1013dc: 0004c400 */ sll $t8,$a0,0x10 -/* f1013e0: 00182403 */ sra $a0,$t8,0x10 -/* f1013e4: 000e2c03 */ sra $a1,$t6,0x10 -/* f1013e8: 0fc3fe7d */ jal amCalculateSlotPosition -/* f1013ec: 2607000c */ addiu $a3,$s0,0xc -.PF0f1013f0: -/* f1013f0: 0fc3534f */ jal func0f0d479c -/* f1013f4: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1013f8: afa201d8 */ sw $v0,0x1d8($sp) -/* f1013fc: 0fc5a253 */ jal gfxAllocateColours -/* f101400: 24040002 */ li $a0,0x2 -/* f101404: 0040a825 */ move $s5,$v0 -/* f101408: 0fc5a239 */ jal gfxAllocateVertices -/* f10140c: 24040008 */ li $a0,0x8 -/* f101410: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f101414: 3c0ee700 */ lui $t6,0xe700 -/* f101418: 00408025 */ move $s0,$v0 -/* f10141c: 27190008 */ addiu $t9,$t8,0x8 -/* f101420: afb901d8 */ sw $t9,0x1d8($sp) -/* f101424: af000004 */ sw $zero,0x4($t8) -/* f101428: af0e0000 */ sw $t6,0x0($t8) -/* f10142c: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f101430: 3c19ba00 */ lui $t9,0xba00 -/* f101434: 37391402 */ ori $t9,$t9,0x1402 -/* f101438: 25f80008 */ addiu $t8,$t7,0x8 -/* f10143c: afb801d8 */ sw $t8,0x1d8($sp) -/* f101440: ade00004 */ sw $zero,0x4($t7) -/* f101444: adf90000 */ sw $t9,0x0($t7) -/* f101448: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f10144c: 3c18b900 */ lui $t8,0xb900 -/* f101450: 37180002 */ ori $t8,$t8,0x2 -/* f101454: 25cf0008 */ addiu $t7,$t6,0x8 -/* f101458: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10145c: adc00004 */ sw $zero,0x4($t6) -/* f101460: add80000 */ sw $t8,0x0($t6) -/* f101464: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101468: 3c0fba00 */ lui $t7,0xba00 -/* f10146c: 35ef0402 */ ori $t7,$t7,0x402 -/* f101470: 272e0008 */ addiu $t6,$t9,0x8 -/* f101474: afae01d8 */ sw $t6,0x1d8($sp) -/* f101478: 24180020 */ li $t8,0x20 -/* f10147c: af380004 */ sw $t8,0x4($t9) -/* f101480: af2f0000 */ sw $t7,0x0($t9) -/* f101484: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101488: 3c0ffc12 */ lui $t7,0xfc12 -/* f10148c: 35ef7e24 */ ori $t7,$t7,0x7e24 -/* f101490: 272e0008 */ addiu $t6,$t9,0x8 -/* f101494: afae01d8 */ sw $t6,0x1d8($sp) -/* f101498: 2418f9fc */ li $t8,-1540 -/* f10149c: af380004 */ sw $t8,0x4($t9) -/* f1014a0: af2f0000 */ sw $t7,0x0($t9) -/* f1014a4: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f1014a8: 3c0fb600 */ lui $t7,0xb600 -/* f1014ac: 24183000 */ li $t8,0x3000 -/* f1014b0: 272e0008 */ addiu $t6,$t9,0x8 -/* f1014b4: afae01d8 */ sw $t6,0x1d8($sp) -/* f1014b8: af380004 */ sw $t8,0x4($t9) -/* f1014bc: af2f0000 */ sw $t7,0x0($t9) -/* f1014c0: 24190002 */ li $t9,0x2 -/* f1014c4: 240e0001 */ li $t6,0x1 -/* f1014c8: afae0014 */ sw $t6,0x14($sp) -/* f1014cc: afb90010 */ sw $t9,0x10($sp) -/* f1014d0: afa00018 */ sw $zero,0x18($sp) -/* f1014d4: 27a401d8 */ addiu $a0,$sp,0x1d8 -/* f1014d8: 00002825 */ move $a1,$zero -/* f1014dc: 24060002 */ li $a2,0x2 -/* f1014e0: 0fc2cfb8 */ jal texSelect -/* f1014e4: 00003825 */ move $a3,$zero -/* f1014e8: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f1014ec: 3c19b900 */ lui $t9,0xb900 -/* f1014f0: 3c0e0050 */ lui $t6,0x50 -/* f1014f4: 25f80008 */ addiu $t8,$t7,0x8 -/* f1014f8: 27b301ba */ addiu $s3,$sp,0x1ba -/* f1014fc: 27b401b8 */ addiu $s4,$sp,0x1b8 -/* f101500: afb801d8 */ sw $t8,0x1d8($sp) -/* f101504: 35ce4240 */ ori $t6,$t6,0x4240 -/* f101508: 3739031d */ ori $t9,$t9,0x31d -/* f10150c: 02803825 */ move $a3,$s4 -/* f101510: 02603025 */ move $a2,$s3 -/* f101514: 24040001 */ li $a0,0x1 -/* f101518: 00002825 */ move $a1,$zero -/* f10151c: adf90000 */ sw $t9,0x0($t7) -/* f101520: 0fc3fe7d */ jal amCalculateSlotPosition -/* f101524: adee0004 */ sw $t6,0x4($t7) -/* f101528: 87af01ba */ lh $t7,0x1ba($sp) -/* f10152c: 2411000a */ li $s1,0xa -/* f101530: 2412fff6 */ li $s2,-10 -/* f101534: 01f10019 */ multu $t7,$s1 -/* f101538: 24040002 */ li $a0,0x2 -/* f10153c: 24050001 */ li $a1,0x1 -/* f101540: 02603025 */ move $a2,$s3 -/* f101544: 02803825 */ move $a3,$s4 -/* f101548: 0000c012 */ mflo $t8 -/* f10154c: a6180000 */ sh $t8,0x0($s0) -/* f101550: 87b901b8 */ lh $t9,0x1b8($sp) -/* f101554: a6120004 */ sh $s2,0x4($s0) -/* f101558: 03310019 */ multu $t9,$s1 -/* f10155c: 00007012 */ mflo $t6 -/* f101560: a60e0002 */ sh $t6,0x2($s0) -/* f101564: 0fc3fe7d */ jal amCalculateSlotPosition -/* f101568: 00000000 */ nop -/* f10156c: 87af01ba */ lh $t7,0x1ba($sp) -/* f101570: 24040001 */ li $a0,0x1 -/* f101574: 24050002 */ li $a1,0x2 -/* f101578: 01f10019 */ multu $t7,$s1 -/* f10157c: 02603025 */ move $a2,$s3 -/* f101580: 02803825 */ move $a3,$s4 -/* f101584: 0000c012 */ mflo $t8 -/* f101588: a618000c */ sh $t8,0xc($s0) -/* f10158c: 87b901b8 */ lh $t9,0x1b8($sp) -/* f101590: a6120010 */ sh $s2,0x10($s0) -/* f101594: 03310019 */ multu $t9,$s1 -/* f101598: 00007012 */ mflo $t6 -/* f10159c: a60e000e */ sh $t6,0xe($s0) -/* f1015a0: 0fc3fe7d */ jal amCalculateSlotPosition -/* f1015a4: 00000000 */ nop -/* f1015a8: 87af01ba */ lh $t7,0x1ba($sp) -/* f1015ac: 00002025 */ move $a0,$zero -/* f1015b0: 24050001 */ li $a1,0x1 -/* f1015b4: 01f10019 */ multu $t7,$s1 -/* f1015b8: 02603025 */ move $a2,$s3 -/* f1015bc: 02803825 */ move $a3,$s4 -/* f1015c0: 0000c012 */ mflo $t8 -/* f1015c4: a6180018 */ sh $t8,0x18($s0) -/* f1015c8: 87b901b8 */ lh $t9,0x1b8($sp) -/* f1015cc: a612001c */ sh $s2,0x1c($s0) -/* f1015d0: 03310019 */ multu $t9,$s1 -/* f1015d4: 00007012 */ mflo $t6 -/* f1015d8: a60e001a */ sh $t6,0x1a($s0) -/* f1015dc: 0fc3fe7d */ jal amCalculateSlotPosition -/* f1015e0: 00000000 */ nop -/* f1015e4: 87af01ba */ lh $t7,0x1ba($sp) -/* f1015e8: 8602000c */ lh $v0,0xc($s0) -/* f1015ec: 8607001a */ lh $a3,0x1a($s0) -/* f1015f0: 01f10019 */ multu $t7,$s1 -/* f1015f4: 86030002 */ lh $v1,0x2($s0) -/* f1015f8: 00e33023 */ subu $a2,$a3,$v1 -/* f1015fc: 0000c012 */ mflo $t8 -/* f101600: a6180024 */ sh $t8,0x24($s0) -/* f101604: 87b901b8 */ lh $t9,0x1b8($sp) -/* f101608: 86050024 */ lh $a1,0x24($s0) -/* f10160c: a6120028 */ sh $s2,0x28($s0) -/* f101610: 03310019 */ multu $t9,$s1 -/* f101614: 00452023 */ subu $a0,$v0,$a1 -/* f101618: a6120034 */ sh $s2,0x34($s0) -/* f10161c: a6120040 */ sh $s2,0x40($s0) -/* f101620: a612004c */ sh $s2,0x4c($s0) -/* f101624: a6120058 */ sh $s2,0x58($s0) -/* f101628: a2000007 */ sb $zero,0x7($s0) -/* f10162c: a2000013 */ sb $zero,0x13($s0) -/* f101630: a200001f */ sb $zero,0x1f($s0) -/* f101634: a200002b */ sb $zero,0x2b($s0) -/* f101638: 00007012 */ mflo $t6 -/* f10163c: a60e0026 */ sh $t6,0x26($s0) -/* f101640: 04810003 */ bgez $a0,.PF0f101650 -/* f101644: 000478c3 */ sra $t7,$a0,0x3 -/* f101648: 24810007 */ addiu $at,$a0,0x7 -/* f10164c: 000178c3 */ sra $t7,$at,0x3 -.PF0f101650: -/* f101650: 000fc400 */ sll $t8,$t7,0x10 -/* f101654: 0018cc03 */ sra $t9,$t8,0x10 -/* f101658: 03202025 */ move $a0,$t9 -/* f10165c: 86190000 */ lh $t9,0x0($s0) -/* f101660: 8618000e */ lh $t8,0xe($s0) -/* f101664: 04c10003 */ bgez $a2,.PF0f101674 -/* f101668: 000670c3 */ sra $t6,$a2,0x3 -/* f10166c: 24c10007 */ addiu $at,$a2,0x7 -/* f101670: 000170c3 */ sra $t6,$at,0x3 -.PF0f101674: -/* f101674: 01c03025 */ move $a2,$t6 -/* f101678: 00447823 */ subu $t7,$v0,$a0 -/* f10167c: a6190030 */ sh $t9,0x30($s0) -/* f101680: 86190018 */ lh $t9,0x18($s0) -/* f101684: 24020004 */ li $v0,0x4 -/* f101688: 00667021 */ addu $t6,$v1,$a2 -/* f10168c: a618003e */ sh $t8,0x3e($s0) -/* f101690: 86180026 */ lh $t8,0x26($s0) -/* f101694: a60e0032 */ sh $t6,0x32($s0) -/* f101698: a60f003c */ sh $t7,0x3c($s0) -/* f10169c: 00e67023 */ subu $t6,$a3,$a2 -/* f1016a0: a60e004a */ sh $t6,0x4a($s0) -/* f1016a4: 00a47821 */ addu $t7,$a1,$a0 -/* f1016a8: a6190048 */ sh $t9,0x48($s0) -/* f1016ac: a60f0054 */ sh $t7,0x54($s0) -/* f1016b0: a2020037 */ sb $v0,0x37($s0) -/* f1016b4: a2020043 */ sb $v0,0x43($s0) -/* f1016b8: a202004f */ sb $v0,0x4f($s0) -/* f1016bc: a202005b */ sb $v0,0x5b($s0) -/* f1016c0: 3c192222 */ lui $t9,0x2222 -/* f1016c4: a6180056 */ sh $t8,0x56($s0) -/* f1016c8: 37392200 */ ori $t9,$t9,0x2200 -/* f1016cc: 240e004f */ li $t6,0x4f -/* f1016d0: aeb90000 */ sw $t9,0x0($s5) -/* f1016d4: aeae0004 */ sw $t6,0x4($s5) -/* f1016d8: 8fb101d8 */ lw $s1,0x1d8($sp) -/* f1016dc: 3c190704 */ lui $t9,0x704 -/* f1016e0: 37390008 */ ori $t9,$t9,0x8 -/* f1016e4: 26380008 */ addiu $t8,$s1,0x8 -/* f1016e8: afb801d8 */ sw $t8,0x1d8($sp) -/* f1016ec: 02a02025 */ move $a0,$s5 -/* f1016f0: 0c012ab0 */ jal osVirtualToPhysical -/* f1016f4: ae390000 */ sw $t9,0x0($s1) -/* f1016f8: ae220004 */ sw $v0,0x4($s1) -/* f1016fc: 8fb201d8 */ lw $s2,0x1d8($sp) -/* f101700: 3c180470 */ lui $t8,0x470 -/* f101704: 37180060 */ ori $t8,$t8,0x60 -/* f101708: 264f0008 */ addiu $t7,$s2,0x8 -/* f10170c: afaf01d8 */ sw $t7,0x1d8($sp) -/* f101710: 02002025 */ move $a0,$s0 -/* f101714: 0c012ab0 */ jal osVirtualToPhysical -/* f101718: ae580000 */ sw $t8,0x0($s2) -/* f10171c: ae420004 */ sw $v0,0x4($s2) -/* f101720: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101724: 3c0fb100 */ lui $t7,0xb100 -/* f101728: 35ef0046 */ ori $t7,$t7,0x46 -/* f10172c: 272e0008 */ addiu $t6,$t9,0x8 -/* f101730: afae01d8 */ sw $t6,0x1d8($sp) -/* f101734: 24187654 */ li $t8,0x7654 -/* f101738: af380004 */ sw $t8,0x4($t9) -/* f10173c: af2f0000 */ sw $t7,0x0($t9) -/* f101740: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101744: 3c0fb100 */ lui $t7,0xb100 -/* f101748: 3c184510 */ lui $t8,0x4510 -/* f10174c: 272e0008 */ addiu $t6,$t9,0x8 -/* f101750: afae01d8 */ sw $t6,0x1d8($sp) -/* f101754: 37183740 */ ori $t8,$t8,0x3740 -/* f101758: 35ef0507 */ ori $t7,$t7,0x507 -/* f10175c: af2f0000 */ sw $t7,0x0($t9) -/* f101760: af380004 */ sw $t8,0x4($t9) -/* f101764: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101768: 3c187326 */ lui $t8,0x7326 -/* f10176c: 3c0fb100 */ lui $t7,0xb100 -/* f101770: 272e0008 */ addiu $t6,$t9,0x8 -/* f101774: afae01d8 */ sw $t6,0x1d8($sp) -/* f101778: 35ef6316 */ ori $t7,$t7,0x6316 -/* f10177c: 37185621 */ ori $t8,$t8,0x5621 -/* f101780: af380004 */ sw $t8,0x4($t9) -/* f101784: af2f0000 */ sw $t7,0x0($t9) -/* f101788: 0fc353da */ jal func0f0d49c8 -/* f10178c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101790: 3c168007 */ lui $s6,0x8007 -/* f101794: afa201d8 */ sw $v0,0x1d8($sp) -/* f101798: 26d61c80 */ addiu $s6,$s6,0x1c80 -/* f10179c: 00009825 */ move $s3,$zero -/* f1017a0: 27b5015c */ addiu $s5,$sp,0x15c -/* f1017a4: 00008825 */ move $s1,$zero -.PF0f1017a8: -/* f1017a8: 00132400 */ sll $a0,$s3,0x10 -.PF0f1017ac: -/* f1017ac: 00112c00 */ sll $a1,$s1,0x10 -/* f1017b0: 00057403 */ sra $t6,$a1,0x10 -/* f1017b4: 0004cc03 */ sra $t9,$a0,0x10 -/* f1017b8: 00008025 */ move $s0,$zero -/* f1017bc: 03202025 */ move $a0,$t9 -/* f1017c0: 01c02825 */ move $a1,$t6 -/* f1017c4: 27a60182 */ addiu $a2,$sp,0x182 -/* f1017c8: 27a70180 */ addiu $a3,$sp,0x180 -/* f1017cc: 0fc3fe7d */ jal amCalculateSlotPosition -/* f1017d0: 2414ffff */ li $s4,-1 -/* f1017d4: 3c18800a */ lui $t8,0x800a -/* f1017d8: 8f182758 */ lw $t8,0x2758($t8) -/* f1017dc: 00117880 */ sll $t7,$s1,0x2 -/* f1017e0: 01f17823 */ subu $t7,$t7,$s1 -/* f1017e4: 031e0019 */ multu $t8,$s8 -/* f1017e8: 026f9021 */ addu $s2,$s3,$t7 -/* f1017ec: afa001d0 */ sw $zero,0x1d0($sp) -/* f1017f0: 3c18800a */ lui $t8,0x800a -/* f1017f4: 0000c812 */ mflo $t9 -/* f1017f8: 02f97021 */ addu $t6,$s7,$t9 -/* f1017fc: 91cf000e */ lbu $t7,0xe($t6) -/* f101800: 164f0002 */ bne $s2,$t7,.PF0f10180c -/* f101804: 00000000 */ nop -/* f101808: 24100001 */ li $s0,0x1 -.PF0f10180c: -/* f10180c: 8319e58b */ lb $t9,-0x1a75($t8) -/* f101810: 07210029 */ bgez $t9,.PF0f1018b8 -/* f101814: 00000000 */ nop -/* f101818: 0fc3f983 */ jal amGetFirstBuddyIndex -/* f10181c: 00000000 */ nop -/* f101820: 04400025 */ bltz $v0,.PF0f1018b8 -/* f101824: 00000000 */ nop -/* f101828: 16000042 */ bnez $s0,.PF0f101934 -/* f10182c: 3c0e800a */ lui $t6,0x800a -/* f101830: 8dce2758 */ lw $t6,0x2758($t6) -/* f101834: 01de0019 */ multu $t6,$s8 -/* f101838: 00027080 */ sll $t6,$v0,0x2 -/* f10183c: 00007812 */ mflo $t7 -/* f101840: 02efc021 */ addu $t8,$s7,$t7 -/* f101844: 83190000 */ lb $t9,0x0($t8) -/* f101848: 3c0f800a */ lui $t7,0x800a -/* f10184c: 01ee7821 */ addu $t7,$t7,$t6 -/* f101850: 2b210002 */ slti $at,$t9,0x2 -/* f101854: 14200037 */ bnez $at,.PF0f101934 -/* f101858: 0011c080 */ sll $t8,$s1,0x2 -/* f10185c: 0311c023 */ subu $t8,$t8,$s1 -/* f101860: 02d8c821 */ addu $t9,$s6,$t8 -/* f101864: 03337021 */ addu $t6,$t9,$s3 -/* f101868: 91c40000 */ lbu $a0,0x0($t6) -/* f10186c: 8defa9c8 */ lw $t7,-0x5638($t7) -/* f101870: 24010007 */ li $at,0x7 -/* f101874: 14810007 */ bne $a0,$at,.PF0f101894 -/* f101878: 8de30004 */ lw $v1,0x4($t7) -/* f10187c: 8c6f0014 */ lw $t7,0x14($v1) -/* f101880: 31f80400 */ andi $t8,$t7,0x400 -/* f101884: 1300002b */ beqz $t8,.PF0f101934 -/* f101888: 00000000 */ nop -/* f10188c: 10000029 */ b .PF0f101934 -/* f101890: 24100002 */ li $s0,0x2 -.PF0f101894: -/* f101894: 24010001 */ li $at,0x1 -/* f101898: 14810026 */ bne $a0,$at,.PF0f101934 -/* f10189c: 00000000 */ nop -/* f1018a0: 8c790014 */ lw $t9,0x14($v1) -/* f1018a4: 332e0400 */ andi $t6,$t9,0x400 -/* f1018a8: 15c00022 */ bnez $t6,.PF0f101934 -/* f1018ac: 00000000 */ nop -/* f1018b0: 10000020 */ b .PF0f101934 -/* f1018b4: 24100002 */ li $s0,0x2 -.PF0f1018b8: -/* f1018b8: 3c0f800a */ lui $t7,0x800a -/* f1018bc: 8defa828 */ lw $t7,-0x57d8($t7) -/* f1018c0: 11e0001c */ beqz $t7,.PF0f101934 -/* f1018c4: 00000000 */ nop -/* f1018c8: 1600001a */ bnez $s0,.PF0f101934 -/* f1018cc: 3c18800a */ lui $t8,0x800a -/* f1018d0: 8f182758 */ lw $t8,0x2758($t8) -/* f1018d4: 031e0019 */ multu $t8,$s8 -/* f1018d8: 0011c080 */ sll $t8,$s1,0x2 -/* f1018dc: 0311c023 */ subu $t8,$t8,$s1 -/* f1018e0: 0000c812 */ mflo $t9 -/* f1018e4: 02f97021 */ addu $t6,$s7,$t9 -/* f1018e8: 81cf0000 */ lb $t7,0x0($t6) -/* f1018ec: 02d8c821 */ addu $t9,$s6,$t8 -/* f1018f0: 03337021 */ addu $t6,$t9,$s3 -/* f1018f4: 29e10002 */ slti $at,$t7,0x2 -/* f1018f8: 1420000e */ bnez $at,.PF0f101934 -/* f1018fc: 8fb801c4 */ lw $t8,0x1c4($sp) -/* f101900: 91cf0000 */ lbu $t7,0x0($t6) -/* f101904: 3c0e800b */ lui $t6,0x800b -/* f101908: 0018c880 */ sll $t9,$t8,0x2 -/* f10190c: 01d97021 */ addu $t6,$t6,$t9 -/* f101910: 8dceca70 */ lw $t6,-0x3590($t6) -/* f101914: 3c02800b */ lui $v0,0x800b -/* f101918: 004f1021 */ addu $v0,$v0,$t7 -/* f10191c: 8dcf02d4 */ lw $t7,0x2d4($t6) -/* f101920: 9042d118 */ lbu $v0,-0x2ee8($v0) -/* f101924: 91e30079 */ lbu $v1,0x79($t7) -/* f101928: 14430002 */ bne $v0,$v1,.PF0f101934 -/* f10192c: 00000000 */ nop -/* f101930: 24100002 */ li $s0,0x2 -.PF0f101934: -/* f101934: 3c18800a */ lui $t8,0x800a -/* f101938: 8f18a794 */ lw $t8,-0x586c($t8) -/* f10193c: 24010002 */ li $at,0x2 -/* f101940: 02402025 */ move $a0,$s2 -/* f101944: 93190250 */ lbu $t9,0x250($t8) -/* f101948: 27a501d0 */ addiu $a1,$sp,0x1d0 -/* f10194c: 17210003 */ bne $t9,$at,.PF0f10195c -/* f101950: 00000000 */ nop -/* f101954: 3c144f4f */ lui $s4,0x4f4f -/* f101958: 36944f7f */ ori $s4,$s4,0x4f7f -.PF0f10195c: -/* f10195c: 0fc3fa80 */ jal amGetSlotDetails -/* f101960: 02a03025 */ move $a2,$s5 -/* f101964: 24020001 */ li $v0,0x1 -/* f101968: 1662000f */ bne $s3,$v0,.PF0f1019a8 -/* f10196c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101970: 5622000e */ bnel $s1,$v0,.PF0f1019ac -/* f101974: 8faf01d0 */ lw $t7,0x1d0($sp) -/* f101978: 0fc3fe0f */ jal amIsCramped -/* f10197c: 00000000 */ nop -/* f101980: 14400011 */ bnez $v0,.PF0f1019c8 -/* f101984: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101988: 87ae0180 */ lh $t6,0x180($sp) -/* f10198c: 02a02825 */ move $a1,$s5 -/* f101990: 02803025 */ move $a2,$s4 -/* f101994: 87a70182 */ lh $a3,0x182($sp) -/* f101998: 0fc3ff9d */ jal amRenderText -/* f10199c: afae0010 */ sw $t6,0x10($sp) -/* f1019a0: 10000009 */ b .PF0f1019c8 -/* f1019a4: afa201d8 */ sw $v0,0x1d8($sp) -.PF0f1019a8: -/* f1019a8: 8faf01d0 */ lw $t7,0x1d0($sp) -.PF0f1019ac: -/* f1019ac: 02a02825 */ move $a1,$s5 -/* f1019b0: 87a60182 */ lh $a2,0x182($sp) -/* f1019b4: 87a70180 */ lh $a3,0x180($sp) -/* f1019b8: afb00010 */ sw $s0,0x10($sp) -/* f1019bc: 0fc4022a */ jal amRenderSlot -/* f1019c0: afaf0014 */ sw $t7,0x14($sp) -/* f1019c4: afa201d8 */ sw $v0,0x1d8($sp) -.PF0f1019c8: -/* f1019c8: 26310001 */ addiu $s1,$s1,0x1 -/* f1019cc: 0011c400 */ sll $t8,$s1,0x10 -/* f1019d0: 00188c03 */ sra $s1,$t8,0x10 -/* f1019d4: 2a210003 */ slti $at,$s1,0x3 -/* f1019d8: 5420ff74 */ bnezl $at,.PF0f1017ac -/* f1019dc: 00132400 */ sll $a0,$s3,0x10 -/* f1019e0: 26730001 */ addiu $s3,$s3,0x1 -/* f1019e4: 00137400 */ sll $t6,$s3,0x10 -/* f1019e8: 000e9c03 */ sra $s3,$t6,0x10 -/* f1019ec: 2a610003 */ slti $at,$s3,0x3 -/* f1019f0: 5420ff6d */ bnezl $at,.PF0f1017a8 -/* f1019f4: 00008825 */ move $s1,$zero -/* f1019f8: 3c18800a */ lui $t8,0x800a -/* f1019fc: 8319e58b */ lb $t9,-0x1a75($t8) -/* f101a00: 07210004 */ bgez $t9,.PF0f101a14 -/* f101a04: 00000000 */ nop -/* f101a08: 0fc3f983 */ jal amGetFirstBuddyIndex -/* f101a0c: 00000000 */ nop -/* f101a10: 04410011 */ bgez $v0,.PF0f101a58 -.PF0f101a14: -/* f101a14: 3c0e800a */ lui $t6,0x800a -/* f101a18: 8dcea828 */ lw $t6,-0x57d8($t6) -/* f101a1c: 3c0f800a */ lui $t7,0x800a -/* f101a20: 11c0000d */ beqz $t6,.PF0f101a58 -/* f101a24: 00000000 */ nop -/* f101a28: 8def2758 */ lw $t7,0x2758($t7) -/* f101a2c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101a30: 01fe0019 */ multu $t7,$s8 -/* f101a34: 0000c012 */ mflo $t8 -/* f101a38: 02f8c821 */ addu $t9,$s7,$t8 -/* f101a3c: 83220000 */ lb $v0,0x0($t9) -/* f101a40: 28410002 */ slti $at,$v0,0x2 -/* f101a44: 14200004 */ bnez $at,.PF0f101a58 -/* f101a48: 00000000 */ nop -/* f101a4c: 0fc3ffcf */ jal amRenderAibotInfo -/* f101a50: 2445fffe */ addiu $a1,$v0,-2 -/* f101a54: afa201d8 */ sw $v0,0x1d8($sp) -.PF0f101a58: -/* f101a58: 3c0e800a */ lui $t6,0x800a -/* f101a5c: 8dce2758 */ lw $t6,0x2758($t6) -/* f101a60: 3c02800a */ lui $v0,0x800a -/* f101a64: 2442a510 */ addiu $v0,$v0,-23280 -/* f101a68: 01de0019 */ multu $t6,$s8 -/* f101a6c: 00007812 */ mflo $t7 -/* f101a70: 02ef8021 */ addu $s0,$s7,$t7 -/* f101a74: 82180000 */ lb $t8,0x0($s0) -/* f101a78: 2b010002 */ slti $at,$t8,0x2 -/* f101a7c: 14200005 */ bnez $at,.PF0f101a94 -/* f101a80: 24010001 */ li $at,0x1 -/* f101a84: 16610003 */ bne $s3,$at,.PF0f101a94 -/* f101a88: 24010001 */ li $at,0x1 -/* f101a8c: 12210154 */ beq $s1,$at,.PF0f101fe0 -/* f101a90: 00000000 */ nop -.PF0f101a94: -/* f101a94: 8c59006c */ lw $t9,0x6c($v0) -/* f101a98: 24120006 */ li $s2,0x6 -/* f101a9c: 24130006 */ li $s3,0x6 -/* f101aa0: 53200004 */ beqzl $t9,.PF0f101ab4 -/* f101aa4: 00003025 */ move $a2,$zero -/* f101aa8: 10000002 */ b .PF0f101ab4 -/* f101aac: 24060001 */ li $a2,0x1 -/* f101ab0: 00003025 */ move $a2,$zero -.PF0f101ab4: -/* f101ab4: 8c4e0068 */ lw $t6,0x68($v0) -/* f101ab8: 00002825 */ move $a1,$zero -/* f101abc: 11c00003 */ beqz $t6,.PF0f101acc -/* f101ac0: 00000000 */ nop -/* f101ac4: 10000001 */ b .PF0f101acc -/* f101ac8: 24050001 */ li $a1,0x1 -.PF0f101acc: -/* f101acc: 8c4f0064 */ lw $t7,0x64($v0) -/* f101ad0: 00002025 */ move $a0,$zero -/* f101ad4: 11e00003 */ beqz $t7,.PF0f101ae4 -/* f101ad8: 00000000 */ nop -/* f101adc: 10000001 */ b .PF0f101ae4 -/* f101ae0: 24040001 */ li $a0,0x1 -.PF0f101ae4: -/* f101ae4: 8c580070 */ lw $t8,0x70($v0) -/* f101ae8: 00001825 */ move $v1,$zero -/* f101aec: 13000003 */ beqz $t8,.PF0f101afc -/* f101af0: 00000000 */ nop -/* f101af4: 10000001 */ b .PF0f101afc -/* f101af8: 24030001 */ li $v1,0x1 -.PF0f101afc: -/* f101afc: 0064c821 */ addu $t9,$v1,$a0 -/* f101b00: 03257021 */ addu $t6,$t9,$a1 -/* f101b04: 01c67821 */ addu $t7,$t6,$a2 -/* f101b08: 29e10002 */ slti $at,$t7,0x2 -/* f101b0c: 14200003 */ bnez $at,.PF0f101b1c -/* f101b10: 00000000 */ nop -/* f101b14: 24120005 */ li $s2,0x5 -/* f101b18: 24130003 */ li $s3,0x3 -.PF0f101b1c: -/* f101b1c: 0c00685b */ jal sinf -/* f101b20: c60c001c */ lwc1 $f12,0x1c($s0) -/* f101b24: 3c013f80 */ lui $at,0x3f80 -/* f101b28: 44812000 */ mtc1 $at,$f4 -/* f101b2c: 3c0142fe */ lui $at,0x42fe -/* f101b30: 44814000 */ mtc1 $at,$f8 -/* f101b34: 46040180 */ add.s $f6,$f0,$f4 -/* f101b38: 24020001 */ li $v0,0x1 -/* f101b3c: 3c014f00 */ lui $at,0x4f00 -/* f101b40: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101b44: 46083282 */ mul.s $f10,$f6,$f8 -/* f101b48: 4458f800 */ cfc1 $t8,$31 -/* f101b4c: 44c2f800 */ ctc1 $v0,$31 -/* f101b50: 00000000 */ nop -/* f101b54: 46005424 */ cvt.w.s $f16,$f10 -/* f101b58: 4442f800 */ cfc1 $v0,$31 -/* f101b5c: 00000000 */ nop -/* f101b60: 30420078 */ andi $v0,$v0,0x78 -/* f101b64: 50400013 */ beqzl $v0,.PF0f101bb4 -/* f101b68: 44028000 */ mfc1 $v0,$f16 -/* f101b6c: 44818000 */ mtc1 $at,$f16 -/* f101b70: 24020001 */ li $v0,0x1 -/* f101b74: 46105401 */ sub.s $f16,$f10,$f16 -/* f101b78: 44c2f800 */ ctc1 $v0,$31 -/* f101b7c: 00000000 */ nop -/* f101b80: 46008424 */ cvt.w.s $f16,$f16 -/* f101b84: 4442f800 */ cfc1 $v0,$31 -/* f101b88: 00000000 */ nop -/* f101b8c: 30420078 */ andi $v0,$v0,0x78 -/* f101b90: 14400005 */ bnez $v0,.PF0f101ba8 -/* f101b94: 00000000 */ nop -/* f101b98: 44028000 */ mfc1 $v0,$f16 -/* f101b9c: 3c018000 */ lui $at,0x8000 -/* f101ba0: 10000007 */ b .PF0f101bc0 -/* f101ba4: 00411025 */ or $v0,$v0,$at -.PF0f101ba8: -/* f101ba8: 10000005 */ b .PF0f101bc0 -/* f101bac: 2402ffff */ li $v0,-1 -/* f101bb0: 44028000 */ mfc1 $v0,$f16 -.PF0f101bb4: -/* f101bb4: 00000000 */ nop -/* f101bb8: 0440fffb */ bltz $v0,.PF0f101ba8 -/* f101bbc: 00000000 */ nop -.PF0f101bc0: -/* f101bc0: 44d8f800 */ ctc1 $t8,$31 -/* f101bc4: 3c18800a */ lui $t8,0x800a -/* f101bc8: 8f18a794 */ lw $t8,-0x586c($t8) -/* f101bcc: 3c01ff00 */ lui $at,0xff00 -/* f101bd0: 342100ff */ ori $at,$at,0xff -/* f101bd4: 0002ca00 */ sll $t9,$v0,0x8 -/* f101bd8: 03217025 */ or $t6,$t9,$at -/* f101bdc: 93190250 */ lbu $t9,0x250($t8) -/* f101be0: 00027c00 */ sll $t7,$v0,0x10 -/* f101be4: 24010002 */ li $at,0x2 -/* f101be8: 17210003 */ bne $t9,$at,.PF0f101bf8 -/* f101bec: 01cfa025 */ or $s4,$t6,$t7 -/* f101bf0: 3c144f4f */ lui $s4,0x4f4f -/* f101bf4: 36944f7f */ ori $s4,$s4,0x4f7f -.PF0f101bf8: -/* f101bf8: 0fc5513c */ jal textSetPrimColour -/* f101bfc: 02802825 */ move $a1,$s4 -/* f101c00: 3c0e800a */ lui $t6,0x800a -/* f101c04: 8dce2758 */ lw $t6,0x2758($t6) -/* f101c08: afa201d8 */ sw $v0,0x1d8($sp) -/* f101c0c: 01de0019 */ multu $t6,$s8 -/* f101c10: 00007812 */ mflo $t7 -/* f101c14: 02ef8021 */ addu $s0,$s7,$t7 -/* f101c18: 86110004 */ lh $s1,0x4($s0) -/* f101c1c: 9219000e */ lbu $t9,0xe($s0) -/* f101c20: 06210003 */ bgez $s1,.PF0f101c30 -/* f101c24: 0011c043 */ sra $t8,$s1,0x1 -/* f101c28: 26210001 */ addiu $at,$s1,0x1 -/* f101c2c: 0001c043 */ sra $t8,$at,0x1 -.PF0f101c30: -/* f101c30: 24010004 */ li $at,0x4 -/* f101c34: 1721003c */ bne $t9,$at,.PF0f101d28 -/* f101c38: 03008825 */ move $s1,$t8 -/* f101c3c: 0fc3fe0f */ jal amIsCramped -/* f101c40: 00000000 */ nop -/* f101c44: 10400005 */ beqz $v0,.PF0f101c5c -/* f101c48: 3c0e800a */ lui $t6,0x800a -/* f101c4c: 24110001 */ li $s1,0x1 -/* f101c50: 24120002 */ li $s2,0x2 -/* f101c54: 10000034 */ b .PF0f101d28 -/* f101c58: 00009825 */ move $s3,$zero -.PF0f101c5c: -/* f101c5c: 8dcea57c */ lw $t6,-0x5a84($t6) -/* f101c60: 3c0f800a */ lui $t7,0x800a -/* f101c64: 3c18800a */ lui $t8,0x800a -/* f101c68: 11c00003 */ beqz $t6,.PF0f101c78 -/* f101c6c: 3c19800a */ lui $t9,0x800a -/* f101c70: 10000002 */ b .PF0f101c7c -/* f101c74: 24060001 */ li $a2,0x1 -.PF0f101c78: -/* f101c78: 00003025 */ move $a2,$zero -.PF0f101c7c: -/* f101c7c: 8defa578 */ lw $t7,-0x5a88($t7) -/* f101c80: 00002825 */ move $a1,$zero -/* f101c84: 00002025 */ move $a0,$zero -/* f101c88: 11e00003 */ beqz $t7,.PF0f101c98 -/* f101c8c: 00001825 */ move $v1,$zero -/* f101c90: 10000001 */ b .PF0f101c98 -/* f101c94: 24050001 */ li $a1,0x1 -.PF0f101c98: -/* f101c98: 8f18a574 */ lw $t8,-0x5a8c($t8) -/* f101c9c: 27b00118 */ addiu $s0,$sp,0x118 -/* f101ca0: 13000003 */ beqz $t8,.PF0f101cb0 -/* f101ca4: 00000000 */ nop -/* f101ca8: 10000001 */ b .PF0f101cb0 -/* f101cac: 24040001 */ li $a0,0x1 -.PF0f101cb0: -/* f101cb0: 8f39a580 */ lw $t9,-0x5a80($t9) -/* f101cb4: 13200003 */ beqz $t9,.PF0f101cc4 -/* f101cb8: 00000000 */ nop -/* f101cbc: 10000001 */ b .PF0f101cc4 -/* f101cc0: 24030001 */ li $v1,0x1 -.PF0f101cc4: -/* f101cc4: 00647021 */ addu $t6,$v1,$a0 -/* f101cc8: 01c57821 */ addu $t7,$t6,$a1 -/* f101ccc: 01e6c021 */ addu $t8,$t7,$a2 -/* f101cd0: 2b010002 */ slti $at,$t8,0x2 -/* f101cd4: 14200014 */ bnez $at,.PF0f101d28 -/* f101cd8: 24040004 */ li $a0,0x4 -/* f101cdc: 27a50114 */ addiu $a1,$sp,0x114 -/* f101ce0: 0fc3fa80 */ jal amGetSlotDetails -/* f101ce4: 02003025 */ move $a2,$s0 -/* f101ce8: 3c19800a */ lui $t9,0x800a -/* f101cec: 8f392754 */ lw $t9,0x2754($t9) -/* f101cf0: 3c07800a */ lui $a3,0x800a -/* f101cf4: 8ce72750 */ lw $a3,0x2750($a3) -/* f101cf8: 27a4013c */ addiu $a0,$sp,0x13c -/* f101cfc: 27a50138 */ addiu $a1,$sp,0x138 -/* f101d00: 02003025 */ move $a2,$s0 -/* f101d04: afa00014 */ sw $zero,0x14($sp) -/* f101d08: 0fc5609a */ jal textMeasure -/* f101d0c: afb90010 */ sw $t9,0x10($sp) -/* f101d10: 8fb10138 */ lw $s1,0x138($sp) -/* f101d14: 06210003 */ bgez $s1,.PF0f101d24 -/* f101d18: 00117043 */ sra $t6,$s1,0x1 -/* f101d1c: 26210001 */ addiu $at,$s1,0x1 -/* f101d20: 00017043 */ sra $t6,$at,0x1 -.PF0f101d24: -/* f101d24: 25d10002 */ addiu $s1,$t6,0x2 -.PF0f101d28: -/* f101d28: 3c19800a */ lui $t9,0x800a -/* f101d2c: 8f392758 */ lw $t9,0x2758($t9) -/* f101d30: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f101d34: 3c068008 */ lui $a2,0x8008 -/* f101d38: 033e0019 */ multu $t9,$s8 -/* f101d3c: 24c60020 */ addiu $a2,$a2,0x20 -/* f101d40: 24580008 */ addiu $t8,$v0,0x8 -/* f101d44: afb801d8 */ sw $t8,0x1d8($sp) -/* f101d48: 3c16f600 */ lui $s6,0xf600 -/* f101d4c: 00007012 */ mflo $t6 -/* f101d50: 02ee8021 */ addu $s0,$s7,$t6 -/* f101d54: 860f0006 */ lh $t7,0x6($s0) -/* f101d58: 8cce0000 */ lw $t6,0x0($a2) -/* f101d5c: 01f1c021 */ addu $t8,$t7,$s1 -/* f101d60: 27190001 */ addiu $t9,$t8,0x1 -/* f101d64: 032e0019 */ multu $t9,$t6 -/* f101d68: 860e0008 */ lh $t6,0x8($s0) -/* f101d6c: 00007812 */ mflo $t7 -/* f101d70: 31f803ff */ andi $t8,$t7,0x3ff -/* f101d74: 0018cb80 */ sll $t9,$t8,0xe -/* f101d78: 01d27823 */ subu $t7,$t6,$s2 -/* f101d7c: 25f80001 */ addiu $t8,$t7,0x1 -/* f101d80: 330e03ff */ andi $t6,$t8,0x3ff -/* f101d84: 000e7880 */ sll $t7,$t6,0x2 -/* f101d88: 01f6c025 */ or $t8,$t7,$s6 -/* f101d8c: 03197025 */ or $t6,$t8,$t9 -/* f101d90: 3c0f800a */ lui $t7,0x800a -/* f101d94: ac4e0000 */ sw $t6,0x0($v0) -/* f101d98: 8def2758 */ lw $t7,0x2758($t7) -/* f101d9c: 01fe0019 */ multu $t7,$s8 -/* f101da0: 8ccf0000 */ lw $t7,0x0($a2) -/* f101da4: 0000c012 */ mflo $t8 -/* f101da8: 02f88021 */ addu $s0,$s7,$t8 -/* f101dac: 86190006 */ lh $t9,0x6($s0) -/* f101db0: 03317023 */ subu $t6,$t9,$s1 -/* f101db4: 01cf0019 */ multu $t6,$t7 -/* f101db8: 860f0008 */ lh $t7,0x8($s0) -/* f101dbc: 0000c012 */ mflo $t8 -/* f101dc0: 331903ff */ andi $t9,$t8,0x3ff -/* f101dc4: 00197380 */ sll $t6,$t9,0xe -/* f101dc8: 01f2c023 */ subu $t8,$t7,$s2 -/* f101dcc: 331903ff */ andi $t9,$t8,0x3ff -/* f101dd0: 00197880 */ sll $t7,$t9,0x2 -/* f101dd4: 01eec025 */ or $t8,$t7,$t6 -/* f101dd8: 3c0e800a */ lui $t6,0x800a -/* f101ddc: ac580004 */ sw $t8,0x4($v0) -/* f101de0: 8dce2758 */ lw $t6,0x2758($t6) -/* f101de4: 8fa301d8 */ lw $v1,0x1d8($sp) -/* f101de8: 01de0019 */ multu $t6,$s8 -/* f101dec: 246f0008 */ addiu $t7,$v1,0x8 -/* f101df0: afaf01d8 */ sw $t7,0x1d8($sp) -/* f101df4: 0000c012 */ mflo $t8 -/* f101df8: 02f88021 */ addu $s0,$s7,$t8 -/* f101dfc: 86190006 */ lh $t9,0x6($s0) -/* f101e00: 8cd80000 */ lw $t8,0x0($a2) -/* f101e04: 03317821 */ addu $t7,$t9,$s1 -/* f101e08: 25ee0001 */ addiu $t6,$t7,0x1 -/* f101e0c: 01d80019 */ multu $t6,$t8 -/* f101e10: 86180008 */ lh $t8,0x8($s0) -/* f101e14: 0000c812 */ mflo $t9 -/* f101e18: 332f03ff */ andi $t7,$t9,0x3ff -/* f101e1c: 000f7380 */ sll $t6,$t7,0xe -/* f101e20: 0313c821 */ addu $t9,$t8,$s3 -/* f101e24: 272f0001 */ addiu $t7,$t9,0x1 -/* f101e28: 31f803ff */ andi $t8,$t7,0x3ff -/* f101e2c: 0018c880 */ sll $t9,$t8,0x2 -/* f101e30: 03367825 */ or $t7,$t9,$s6 -/* f101e34: 01eec025 */ or $t8,$t7,$t6 -/* f101e38: 3c19800a */ lui $t9,0x800a -/* f101e3c: ac780000 */ sw $t8,0x0($v1) -/* f101e40: 8f392758 */ lw $t9,0x2758($t9) -/* f101e44: 033e0019 */ multu $t9,$s8 -/* f101e48: 8cd90000 */ lw $t9,0x0($a2) -/* f101e4c: 00007812 */ mflo $t7 -/* f101e50: 02ef8021 */ addu $s0,$s7,$t7 -/* f101e54: 860e0006 */ lh $t6,0x6($s0) -/* f101e58: 01d1c023 */ subu $t8,$t6,$s1 -/* f101e5c: 03190019 */ multu $t8,$t9 -/* f101e60: 86190008 */ lh $t9,0x8($s0) -/* f101e64: 00007812 */ mflo $t7 -/* f101e68: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101e6c: 000ec380 */ sll $t8,$t6,0xe -/* f101e70: 03337821 */ addu $t7,$t9,$s3 -/* f101e74: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101e78: 000ec880 */ sll $t9,$t6,0x2 -/* f101e7c: 03387825 */ or $t7,$t9,$t8 -/* f101e80: 3c18800a */ lui $t8,0x800a -/* f101e84: ac6f0004 */ sw $t7,0x4($v1) -/* f101e88: 8f182758 */ lw $t8,0x2758($t8) -/* f101e8c: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f101e90: 031e0019 */ multu $t8,$s8 -/* f101e94: 24b90008 */ addiu $t9,$a1,0x8 -/* f101e98: afb901d8 */ sw $t9,0x1d8($sp) -/* f101e9c: 00007812 */ mflo $t7 -/* f101ea0: 02ef8021 */ addu $s0,$s7,$t7 -/* f101ea4: 860e0006 */ lh $t6,0x6($s0) -/* f101ea8: 8ccf0000 */ lw $t7,0x0($a2) -/* f101eac: 01d1c823 */ subu $t9,$t6,$s1 -/* f101eb0: 27380001 */ addiu $t8,$t9,0x1 -/* f101eb4: 030f0019 */ multu $t8,$t7 -/* f101eb8: 860f0008 */ lh $t7,0x8($s0) -/* f101ebc: 00007012 */ mflo $t6 -/* f101ec0: 31d903ff */ andi $t9,$t6,0x3ff -/* f101ec4: 0019c380 */ sll $t8,$t9,0xe -/* f101ec8: 01f37021 */ addu $t6,$t7,$s3 -/* f101ecc: 31d903ff */ andi $t9,$t6,0x3ff -/* f101ed0: 00197880 */ sll $t7,$t9,0x2 -/* f101ed4: 01f67025 */ or $t6,$t7,$s6 -/* f101ed8: 01d8c825 */ or $t9,$t6,$t8 -/* f101edc: 3c0f800a */ lui $t7,0x800a -/* f101ee0: acb90000 */ sw $t9,0x0($a1) -/* f101ee4: 8def2758 */ lw $t7,0x2758($t7) -/* f101ee8: 01fe0019 */ multu $t7,$s8 -/* f101eec: 8ccf0000 */ lw $t7,0x0($a2) -/* f101ef0: 00007012 */ mflo $t6 -/* f101ef4: 02ee8021 */ addu $s0,$s7,$t6 -/* f101ef8: 86180006 */ lh $t8,0x6($s0) -/* f101efc: 0311c823 */ subu $t9,$t8,$s1 -/* f101f00: 032f0019 */ multu $t9,$t7 -/* f101f04: 860f0008 */ lh $t7,0x8($s0) -/* f101f08: 00007012 */ mflo $t6 -/* f101f0c: 31d803ff */ andi $t8,$t6,0x3ff -/* f101f10: 0018cb80 */ sll $t9,$t8,0xe -/* f101f14: 01f27023 */ subu $t6,$t7,$s2 -/* f101f18: 25d80001 */ addiu $t8,$t6,0x1 -/* f101f1c: 330f03ff */ andi $t7,$t8,0x3ff -/* f101f20: 000f7080 */ sll $t6,$t7,0x2 -/* f101f24: 01d9c025 */ or $t8,$t6,$t9 -/* f101f28: 3c19800a */ lui $t9,0x800a -/* f101f2c: acb80004 */ sw $t8,0x4($a1) -/* f101f30: 8f392758 */ lw $t9,0x2758($t9) -/* f101f34: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f101f38: 033e0019 */ multu $t9,$s8 -/* f101f3c: 244e0008 */ addiu $t6,$v0,0x8 -/* f101f40: afae01d8 */ sw $t6,0x1d8($sp) -/* f101f44: 0000c012 */ mflo $t8 -/* f101f48: 02f88021 */ addu $s0,$s7,$t8 -/* f101f4c: 860f0006 */ lh $t7,0x6($s0) -/* f101f50: 8cd80000 */ lw $t8,0x0($a2) -/* f101f54: 01f17021 */ addu $t6,$t7,$s1 -/* f101f58: 25d90001 */ addiu $t9,$t6,0x1 -/* f101f5c: 03380019 */ multu $t9,$t8 -/* f101f60: 86180008 */ lh $t8,0x8($s0) -/* f101f64: 00007812 */ mflo $t7 -/* f101f68: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101f6c: 000ecb80 */ sll $t9,$t6,0xe -/* f101f70: 03137821 */ addu $t7,$t8,$s3 -/* f101f74: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101f78: 000ec080 */ sll $t8,$t6,0x2 -/* f101f7c: 03167825 */ or $t7,$t8,$s6 -/* f101f80: 01f97025 */ or $t6,$t7,$t9 -/* f101f84: 3c18800a */ lui $t8,0x800a -/* f101f88: ac4e0000 */ sw $t6,0x0($v0) -/* f101f8c: 8f182758 */ lw $t8,0x2758($t8) -/* f101f90: 031e0019 */ multu $t8,$s8 -/* f101f94: 8cd80000 */ lw $t8,0x0($a2) -/* f101f98: 00007812 */ mflo $t7 -/* f101f9c: 02ef8021 */ addu $s0,$s7,$t7 -/* f101fa0: 86190006 */ lh $t9,0x6($s0) -/* f101fa4: 03317021 */ addu $t6,$t9,$s1 -/* f101fa8: 01d80019 */ multu $t6,$t8 -/* f101fac: 86180008 */ lh $t8,0x8($s0) -/* f101fb0: 00007812 */ mflo $t7 -/* f101fb4: 31f903ff */ andi $t9,$t7,0x3ff -/* f101fb8: 00197380 */ sll $t6,$t9,0xe -/* f101fbc: 03127823 */ subu $t7,$t8,$s2 -/* f101fc0: 25f90001 */ addiu $t9,$t7,0x1 -/* f101fc4: 333803ff */ andi $t8,$t9,0x3ff -/* f101fc8: 00187880 */ sll $t7,$t8,0x2 -/* f101fcc: 01eec825 */ or $t9,$t7,$t6 -/* f101fd0: ac590004 */ sw $t9,0x4($v0) -/* f101fd4: 0fc55153 */ jal text0f153838 -/* f101fd8: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101fdc: afa201d8 */ sw $v0,0x1d8($sp) -.PF0f101fe0: -/* f101fe0: 0fc55125 */ jal text0f153780 -/* f101fe4: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101fe8: 3c03800a */ lui $v1,0x800a -/* f101fec: 3c0b800a */ lui $t3,0x800a -/* f101ff0: 256ba510 */ addiu $t3,$t3,-23280 -/* f101ff4: 8c63a794 */ lw $v1,-0x586c($v1) -/* f101ff8: afa201d8 */ sw $v0,0x1d8($sp) -/* f101ffc: 8c621c04 */ lw $v0,0x1c04($v1) -.PF0f102000: -/* f102000: 3c16f600 */ lui $s6,0xf600 -/* f102004: 50400252 */ beqzl $v0,.PF0f102950 -/* f102008: 8fbf004c */ lw $ra,0x4c($sp) -/* f10200c: c4400104 */ lwc1 $f0,0x104($v0) -/* f102010: c4520100 */ lwc1 $f18,0x100($v0) -/* f102014: 3c013e00 */ lui $at,0x3e00 -/* f102018: 44815000 */ mtc1 $at,$f10 -/* f10201c: 46120101 */ sub.s $f4,$f0,$f18 -/* f102020: 3c013e80 */ lui $at,0x3e80 -/* f102024: 44819000 */ mtc1 $at,$f18 -/* f102028: 0000f025 */ move $s8,$zero -/* f10202c: 46002183 */ div.s $f6,$f4,$f0 -/* f102030: e7a60100 */ swc1 $f6,0x100($sp) -/* f102034: c4480180 */ lwc1 $f8,0x180($v0) -/* f102038: 4612303c */ c.lt.s $f6,$f18 -/* f10203c: 460a4402 */ mul.s $f16,$f8,$f10 -/* f102040: 45000002 */ bc1f .PF0f10204c -/* f102044: e7b000fc */ swc1 $f16,0xfc($sp) -/* f102048: 241e0001 */ li $s8,0x1 -.PF0f10204c: -/* f10204c: 8d67006c */ lw $a3,0x6c($t3) -/* f102050: 50e00004 */ beqzl $a3,.PF0f102064 -/* f102054: 00003025 */ move $a2,$zero -/* f102058: 10000002 */ b .PF0f102064 -/* f10205c: 24060001 */ li $a2,0x1 -/* f102060: 00003025 */ move $a2,$zero -.PF0f102064: -/* f102064: 8d680068 */ lw $t0,0x68($t3) -/* f102068: 51000004 */ beqzl $t0,.PF0f10207c -/* f10206c: 00002825 */ move $a1,$zero -/* f102070: 10000002 */ b .PF0f10207c -/* f102074: 24050001 */ li $a1,0x1 -/* f102078: 00002825 */ move $a1,$zero -.PF0f10207c: -/* f10207c: 8d690064 */ lw $t1,0x64($t3) -/* f102080: 51200004 */ beqzl $t1,.PF0f102094 -/* f102084: 00002025 */ move $a0,$zero -/* f102088: 10000002 */ b .PF0f102094 -/* f10208c: 24040001 */ li $a0,0x1 -/* f102090: 00002025 */ move $a0,$zero -.PF0f102094: -/* f102094: 8d6a0070 */ lw $t2,0x70($t3) -/* f102098: 51400004 */ beqzl $t2,.PF0f1020ac -/* f10209c: 00001825 */ move $v1,$zero -/* f1020a0: 10000002 */ b .PF0f1020ac -/* f1020a4: 24030001 */ li $v1,0x1 -/* f1020a8: 00001825 */ move $v1,$zero -.PF0f1020ac: -/* f1020ac: 0064c021 */ addu $t8,$v1,$a0 -/* f1020b0: 03057821 */ addu $t7,$t8,$a1 -/* f1020b4: 01e67021 */ addu $t6,$t7,$a2 -/* f1020b8: 29c10002 */ slti $at,$t6,0x2 -/* f1020bc: 54200004 */ bnezl $at,.PF0f1020d0 -/* f1020c0: 24170040 */ li $s7,0x40 -/* f1020c4: 10000002 */ b .PF0f1020d0 -/* f1020c8: 24170030 */ li $s7,0x30 -/* f1020cc: 24170040 */ li $s7,0x40 -.PF0f1020d0: -/* f1020d0: 50e00004 */ beqzl $a3,.PF0f1020e4 -/* f1020d4: 00003025 */ move $a2,$zero -/* f1020d8: 10000002 */ b .PF0f1020e4 -/* f1020dc: 24060001 */ li $a2,0x1 -/* f1020e0: 00003025 */ move $a2,$zero -.PF0f1020e4: -/* f1020e4: 51000004 */ beqzl $t0,.PF0f1020f8 -/* f1020e8: 00002825 */ move $a1,$zero -/* f1020ec: 10000002 */ b .PF0f1020f8 -/* f1020f0: 24050001 */ li $a1,0x1 -/* f1020f4: 00002825 */ move $a1,$zero -.PF0f1020f8: -/* f1020f8: 51200004 */ beqzl $t1,.PF0f10210c -/* f1020fc: 00002025 */ move $a0,$zero -/* f102100: 10000002 */ b .PF0f10210c -/* f102104: 24040001 */ li $a0,0x1 -/* f102108: 00002025 */ move $a0,$zero -.PF0f10210c: -/* f10210c: 51400004 */ beqzl $t2,.PF0f102120 -/* f102110: 00001825 */ move $v1,$zero -/* f102114: 10000002 */ b .PF0f102120 -/* f102118: 24030001 */ li $v1,0x1 -/* f10211c: 00001825 */ move $v1,$zero -.PF0f102120: -/* f102120: 0064c821 */ addu $t9,$v1,$a0 -/* f102124: 0325c021 */ addu $t8,$t9,$a1 -/* f102128: 03067821 */ addu $t7,$t8,$a2 -/* f10212c: 29e10002 */ slti $at,$t7,0x2 -/* f102130: 54200004 */ bnezl $at,.PF0f102144 -/* f102134: 2415000b */ li $s5,0xb -/* f102138: 10000002 */ b .PF0f102144 -/* f10213c: 24150007 */ li $s5,0x7 -/* f102140: 2415000b */ li $s5,0xb -.PF0f102144: -/* f102144: 10e00003 */ beqz $a3,.PF0f102154 -/* f102148: 00009025 */ move $s2,$zero -/* f10214c: 10000002 */ b .PF0f102158 -/* f102150: 24060001 */ li $a2,0x1 -.PF0f102154: -/* f102154: 00003025 */ move $a2,$zero -.PF0f102158: -/* f102158: 11000003 */ beqz $t0,.PF0f102168 -/* f10215c: 24010002 */ li $at,0x2 -/* f102160: 10000002 */ b .PF0f10216c -/* f102164: 24050001 */ li $a1,0x1 -.PF0f102168: -/* f102168: 00002825 */ move $a1,$zero -.PF0f10216c: -/* f10216c: 51200004 */ beqzl $t1,.PF0f102180 -/* f102170: 00002025 */ move $a0,$zero -/* f102174: 10000002 */ b .PF0f102180 -/* f102178: 24040001 */ li $a0,0x1 -/* f10217c: 00002025 */ move $a0,$zero -.PF0f102180: -/* f102180: 51400004 */ beqzl $t2,.PF0f102194 -/* f102184: 00001825 */ move $v1,$zero -/* f102188: 10000002 */ b .PF0f102194 -/* f10218c: 24030001 */ li $v1,0x1 -/* f102190: 00001825 */ move $v1,$zero -.PF0f102194: -/* f102194: 00647021 */ addu $t6,$v1,$a0 -/* f102198: 01c5c821 */ addu $t9,$t6,$a1 -/* f10219c: 0326c021 */ addu $t8,$t9,$a2 -/* f1021a0: 17010011 */ bne $t8,$at,.PF0f1021e8 -/* f1021a4: 00000000 */ nop -/* f1021a8: 0fc54ef9 */ jal optionsGetScreenSplit -/* f1021ac: 00000000 */ nop -/* f1021b0: 24010001 */ li $at,0x1 -/* f1021b4: 10410021 */ beq $v0,$at,.PF0f10223c -/* f1021b8: 3c0f8009 */ lui $t7,0x8009 -/* f1021bc: 91ef1040 */ lbu $t7,0x1040($t7) -/* f1021c0: 24010001 */ li $at,0x1 -/* f1021c4: 3c07800a */ lui $a3,0x800a -/* f1021c8: 11e1001c */ beq $t7,$at,.PF0f10223c -/* f1021cc: 3c08800a */ lui $t0,0x800a -/* f1021d0: 3c09800a */ lui $t1,0x800a -/* f1021d4: 3c0a800a */ lui $t2,0x800a -/* f1021d8: 8d4aa580 */ lw $t2,-0x5a80($t2) -/* f1021dc: 8d29a574 */ lw $t1,-0x5a8c($t1) -/* f1021e0: 8ce7a57c */ lw $a3,-0x5a84($a3) -/* f1021e4: 8d08a578 */ lw $t0,-0x5a88($t0) -.PF0f1021e8: -/* f1021e8: 10e00003 */ beqz $a3,.PF0f1021f8 -/* f1021ec: 00002825 */ move $a1,$zero -/* f1021f0: 10000001 */ b .PF0f1021f8 -/* f1021f4: 24050001 */ li $a1,0x1 -.PF0f1021f8: -/* f1021f8: 11000003 */ beqz $t0,.PF0f102208 -/* f1021fc: 00001025 */ move $v0,$zero -/* f102200: 10000001 */ b .PF0f102208 -/* f102204: 24020001 */ li $v0,0x1 -.PF0f102208: -/* f102208: 11200003 */ beqz $t1,.PF0f102218 -/* f10220c: 00002025 */ move $a0,$zero -/* f102210: 10000001 */ b .PF0f102218 -/* f102214: 24040001 */ li $a0,0x1 -.PF0f102218: -/* f102218: 11400003 */ beqz $t2,.PF0f102228 -/* f10221c: 00001825 */ move $v1,$zero -/* f102220: 10000001 */ b .PF0f102228 -/* f102224: 24030001 */ li $v1,0x1 -.PF0f102228: -/* f102228: 00647021 */ addu $t6,$v1,$a0 -/* f10222c: 01c2c821 */ addu $t9,$t6,$v0 -/* f102230: 0325c021 */ addu $t8,$t9,$a1 -/* f102234: 2b010003 */ slti $at,$t8,0x3 -/* f102238: 1420000c */ bnez $at,.PF0f10226c -.PF0f10223c: -/* f10223c: 3c0b800a */ lui $t3,0x800a -/* f102240: 256ba510 */ addiu $t3,$t3,-23280 -/* f102244: 8d6f028c */ lw $t7,0x28c($t3) -/* f102248: 8d67006c */ lw $a3,0x6c($t3) -/* f10224c: 8d680068 */ lw $t0,0x68($t3) -/* f102250: 31ee0001 */ andi $t6,$t7,0x1 -/* f102254: 8d690064 */ lw $t1,0x64($t3) -/* f102258: 15c00003 */ bnez $t6,.PF0f102268 -/* f10225c: 8d6a0070 */ lw $t2,0x70($t3) -/* f102260: 10000002 */ b .PF0f10226c -/* f102264: 24120008 */ li $s2,0x8 -.PF0f102268: -/* f102268: 2412fff8 */ li $s2,-8 -.PF0f10226c: -/* f10226c: 10e00003 */ beqz $a3,.PF0f10227c -/* f102270: 24010001 */ li $at,0x1 -/* f102274: 10000002 */ b .PF0f102280 -/* f102278: 24060001 */ li $a2,0x1 -.PF0f10227c: -/* f10227c: 00003025 */ move $a2,$zero -.PF0f102280: -/* f102280: 51000004 */ beqzl $t0,.PF0f102294 -/* f102284: 00002825 */ move $a1,$zero -/* f102288: 10000002 */ b .PF0f102294 -/* f10228c: 24050001 */ li $a1,0x1 -/* f102290: 00002825 */ move $a1,$zero -.PF0f102294: -/* f102294: 51200004 */ beqzl $t1,.PF0f1022a8 -/* f102298: 00002025 */ move $a0,$zero -/* f10229c: 10000002 */ b .PF0f1022a8 -/* f1022a0: 24040001 */ li $a0,0x1 -/* f1022a4: 00002025 */ move $a0,$zero -.PF0f1022a8: -/* f1022a8: 51400004 */ beqzl $t2,.PF0f1022bc -/* f1022ac: 00001825 */ move $v1,$zero -/* f1022b0: 10000002 */ b .PF0f1022bc -/* f1022b4: 24030001 */ li $v1,0x1 -/* f1022b8: 00001825 */ move $v1,$zero -.PF0f1022bc: -/* f1022bc: 0064c821 */ addu $t9,$v1,$a0 -/* f1022c0: 0325c021 */ addu $t8,$t9,$a1 -/* f1022c4: 03067821 */ addu $t7,$t8,$a2 -/* f1022c8: 15e10019 */ bne $t7,$at,.PF0f102330 -/* f1022cc: 00000000 */ nop -/* f1022d0: 0fc54e8c */ jal optionsGetEffectiveScreenSize -/* f1022d4: 00000000 */ nop -/* f1022d8: 10400015 */ beqz $v0,.PF0f102330 -/* f1022dc: 00000000 */ nop -/* f1022e0: 0c002e91 */ jal viGetViewLeft -/* f1022e4: 00000000 */ nop -/* f1022e8: 3c0e8008 */ lui $t6,0x8008 -/* f1022ec: 8dce0020 */ lw $t6,0x20($t6) -/* f1022f0: 44972000 */ mtc1 $s7,$f4 -/* f1022f4: 004e001a */ div $zero,$v0,$t6 -/* f1022f8: 00008012 */ mflo $s0 -/* f1022fc: 26100020 */ addiu $s0,$s0,0x20 -/* f102300: 15c00002 */ bnez $t6,.PF0f10230c -/* f102304: 00000000 */ nop -/* f102308: 0007000d */ break 0x7 -.PF0f10230c: -/* f10230c: 2401ffff */ li $at,-1 -/* f102310: 15c10004 */ bne $t6,$at,.PF0f102324 -/* f102314: 3c018000 */ lui $at,0x8000 -/* f102318: 14410002 */ bne $v0,$at,.PF0f102324 -/* f10231c: 00000000 */ nop -/* f102320: 0006000d */ break 0x6 -.PF0f102324: -/* f102324: 468020a0 */ cvt.s.w $f2,$f4 -/* f102328: 10000031 */ b .PF0f1023f0 -/* f10232c: 3c013e80 */ lui $at,0x3e80 -.PF0f102330: -/* f102330: 0c002e73 */ jal viGetViewWidth -/* f102334: 00000000 */ nop -/* f102338: 00028c00 */ sll $s1,$v0,0x10 -/* f10233c: 0011cc03 */ sra $t9,$s1,0x10 -/* f102340: 0c002e91 */ jal viGetViewLeft -/* f102344: 03208825 */ move $s1,$t9 -/* f102348: 3c038008 */ lui $v1,0x8008 -/* f10234c: 8c630020 */ lw $v1,0x20($v1) -/* f102350: 44974000 */ mtc1 $s7,$f8 -/* f102354: 3c013f00 */ lui $at,0x3f00 -/* f102358: 0043001a */ div $zero,$v0,$v1 -/* f10235c: 0000c012 */ mflo $t8 -/* f102360: 44810000 */ mtc1 $at,$f0 -/* f102364: 468040a0 */ cvt.s.w $f2,$f8 -/* f102368: 0223001a */ div $zero,$s1,$v1 -/* f10236c: 00007812 */ mflo $t7 -/* f102370: 448f5000 */ mtc1 $t7,$f10 -/* f102374: 14600002 */ bnez $v1,.PF0f102380 -/* f102378: 00000000 */ nop -/* f10237c: 0007000d */ break 0x7 -.PF0f102380: -/* f102380: 2401ffff */ li $at,-1 -/* f102384: 14610004 */ bne $v1,$at,.PF0f102398 -/* f102388: 3c018000 */ lui $at,0x8000 -/* f10238c: 14410002 */ bne $v0,$at,.PF0f102398 -/* f102390: 00000000 */ nop -/* f102394: 0006000d */ break 0x6 -.PF0f102398: -/* f102398: 46805420 */ cvt.s.w $f16,$f10 -/* f10239c: 14600002 */ bnez $v1,.PF0f1023a8 -/* f1023a0: 00000000 */ nop -/* f1023a4: 0007000d */ break 0x7 -.PF0f1023a8: -/* f1023a8: 2401ffff */ li $at,-1 -/* f1023ac: 14610004 */ bne $v1,$at,.PF0f1023c0 -/* f1023b0: 3c018000 */ lui $at,0x8000 -/* f1023b4: 16210002 */ bne $s1,$at,.PF0f1023c0 -/* f1023b8: 00000000 */ nop -/* f1023bc: 0006000d */ break 0x6 -.PF0f1023c0: -/* f1023c0: 46008182 */ mul.s $f6,$f16,$f0 -/* f1023c4: 4600348d */ trunc.w.s $f18,$f6 -/* f1023c8: 46001102 */ mul.s $f4,$f2,$f0 -/* f1023cc: 44199000 */ mfc1 $t9,$f18 -/* f1023d0: 00000000 */ nop -/* f1023d4: 03197821 */ addu $t7,$t8,$t9 -/* f1023d8: 4600220d */ trunc.w.s $f8,$f4 -/* f1023dc: 44184000 */ mfc1 $t8,$f8 -/* f1023e0: 00000000 */ nop -/* f1023e4: 01f8c823 */ subu $t9,$t7,$t8 -/* f1023e8: 03328021 */ addu $s0,$t9,$s2 -/* f1023ec: 3c013e80 */ lui $at,0x3e80 -.PF0f1023f0: -/* f1023f0: 44815000 */ mtc1 $at,$f10 -/* f1023f4: 44800000 */ mtc1 $zero,$f0 -/* f1023f8: c7b20100 */ lwc1 $f18,0x100($sp) -/* f1023fc: 460a1402 */ mul.s $f16,$f2,$f10 -/* f102400: 4600903c */ c.lt.s $f18,$f0 -/* f102404: 4600818d */ trunc.w.s $f6,$f16 -/* f102408: 44123000 */ mfc1 $s2,$f6 -/* f10240c: 00000000 */ nop -/* f102410: 2652ffff */ addiu $s2,$s2,-1 -/* f102414: 02128821 */ addu $s1,$s0,$s2 -/* f102418: 45000002 */ bc1f .PF0f102424 -/* f10241c: 26330002 */ addiu $s3,$s1,0x2 -/* f102420: e7a00100 */ swc1 $f0,0x100($sp) -.PF0f102424: -/* f102424: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f102428: 3c19e700 */ lui $t9,0xe700 -/* f10242c: 25f80008 */ addiu $t8,$t7,0x8 -/* f102430: afb801d8 */ sw $t8,0x1d8($sp) -/* f102434: ade00004 */ sw $zero,0x4($t7) -/* f102438: adf90000 */ sw $t9,0x0($t7) -/* f10243c: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f102440: 3c18ba00 */ lui $t8,0xba00 -/* f102444: 37181402 */ ori $t8,$t8,0x1402 -/* f102448: 25cf0008 */ addiu $t7,$t6,0x8 -/* f10244c: afaf01d8 */ sw $t7,0x1d8($sp) -/* f102450: adc00004 */ sw $zero,0x4($t6) -/* f102454: add80000 */ sw $t8,0x0($t6) -/* f102458: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f10245c: 3c180050 */ lui $t8,0x50 -/* f102460: 3c0fb900 */ lui $t7,0xb900 -/* f102464: 272e0008 */ addiu $t6,$t9,0x8 -/* f102468: afae01d8 */ sw $t6,0x1d8($sp) -/* f10246c: 35ef031d */ ori $t7,$t7,0x31d -/* f102470: 37184240 */ ori $t8,$t8,0x4240 -/* f102474: af380004 */ sw $t8,0x4($t9) -/* f102478: af2f0000 */ sw $t7,0x0($t9) -/* f10247c: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f102480: 3c0ffcff */ lui $t7,0xfcff -/* f102484: 3c18fffd */ lui $t8,0xfffd -/* f102488: 272e0008 */ addiu $t6,$t9,0x8 -/* f10248c: afae01d8 */ sw $t6,0x1d8($sp) -/* f102490: 3718f6fb */ ori $t8,$t8,0xf6fb -/* f102494: 35efffff */ ori $t7,$t7,0xffff -/* f102498: af2f0000 */ sw $t7,0x0($t9) -/* f10249c: af380004 */ sw $t8,0x4($t9) -/* f1024a0: 0c002e77 */ jal viGetViewHeight -/* f1024a4: e7a20068 */ swc1 $f2,0x68($sp) -/* f1024a8: 0002a400 */ sll $s4,$v0,0x10 -/* f1024ac: 0014cc03 */ sra $t9,$s4,0x10 -/* f1024b0: 0c002e95 */ jal viGetViewTop -/* f1024b4: 0320a025 */ move $s4,$t9 -/* f1024b8: 3c04800a */ lui $a0,0x800a -/* f1024bc: 2484a510 */ addiu $a0,$a0,-23280 -/* f1024c0: 8c8e006c */ lw $t6,0x6c($a0) -/* f1024c4: c7a20068 */ lwc1 $f2,0x68($sp) -/* f1024c8: 00001825 */ move $v1,$zero -/* f1024cc: 11c00003 */ beqz $t6,.PF0f1024dc -/* f1024d0: 00003025 */ move $a2,$zero -/* f1024d4: 10000001 */ b .PF0f1024dc -/* f1024d8: 24030001 */ li $v1,0x1 -.PF0f1024dc: -/* f1024dc: 8c8f0068 */ lw $t7,0x68($a0) -/* f1024e0: 00002825 */ move $a1,$zero -/* f1024e4: 11e00003 */ beqz $t7,.PF0f1024f4 -/* f1024e8: 00000000 */ nop -/* f1024ec: 10000001 */ b .PF0f1024f4 -/* f1024f0: 24060001 */ li $a2,0x1 -.PF0f1024f4: -/* f1024f4: 8c980064 */ lw $t8,0x64($a0) -/* f1024f8: 3c0cfa00 */ lui $t4,0xfa00 -/* f1024fc: 13000003 */ beqz $t8,.PF0f10250c -/* f102500: 00000000 */ nop -/* f102504: 10000001 */ b .PF0f10250c -/* f102508: 24050001 */ li $a1,0x1 -.PF0f10250c: -/* f10250c: 8c990070 */ lw $t9,0x70($a0) -/* f102510: 00002025 */ move $a0,$zero -/* f102514: c7a80100 */ lwc1 $f8,0x100($sp) -/* f102518: 13200003 */ beqz $t9,.PF0f102528 -/* f10251c: 00000000 */ nop -/* f102520: 10000001 */ b .PF0f102528 -/* f102524: 24040001 */ li $a0,0x1 -.PF0f102528: -/* f102528: 00857021 */ addu $t6,$a0,$a1 -/* f10252c: 01c67821 */ addu $t7,$t6,$a2 -/* f102530: 01e3c021 */ addu $t8,$t7,$v1 -/* f102534: 2b010002 */ slti $at,$t8,0x2 -/* f102538: 14200003 */ bnez $at,.PF0f102548 -/* f10253c: 0002cc00 */ sll $t9,$v0,0x10 -/* f102540: 10000002 */ b .PF0f10254c -/* f102544: 24030013 */ li $v1,0x13 -.PF0f102548: -/* f102548: 24030022 */ li $v1,0x22 -.PF0f10254c: -/* f10254c: 00197403 */ sra $t6,$t9,0x10 -/* f102550: 01d47821 */ addu $t7,$t6,$s4 -/* f102554: 13c0005e */ beqz $s8,.PF0f1026d0 -/* f102558: 01e33823 */ subu $a3,$t7,$v1 -/* f10255c: 44928000 */ mtc1 $s2,$f16 -/* f102560: 3c013e80 */ lui $at,0x3e80 -/* f102564: 44812000 */ mtc1 $at,$f4 -/* f102568: 468081a0 */ cvt.s.w $f6,$f16 -/* f10256c: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f102570: 3c014080 */ lui $at,0x4080 -/* f102574: 3c18ff00 */ lui $t8,0xff00 -/* f102578: 25cf0008 */ addiu $t7,$t6,0x8 -/* f10257c: 46082281 */ sub.s $f10,$f4,$f8 -/* f102580: 44812000 */ mtc1 $at,$f4 -/* f102584: afaf01d8 */ sw $t7,0x1d8($sp) -/* f102588: 3c0b8008 */ lui $t3,0x8008 -/* f10258c: 460a3482 */ mul.s $f18,$f6,$f10 -/* f102590: 3c0cfa00 */ lui $t4,0xfa00 -/* f102594: 37180060 */ ori $t8,$t8,0x60 -/* f102598: 256b0020 */ addiu $t3,$t3,0x20 -/* f10259c: add80004 */ sw $t8,0x4($t6) -/* f1025a0: adcc0000 */ sw $t4,0x0($t6) -/* f1025a4: 8d780000 */ lw $t8,0x0($t3) -/* f1025a8: 46049202 */ mul.s $f8,$f18,$f4 -/* f1025ac: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f1025b0: 02380019 */ multu $s1,$t8 -/* f1025b4: 00f54821 */ addu $t1,$a3,$s5 -/* f1025b8: 312303ff */ andi $v1,$t1,0x3ff -/* f1025bc: 24ae0008 */ addiu $t6,$a1,0x8 -/* f1025c0: afae01d8 */ sw $t6,0x1d8($sp) -/* f1025c4: 4600440d */ trunc.w.s $f16,$f8 -/* f1025c8: 00037880 */ sll $t7,$v1,0x2 -/* f1025cc: 01e01825 */ move $v1,$t7 -/* f1025d0: 30e203ff */ andi $v0,$a3,0x3ff -/* f1025d4: 44198000 */ mfc1 $t9,$f16 -/* f1025d8: 3c078008 */ lui $a3,0x8008 -/* f1025dc: 240d0080 */ li $t5,0x80 -/* f1025e0: 02393023 */ subu $a2,$s1,$t9 -/* f1025e4: 0000c812 */ mflo $t9 -/* f1025e8: 332e03ff */ andi $t6,$t9,0x3ff -/* f1025ec: 000e7b80 */ sll $t7,$t6,0xe -/* f1025f0: 01f6c025 */ or $t8,$t7,$s6 -/* f1025f4: 0303c825 */ or $t9,$t8,$v1 -/* f1025f8: acb90000 */ sw $t9,0x0($a1) -/* f1025fc: 8d6f0000 */ lw $t7,0x0($t3) -/* f102600: 00027080 */ sll $t6,$v0,0x2 -/* f102604: 01c01025 */ move $v0,$t6 -/* f102608: 00cf0019 */ multu $a2,$t7 -/* f10260c: 24e70020 */ addiu $a3,$a3,0x20 -/* f102610: 0000c012 */ mflo $t8 -/* f102614: 331903ff */ andi $t9,$t8,0x3ff -/* f102618: 00197380 */ sll $t6,$t9,0xe -/* f10261c: 01c27825 */ or $t7,$t6,$v0 -/* f102620: acaf0004 */ sw $t7,0x4($a1) -/* f102624: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f102628: 27190008 */ addiu $t9,$t8,0x8 -/* f10262c: afb901d8 */ sw $t9,0x1d8($sp) -/* f102630: af0d0004 */ sw $t5,0x4($t8) -/* f102634: af0c0000 */ sw $t4,0x0($t8) -/* f102638: 8cf80000 */ lw $t8,0x0($a3) -/* f10263c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f102640: 00d80019 */ multu $a2,$t8 -/* f102644: 248f0008 */ addiu $t7,$a0,0x8 -/* f102648: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10264c: 02173021 */ addu $a2,$s0,$s7 -/* f102650: 0000c812 */ mflo $t9 -/* f102654: 332e03ff */ andi $t6,$t9,0x3ff -/* f102658: 000e7b80 */ sll $t7,$t6,0xe -/* f10265c: 01f6c025 */ or $t8,$t7,$s6 -/* f102660: 0303c825 */ or $t9,$t8,$v1 -/* f102664: ac990000 */ sw $t9,0x0($a0) -/* f102668: 8cee0000 */ lw $t6,0x0($a3) -/* f10266c: 020e0019 */ multu $s0,$t6 -/* f102670: 00007812 */ mflo $t7 -/* f102674: 31f803ff */ andi $t8,$t7,0x3ff -/* f102678: 0018cb80 */ sll $t9,$t8,0xe -/* f10267c: 03227025 */ or $t6,$t9,$v0 -/* f102680: ac8e0004 */ sw $t6,0x4($a0) -/* f102684: 8cf90000 */ lw $t9,0x0($a3) -/* f102688: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f10268c: 00d90019 */ multu $a2,$t9 -/* f102690: 24b80008 */ addiu $t8,$a1,0x8 -/* f102694: afb801d8 */ sw $t8,0x1d8($sp) -/* f102698: 00007012 */ mflo $t6 -/* f10269c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f1026a0: 000fc380 */ sll $t8,$t7,0xe -/* f1026a4: 0316c825 */ or $t9,$t8,$s6 -/* f1026a8: 03237025 */ or $t6,$t9,$v1 -/* f1026ac: acae0000 */ sw $t6,0x0($a1) -/* f1026b0: 8cef0000 */ lw $t7,0x0($a3) -/* f1026b4: 026f0019 */ multu $s3,$t7 -/* f1026b8: 0000c012 */ mflo $t8 -/* f1026bc: 331903ff */ andi $t9,$t8,0x3ff -/* f1026c0: 00197380 */ sll $t6,$t9,0xe -/* f1026c4: 01c27825 */ or $t7,$t6,$v0 -/* f1026c8: 10000059 */ b .PF0f102830 -/* f1026cc: acaf0004 */ sw $t7,0x4($a1) -.PF0f1026d0: -/* f1026d0: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f1026d4: 3c0e00c0 */ lui $t6,0xc0 -/* f1026d8: 35ce0060 */ ori $t6,$t6,0x60 -/* f1026dc: 27190008 */ addiu $t9,$t8,0x8 -/* f1026e0: afb901d8 */ sw $t9,0x1d8($sp) -/* f1026e4: af0e0004 */ sw $t6,0x4($t8) -/* f1026e8: 3c0e8008 */ lui $t6,0x8008 -/* f1026ec: af0c0000 */ sw $t4,0x0($t8) -/* f1026f0: 8dce0020 */ lw $t6,0x20($t6) -/* f1026f4: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f1026f8: 00f54821 */ addu $t1,$a3,$s5 -/* f1026fc: 022e0019 */ multu $s1,$t6 -/* f102700: 312303ff */ andi $v1,$t1,0x3ff -/* f102704: 24b80008 */ addiu $t8,$a1,0x8 -/* f102708: afb801d8 */ sw $t8,0x1d8($sp) -/* f10270c: 0003c880 */ sll $t9,$v1,0x2 -/* f102710: 03201825 */ move $v1,$t9 -/* f102714: 30e203ff */ andi $v0,$a3,0x3ff -/* f102718: 240d0080 */ li $t5,0x80 -/* f10271c: 00007812 */ mflo $t7 -/* f102720: 31f803ff */ andi $t8,$t7,0x3ff -/* f102724: 0018cb80 */ sll $t9,$t8,0xe -/* f102728: 03367025 */ or $t6,$t9,$s6 -/* f10272c: 01c37825 */ or $t7,$t6,$v1 -/* f102730: 3c198008 */ lui $t9,0x8008 -/* f102734: acaf0000 */ sw $t7,0x0($a1) -/* f102738: 8f390020 */ lw $t9,0x20($t9) -/* f10273c: 0002c080 */ sll $t8,$v0,0x2 -/* f102740: 03001025 */ move $v0,$t8 -/* f102744: 02190019 */ multu $s0,$t9 -/* f102748: 00007012 */ mflo $t6 -/* f10274c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f102750: 000fc380 */ sll $t8,$t7,0xe -/* f102754: 0302c825 */ or $t9,$t8,$v0 -/* f102758: acb90004 */ sw $t9,0x4($a1) -/* f10275c: c7a60100 */ lwc1 $f6,0x100($sp) -/* f102760: 3c0e8008 */ lui $t6,0x8008 -/* f102764: 8dce0020 */ lw $t6,0x20($t6) -/* f102768: 46061282 */ mul.s $f10,$f2,$f6 -/* f10276c: 8faa01d8 */ lw $t2,0x1d8($sp) -/* f102770: 25590008 */ addiu $t9,$t2,0x8 -/* f102774: afb901d8 */ sw $t9,0x1d8($sp) -/* f102778: 4600548d */ trunc.w.s $f18,$f10 -/* f10277c: 440f9000 */ mfc1 $t7,$f18 -/* f102780: 00000000 */ nop -/* f102784: 01f03021 */ addu $a2,$t7,$s0 -/* f102788: 00ce0019 */ multu $a2,$t6 -/* f10278c: 00c04025 */ move $t0,$a2 -/* f102790: 02173021 */ addu $a2,$s0,$s7 -/* f102794: 00007812 */ mflo $t7 -/* f102798: 31f803ff */ andi $t8,$t7,0x3ff -/* f10279c: 0018cb80 */ sll $t9,$t8,0xe -/* f1027a0: 03367025 */ or $t6,$t9,$s6 -/* f1027a4: 01c37825 */ or $t7,$t6,$v1 -/* f1027a8: 3c188008 */ lui $t8,0x8008 -/* f1027ac: ad4f0000 */ sw $t7,0x0($t2) -/* f1027b0: 8f180020 */ lw $t8,0x20($t8) -/* f1027b4: 02780019 */ multu $s3,$t8 -/* f1027b8: 0000c812 */ mflo $t9 -/* f1027bc: 332e03ff */ andi $t6,$t9,0x3ff -/* f1027c0: 000e7b80 */ sll $t7,$t6,0xe -/* f1027c4: 01e2c025 */ or $t8,$t7,$v0 -/* f1027c8: ad580004 */ sw $t8,0x4($t2) -/* f1027cc: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f1027d0: 272e0008 */ addiu $t6,$t9,0x8 -/* f1027d4: afae01d8 */ sw $t6,0x1d8($sp) -/* f1027d8: af2d0004 */ sw $t5,0x4($t9) -/* f1027dc: af2c0000 */ sw $t4,0x0($t9) -/* f1027e0: 3c198008 */ lui $t9,0x8008 -/* f1027e4: 8f390020 */ lw $t9,0x20($t9) -/* f1027e8: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f1027ec: 00d90019 */ multu $a2,$t9 -/* f1027f0: 24b80008 */ addiu $t8,$a1,0x8 -/* f1027f4: afb801d8 */ sw $t8,0x1d8($sp) -/* f1027f8: 00007012 */ mflo $t6 -/* f1027fc: 31cf03ff */ andi $t7,$t6,0x3ff -/* f102800: 000fc380 */ sll $t8,$t7,0xe -/* f102804: 0316c825 */ or $t9,$t8,$s6 -/* f102808: 03237025 */ or $t6,$t9,$v1 -/* f10280c: 3c0f8008 */ lui $t7,0x8008 -/* f102810: acae0000 */ sw $t6,0x0($a1) -/* f102814: 8def0020 */ lw $t7,0x20($t7) -/* f102818: 010f0019 */ multu $t0,$t7 -/* f10281c: 0000c012 */ mflo $t8 -/* f102820: 331903ff */ andi $t9,$t8,0x3ff -/* f102824: 00197380 */ sll $t6,$t9,0xe -/* f102828: 01c27825 */ or $t7,$t6,$v0 -/* f10282c: acaf0004 */ sw $t7,0x4($a1) -.PF0f102830: -/* f102830: 44952000 */ mtc1 $s5,$f4 -/* f102834: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f102838: 3c013f40 */ lui $at,0x3f40 -/* f10283c: 46802220 */ cvt.s.w $f8,$f4 -/* f102840: 272e0008 */ addiu $t6,$t9,0x8 -/* f102844: 44818000 */ mtc1 $at,$f16 -/* f102848: afae01d8 */ sw $t6,0x1d8($sp) -/* f10284c: 3c0f00c0 */ lui $t7,0xc0 -/* f102850: 35ef0060 */ ori $t7,$t7,0x60 -/* f102854: af2f0004 */ sw $t7,0x4($t9) -/* f102858: af2c0000 */ sw $t4,0x0($t9) -/* f10285c: 46104182 */ mul.s $f6,$f8,$f16 -/* f102860: c7b200fc */ lwc1 $f18,0xfc($sp) -/* f102864: 3c1f8008 */ lui $ra,0x8008 -/* f102868: 27ff0020 */ addiu $ra,$ra,0x20 -/* f10286c: 46121102 */ mul.s $f4,$f2,$f18 -/* f102870: 8fee0000 */ lw $t6,0x0($ra) -/* f102874: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f102878: 25250002 */ addiu $a1,$t1,0x2 -/* f10287c: 30aa03ff */ andi $t2,$a1,0x3ff -/* f102880: 248f0008 */ addiu $t7,$a0,0x8 -/* f102884: 4600328d */ trunc.w.s $f10,$f6 -/* f102888: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10288c: 3c038008 */ lui $v1,0x8008 -/* f102890: 4600220d */ trunc.w.s $f8,$f4 -/* f102894: 44155000 */ mfc1 $s5,$f10 -/* f102898: 24630020 */ addiu $v1,$v1,0x20 -/* f10289c: 44194000 */ mfc1 $t9,$f8 -/* f1028a0: 00b53821 */ addu $a3,$a1,$s5 -/* f1028a4: 30f803ff */ andi $t8,$a3,0x3ff -/* f1028a8: 03304021 */ addu $t0,$t9,$s0 -/* f1028ac: 010e0019 */ multu $t0,$t6 -/* f1028b0: 00183880 */ sll $a3,$t8,0x2 -/* f1028b4: 00007812 */ mflo $t7 -/* f1028b8: 31f803ff */ andi $t8,$t7,0x3ff -/* f1028bc: 0018cb80 */ sll $t9,$t8,0xe -/* f1028c0: 03367025 */ or $t6,$t9,$s6 -/* f1028c4: 01c77825 */ or $t7,$t6,$a3 -/* f1028c8: ac8f0000 */ sw $t7,0x0($a0) -/* f1028cc: 8ff90000 */ lw $t9,0x0($ra) -/* f1028d0: 000ac080 */ sll $t8,$t2,0x2 -/* f1028d4: 03005025 */ move $t2,$t8 -/* f1028d8: 02190019 */ multu $s0,$t9 -/* f1028dc: 00007012 */ mflo $t6 -/* f1028e0: 31cf03ff */ andi $t7,$t6,0x3ff -/* f1028e4: 000fc380 */ sll $t8,$t7,0xe -/* f1028e8: 030ac825 */ or $t9,$t8,$t2 -/* f1028ec: ac990004 */ sw $t9,0x4($a0) -/* f1028f0: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f1028f4: 25cf0008 */ addiu $t7,$t6,0x8 -/* f1028f8: afaf01d8 */ sw $t7,0x1d8($sp) -/* f1028fc: adcd0004 */ sw $t5,0x4($t6) -/* f102900: adcc0000 */ sw $t4,0x0($t6) -/* f102904: 8c6e0000 */ lw $t6,0x0($v1) -/* f102908: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f10290c: 00ce0019 */ multu $a2,$t6 -/* f102910: 24590008 */ addiu $t9,$v0,0x8 -/* f102914: afb901d8 */ sw $t9,0x1d8($sp) -/* f102918: 00007812 */ mflo $t7 -/* f10291c: 31f803ff */ andi $t8,$t7,0x3ff -/* f102920: 0018cb80 */ sll $t9,$t8,0xe -/* f102924: 03367025 */ or $t6,$t9,$s6 -/* f102928: 01c77825 */ or $t7,$t6,$a3 -/* f10292c: ac4f0000 */ sw $t7,0x0($v0) -/* f102930: 8c780000 */ lw $t8,0x0($v1) -/* f102934: 01180019 */ multu $t0,$t8 -/* f102938: 0000c812 */ mflo $t9 -/* f10293c: 332e03ff */ andi $t6,$t9,0x3ff -/* f102940: 000e7b80 */ sll $t7,$t6,0xe -/* f102944: 01eac025 */ or $t8,$t7,$t2 -/* f102948: ac580004 */ sw $t8,0x4($v0) -/* f10294c: 8fbf004c */ lw $ra,0x4c($sp) -.PF0f102950: -/* f102950: 24190001 */ li $t9,0x1 -/* f102954: 3c018008 */ lui $at,0x8008 -/* f102958: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f10295c: 8fb00028 */ lw $s0,0x28($sp) -/* f102960: 8fb1002c */ lw $s1,0x2c($sp) -/* f102964: 8fb20030 */ lw $s2,0x30($sp) -/* f102968: 8fb30034 */ lw $s3,0x34($sp) -/* f10296c: 8fb40038 */ lw $s4,0x38($sp) -/* f102970: 8fb5003c */ lw $s5,0x3c($sp) -/* f102974: 8fb60040 */ lw $s6,0x40($sp) -/* f102978: 8fb70044 */ lw $s7,0x44($sp) -/* f10297c: 8fbe0048 */ lw $s8,0x48($sp) -/* f102980: ac390020 */ sw $t9,0x20($at) -/* f102984: 03e00008 */ jr $ra -/* f102988: 27bd01d8 */ addiu $sp,$sp,0x1d8 -); -#elif VERSION >= VERSION_PAL_BETA -GLOBAL_ASM( -glabel amRender -/* f101070: 27bdfe28 */ addiu $sp,$sp,-472 -/* f101074: 3c0b800a */ lui $t3,0x800a -/* f101078: 240e0001 */ li $t6,0x1 -/* f10107c: 3c018008 */ lui $at,0x8008 -/* f101080: 256be4d0 */ addiu $t3,$t3,-6960 -/* f101084: ac2e1f90 */ sw $t6,0x1f90($at) -/* f101088: 8d6f028c */ lw $t7,0x28c($t3) -/* f10108c: 3c01800a */ lui $at,0x800a -/* f101090: afbf004c */ sw $ra,0x4c($sp) -/* f101094: ac2f66e8 */ sw $t7,0x66e8($at) -/* f101098: 8d780284 */ lw $t8,0x284($t3) -/* f10109c: afbe0048 */ sw $s8,0x48($sp) -/* f1010a0: afb70044 */ sw $s7,0x44($sp) -/* f1010a4: afb60040 */ sw $s6,0x40($sp) -/* f1010a8: afb5003c */ sw $s5,0x3c($sp) -/* f1010ac: afb40038 */ sw $s4,0x38($sp) -/* f1010b0: afb30034 */ sw $s3,0x34($sp) -/* f1010b4: afb20030 */ sw $s2,0x30($sp) -/* f1010b8: afb1002c */ sw $s1,0x2c($sp) -/* f1010bc: afb00028 */ sw $s0,0x28($sp) -/* f1010c0: afa401d8 */ sw $a0,0x1d8($sp) -/* f1010c4: af001c04 */ sw $zero,0x1c04($t8) -/* f1010c8: 8d630284 */ lw $v1,0x284($t3) -/* f1010cc: 90790250 */ lbu $t9,0x250($v1) -/* f1010d0: 53200353 */ beqzl $t9,.PB0f101e20 -/* f1010d4: 8c621c04 */ lw $v0,0x1c04($v1) -/* f1010d8: 0fc5528f */ jal text0f153628 -/* f1010dc: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1010e0: 3c08800a */ lui $t0,0x800a -/* f1010e4: 2508e4d0 */ addiu $t0,$t0,-6960 -/* f1010e8: 8d0e0318 */ lw $t6,0x318($t0) -/* f1010ec: afa201d8 */ sw $v0,0x1d8($sp) -/* f1010f0: 11c00010 */ beqz $t6,.PB0f101134 -/* f1010f4: 3c0f800a */ lui $t7,0x800a -/* f1010f8: 8def66e8 */ lw $t7,0x66e8($t7) -/* f1010fc: 241e0038 */ li $s8,0x38 -/* f101100: 3c17800a */ lui $s7,0x800a -/* f101104: 01fe0019 */ multu $t7,$s8 -/* f101108: 26f76600 */ addiu $s7,$s7,0x6600 -/* f10110c: 0000c012 */ mflo $t8 -/* f101110: 02f8c821 */ addu $t9,$s7,$t8 -/* f101114: 83220000 */ lb $v0,0x0($t9) -/* f101118: 28410002 */ slti $at,$v0,0x2 -/* f10111c: 14200005 */ bnez $at,.PB0f101134 -/* f101120: 00000000 */ nop -/* f101124: 8d0e0284 */ lw $t6,0x284($t0) -/* f101128: 01c27821 */ addu $t7,$t6,$v0 -/* f10112c: 91f81be5 */ lbu $t8,0x1be5($t7) -/* f101130: afb801c4 */ sw $t8,0x1c4($sp) -.PB0f101134: -/* f101134: 3c19800a */ lui $t9,0x800a -/* f101138: 8f3966e8 */ lw $t9,0x66e8($t9) -/* f10113c: 241e0038 */ li $s8,0x38 -/* f101140: 3c17800a */ lui $s7,0x800a -/* f101144: 033e0019 */ multu $t9,$s8 -/* f101148: 26f76600 */ addiu $s7,$s7,0x6600 -/* f10114c: 2401ff85 */ li $at,-123 -/* f101150: 00007012 */ mflo $t6 -/* f101154: 02ee8021 */ addu $s0,$s7,$t6 -/* f101158: 860f000a */ lh $t7,0xa($s0) -/* f10115c: 55e10021 */ bnel $t7,$at,.PB0f1011e4 -/* f101160: 9202000e */ lbu $v0,0xe($s0) -/* f101164: 9202000e */ lbu $v0,0xe($s0) -/* f101168: 24030003 */ li $v1,0x3 -/* f10116c: 26060006 */ addiu $a2,$s0,0x6 -/* f101170: 0043001a */ div $zero,$v0,$v1 -/* f101174: 00002010 */ mfhi $a0 -/* f101178: 00002812 */ mflo $a1 -/* f10117c: 00057400 */ sll $t6,$a1,0x10 -/* f101180: 0004c400 */ sll $t8,$a0,0x10 -/* f101184: 14600002 */ bnez $v1,.PB0f101190 -/* f101188: 00000000 */ nop -/* f10118c: 0007000d */ break 0x7 -.PB0f101190: -/* f101190: 2401ffff */ li $at,-1 -/* f101194: 14610004 */ bne $v1,$at,.PB0f1011a8 -/* f101198: 3c018000 */ lui $at,0x8000 -/* f10119c: 14410002 */ bne $v0,$at,.PB0f1011a8 -/* f1011a0: 00000000 */ nop -/* f1011a4: 0006000d */ break 0x6 -.PB0f1011a8: -/* f1011a8: 00182403 */ sra $a0,$t8,0x10 -/* f1011ac: 000e2c03 */ sra $a1,$t6,0x10 -/* f1011b0: 0fc3fe05 */ jal amCalculateSlotPosition -/* f1011b4: 26070008 */ addiu $a3,$s0,0x8 -/* f1011b8: 3c18800a */ lui $t8,0x800a -/* f1011bc: 8f1866e8 */ lw $t8,0x66e8($t8) -/* f1011c0: 031e0019 */ multu $t8,$s8 -/* f1011c4: 0000c812 */ mflo $t9 -/* f1011c8: 02f98021 */ addu $s0,$s7,$t9 -/* f1011cc: 860e0006 */ lh $t6,0x6($s0) -/* f1011d0: 860f0008 */ lh $t7,0x8($s0) -/* f1011d4: a60e000a */ sh $t6,0xa($s0) -/* f1011d8: 1000000d */ b .PB0f101210 -/* f1011dc: a60f000c */ sh $t7,0xc($s0) -/* f1011e0: 9202000e */ lbu $v0,0xe($s0) -.PB0f1011e4: -/* f1011e4: 24010003 */ li $at,0x3 -/* f1011e8: 2606000a */ addiu $a2,$s0,0xa -/* f1011ec: 0041001a */ div $zero,$v0,$at -/* f1011f0: 00002010 */ mfhi $a0 -/* f1011f4: 00002812 */ mflo $a1 -/* f1011f8: 00057400 */ sll $t6,$a1,0x10 -/* f1011fc: 0004c400 */ sll $t8,$a0,0x10 -/* f101200: 00182403 */ sra $a0,$t8,0x10 -/* f101204: 000e2c03 */ sra $a1,$t6,0x10 -/* f101208: 0fc3fe05 */ jal amCalculateSlotPosition -/* f10120c: 2607000c */ addiu $a3,$s0,0xc -.PB0f101210: -/* f101210: 0fc3530f */ jal func0f0d479c -/* f101214: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101218: afa201d8 */ sw $v0,0x1d8($sp) -/* f10121c: 0fc5a40f */ jal gfxAllocateColours -/* f101220: 24040002 */ li $a0,0x2 -/* f101224: 0040a825 */ move $s5,$v0 -/* f101228: 0fc5a3f5 */ jal gfxAllocateVertices -/* f10122c: 24040008 */ li $a0,0x8 -/* f101230: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f101234: 3c0ee700 */ lui $t6,0xe700 -/* f101238: 00408025 */ move $s0,$v0 -/* f10123c: 27190008 */ addiu $t9,$t8,0x8 -/* f101240: afb901d8 */ sw $t9,0x1d8($sp) -/* f101244: af000004 */ sw $zero,0x4($t8) -/* f101248: af0e0000 */ sw $t6,0x0($t8) -/* f10124c: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f101250: 3c19ba00 */ lui $t9,0xba00 -/* f101254: 37391402 */ ori $t9,$t9,0x1402 -/* f101258: 25f80008 */ addiu $t8,$t7,0x8 -/* f10125c: afb801d8 */ sw $t8,0x1d8($sp) -/* f101260: ade00004 */ sw $zero,0x4($t7) -/* f101264: adf90000 */ sw $t9,0x0($t7) -/* f101268: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f10126c: 3c18b900 */ lui $t8,0xb900 -/* f101270: 37180002 */ ori $t8,$t8,0x2 -/* f101274: 25cf0008 */ addiu $t7,$t6,0x8 -/* f101278: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10127c: adc00004 */ sw $zero,0x4($t6) -/* f101280: add80000 */ sw $t8,0x0($t6) -/* f101284: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101288: 3c0fba00 */ lui $t7,0xba00 -/* f10128c: 35ef0402 */ ori $t7,$t7,0x402 -/* f101290: 272e0008 */ addiu $t6,$t9,0x8 -/* f101294: afae01d8 */ sw $t6,0x1d8($sp) -/* f101298: 24180020 */ li $t8,0x20 -/* f10129c: af380004 */ sw $t8,0x4($t9) -/* f1012a0: af2f0000 */ sw $t7,0x0($t9) -/* f1012a4: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f1012a8: 3c0ffc12 */ lui $t7,0xfc12 -/* f1012ac: 35ef7e24 */ ori $t7,$t7,0x7e24 -/* f1012b0: 272e0008 */ addiu $t6,$t9,0x8 -/* f1012b4: afae01d8 */ sw $t6,0x1d8($sp) -/* f1012b8: 2418f9fc */ li $t8,-1540 -/* f1012bc: af380004 */ sw $t8,0x4($t9) -/* f1012c0: af2f0000 */ sw $t7,0x0($t9) -/* f1012c4: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f1012c8: 3c0fb600 */ lui $t7,0xb600 -/* f1012cc: 24183000 */ li $t8,0x3000 -/* f1012d0: 272e0008 */ addiu $t6,$t9,0x8 -/* f1012d4: afae01d8 */ sw $t6,0x1d8($sp) -/* f1012d8: af380004 */ sw $t8,0x4($t9) -/* f1012dc: af2f0000 */ sw $t7,0x0($t9) -/* f1012e0: 24190002 */ li $t9,0x2 -/* f1012e4: 240e0001 */ li $t6,0x1 -/* f1012e8: afae0014 */ sw $t6,0x14($sp) -/* f1012ec: afb90010 */ sw $t9,0x10($sp) -/* f1012f0: afa00018 */ sw $zero,0x18($sp) -/* f1012f4: 27a401d8 */ addiu $a0,$sp,0x1d8 -/* f1012f8: 00002825 */ move $a1,$zero -/* f1012fc: 24060002 */ li $a2,0x2 -/* f101300: 0fc2cf74 */ jal texSelect -/* f101304: 00003825 */ move $a3,$zero -/* f101308: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f10130c: 3c19b900 */ lui $t9,0xb900 -/* f101310: 3c0e0050 */ lui $t6,0x50 -/* f101314: 25f80008 */ addiu $t8,$t7,0x8 -/* f101318: 27b301ba */ addiu $s3,$sp,0x1ba -/* f10131c: 27b401b8 */ addiu $s4,$sp,0x1b8 -/* f101320: afb801d8 */ sw $t8,0x1d8($sp) -/* f101324: 35ce4240 */ ori $t6,$t6,0x4240 -/* f101328: 3739031d */ ori $t9,$t9,0x31d -/* f10132c: 02803825 */ move $a3,$s4 -/* f101330: 02603025 */ move $a2,$s3 -/* f101334: 24040001 */ li $a0,0x1 -/* f101338: 00002825 */ move $a1,$zero -/* f10133c: adf90000 */ sw $t9,0x0($t7) -/* f101340: 0fc3fe05 */ jal amCalculateSlotPosition -/* f101344: adee0004 */ sw $t6,0x4($t7) -/* f101348: 87af01ba */ lh $t7,0x1ba($sp) -/* f10134c: 2411000a */ li $s1,0xa -/* f101350: 2412fff6 */ li $s2,-10 -/* f101354: 01f10019 */ multu $t7,$s1 -/* f101358: 24040002 */ li $a0,0x2 -/* f10135c: 24050001 */ li $a1,0x1 -/* f101360: 02603025 */ move $a2,$s3 -/* f101364: 02803825 */ move $a3,$s4 -/* f101368: 0000c012 */ mflo $t8 -/* f10136c: a6180000 */ sh $t8,0x0($s0) -/* f101370: 87b901b8 */ lh $t9,0x1b8($sp) -/* f101374: a6120004 */ sh $s2,0x4($s0) -/* f101378: 03310019 */ multu $t9,$s1 -/* f10137c: 00007012 */ mflo $t6 -/* f101380: a60e0002 */ sh $t6,0x2($s0) -/* f101384: 0fc3fe05 */ jal amCalculateSlotPosition -/* f101388: 00000000 */ nop -/* f10138c: 87af01ba */ lh $t7,0x1ba($sp) -/* f101390: 24040001 */ li $a0,0x1 -/* f101394: 24050002 */ li $a1,0x2 -/* f101398: 01f10019 */ multu $t7,$s1 -/* f10139c: 02603025 */ move $a2,$s3 -/* f1013a0: 02803825 */ move $a3,$s4 -/* f1013a4: 0000c012 */ mflo $t8 -/* f1013a8: a618000c */ sh $t8,0xc($s0) -/* f1013ac: 87b901b8 */ lh $t9,0x1b8($sp) -/* f1013b0: a6120010 */ sh $s2,0x10($s0) -/* f1013b4: 03310019 */ multu $t9,$s1 -/* f1013b8: 00007012 */ mflo $t6 -/* f1013bc: a60e000e */ sh $t6,0xe($s0) -/* f1013c0: 0fc3fe05 */ jal amCalculateSlotPosition -/* f1013c4: 00000000 */ nop -/* f1013c8: 87af01ba */ lh $t7,0x1ba($sp) -/* f1013cc: 00002025 */ move $a0,$zero -/* f1013d0: 24050001 */ li $a1,0x1 -/* f1013d4: 01f10019 */ multu $t7,$s1 -/* f1013d8: 02603025 */ move $a2,$s3 -/* f1013dc: 02803825 */ move $a3,$s4 -/* f1013e0: 0000c012 */ mflo $t8 -/* f1013e4: a6180018 */ sh $t8,0x18($s0) -/* f1013e8: 87b901b8 */ lh $t9,0x1b8($sp) -/* f1013ec: a612001c */ sh $s2,0x1c($s0) -/* f1013f0: 03310019 */ multu $t9,$s1 -/* f1013f4: 00007012 */ mflo $t6 -/* f1013f8: a60e001a */ sh $t6,0x1a($s0) -/* f1013fc: 0fc3fe05 */ jal amCalculateSlotPosition -/* f101400: 00000000 */ nop -/* f101404: 87af01ba */ lh $t7,0x1ba($sp) -/* f101408: 8602000c */ lh $v0,0xc($s0) -/* f10140c: 8607001a */ lh $a3,0x1a($s0) -/* f101410: 01f10019 */ multu $t7,$s1 -/* f101414: 86030002 */ lh $v1,0x2($s0) -/* f101418: 00e33023 */ subu $a2,$a3,$v1 -/* f10141c: 0000c012 */ mflo $t8 -/* f101420: a6180024 */ sh $t8,0x24($s0) -/* f101424: 87b901b8 */ lh $t9,0x1b8($sp) -/* f101428: 86050024 */ lh $a1,0x24($s0) -/* f10142c: a6120028 */ sh $s2,0x28($s0) -/* f101430: 03310019 */ multu $t9,$s1 -/* f101434: 00452023 */ subu $a0,$v0,$a1 -/* f101438: a6120034 */ sh $s2,0x34($s0) -/* f10143c: a6120040 */ sh $s2,0x40($s0) -/* f101440: a612004c */ sh $s2,0x4c($s0) -/* f101444: a6120058 */ sh $s2,0x58($s0) -/* f101448: a2000007 */ sb $zero,0x7($s0) -/* f10144c: a2000013 */ sb $zero,0x13($s0) -/* f101450: a200001f */ sb $zero,0x1f($s0) -/* f101454: a200002b */ sb $zero,0x2b($s0) -/* f101458: 00007012 */ mflo $t6 -/* f10145c: a60e0026 */ sh $t6,0x26($s0) -/* f101460: 04810003 */ bgez $a0,.PB0f101470 -/* f101464: 000478c3 */ sra $t7,$a0,0x3 -/* f101468: 24810007 */ addiu $at,$a0,0x7 -/* f10146c: 000178c3 */ sra $t7,$at,0x3 -.PB0f101470: -/* f101470: 000fc400 */ sll $t8,$t7,0x10 -/* f101474: 0018cc03 */ sra $t9,$t8,0x10 -/* f101478: 03202025 */ move $a0,$t9 -/* f10147c: 86190000 */ lh $t9,0x0($s0) -/* f101480: 8618000e */ lh $t8,0xe($s0) -/* f101484: 04c10003 */ bgez $a2,.PB0f101494 -/* f101488: 000670c3 */ sra $t6,$a2,0x3 -/* f10148c: 24c10007 */ addiu $at,$a2,0x7 -/* f101490: 000170c3 */ sra $t6,$at,0x3 -.PB0f101494: -/* f101494: 01c03025 */ move $a2,$t6 -/* f101498: 00447823 */ subu $t7,$v0,$a0 -/* f10149c: a6190030 */ sh $t9,0x30($s0) -/* f1014a0: 86190018 */ lh $t9,0x18($s0) -/* f1014a4: 24020004 */ li $v0,0x4 -/* f1014a8: 00667021 */ addu $t6,$v1,$a2 -/* f1014ac: a618003e */ sh $t8,0x3e($s0) -/* f1014b0: 86180026 */ lh $t8,0x26($s0) -/* f1014b4: a60e0032 */ sh $t6,0x32($s0) -/* f1014b8: a60f003c */ sh $t7,0x3c($s0) -/* f1014bc: 00e67023 */ subu $t6,$a3,$a2 -/* f1014c0: a60e004a */ sh $t6,0x4a($s0) -/* f1014c4: 00a47821 */ addu $t7,$a1,$a0 -/* f1014c8: a6190048 */ sh $t9,0x48($s0) -/* f1014cc: a60f0054 */ sh $t7,0x54($s0) -/* f1014d0: a2020037 */ sb $v0,0x37($s0) -/* f1014d4: a2020043 */ sb $v0,0x43($s0) -/* f1014d8: a202004f */ sb $v0,0x4f($s0) -/* f1014dc: a202005b */ sb $v0,0x5b($s0) -/* f1014e0: 3c192222 */ lui $t9,0x2222 -/* f1014e4: a6180056 */ sh $t8,0x56($s0) -/* f1014e8: 37392200 */ ori $t9,$t9,0x2200 -/* f1014ec: 240e004f */ li $t6,0x4f -/* f1014f0: aeb90000 */ sw $t9,0x0($s5) -/* f1014f4: aeae0004 */ sw $t6,0x4($s5) -/* f1014f8: 8fb101d8 */ lw $s1,0x1d8($sp) -/* f1014fc: 3c190704 */ lui $t9,0x704 -/* f101500: 37390008 */ ori $t9,$t9,0x8 -/* f101504: 26380008 */ addiu $t8,$s1,0x8 -/* f101508: afb801d8 */ sw $t8,0x1d8($sp) -/* f10150c: 02a02025 */ move $a0,$s5 -/* f101510: 0c012de0 */ jal osVirtualToPhysical -/* f101514: ae390000 */ sw $t9,0x0($s1) -/* f101518: ae220004 */ sw $v0,0x4($s1) -/* f10151c: 8fb201d8 */ lw $s2,0x1d8($sp) -/* f101520: 3c180470 */ lui $t8,0x470 -/* f101524: 37180060 */ ori $t8,$t8,0x60 -/* f101528: 264f0008 */ addiu $t7,$s2,0x8 -/* f10152c: afaf01d8 */ sw $t7,0x1d8($sp) -/* f101530: 02002025 */ move $a0,$s0 -/* f101534: 0c012de0 */ jal osVirtualToPhysical -/* f101538: ae580000 */ sw $t8,0x0($s2) -/* f10153c: ae420004 */ sw $v0,0x4($s2) -/* f101540: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101544: 3c0fb100 */ lui $t7,0xb100 -/* f101548: 35ef0046 */ ori $t7,$t7,0x46 -/* f10154c: 272e0008 */ addiu $t6,$t9,0x8 -/* f101550: afae01d8 */ sw $t6,0x1d8($sp) -/* f101554: 24187654 */ li $t8,0x7654 -/* f101558: af380004 */ sw $t8,0x4($t9) -/* f10155c: af2f0000 */ sw $t7,0x0($t9) -/* f101560: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101564: 3c0fb100 */ lui $t7,0xb100 -/* f101568: 3c184510 */ lui $t8,0x4510 -/* f10156c: 272e0008 */ addiu $t6,$t9,0x8 -/* f101570: afae01d8 */ sw $t6,0x1d8($sp) -/* f101574: 37183740 */ ori $t8,$t8,0x3740 -/* f101578: 35ef0507 */ ori $t7,$t7,0x507 -/* f10157c: af2f0000 */ sw $t7,0x0($t9) -/* f101580: af380004 */ sw $t8,0x4($t9) -/* f101584: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101588: 3c187326 */ lui $t8,0x7326 -/* f10158c: 3c0fb100 */ lui $t7,0xb100 -/* f101590: 272e0008 */ addiu $t6,$t9,0x8 -/* f101594: afae01d8 */ sw $t6,0x1d8($sp) -/* f101598: 35ef6316 */ ori $t7,$t7,0x6316 -/* f10159c: 37185621 */ ori $t8,$t8,0x5621 -/* f1015a0: af380004 */ sw $t8,0x4($t9) -/* f1015a4: af2f0000 */ sw $t7,0x0($t9) -/* f1015a8: 0fc3539a */ jal func0f0d49c8 -/* f1015ac: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1015b0: 3c168007 */ lui $s6,0x8007 -/* f1015b4: afa201d8 */ sw $v0,0x1d8($sp) -/* f1015b8: 26d63670 */ addiu $s6,$s6,0x3670 -/* f1015bc: 00009825 */ move $s3,$zero -/* f1015c0: 27b5015c */ addiu $s5,$sp,0x15c -/* f1015c4: 00008825 */ move $s1,$zero -.PB0f1015c8: -/* f1015c8: 00132400 */ sll $a0,$s3,0x10 -.PB0f1015cc: -/* f1015cc: 00112c00 */ sll $a1,$s1,0x10 -/* f1015d0: 00057403 */ sra $t6,$a1,0x10 -/* f1015d4: 0004cc03 */ sra $t9,$a0,0x10 -/* f1015d8: 00008025 */ move $s0,$zero -/* f1015dc: 03202025 */ move $a0,$t9 -/* f1015e0: 01c02825 */ move $a1,$t6 -/* f1015e4: 27a60182 */ addiu $a2,$sp,0x182 -/* f1015e8: 27a70180 */ addiu $a3,$sp,0x180 -/* f1015ec: 0fc3fe05 */ jal amCalculateSlotPosition -/* f1015f0: 2414ffff */ li $s4,-1 -/* f1015f4: 3c18800a */ lui $t8,0x800a -/* f1015f8: 8f1866e8 */ lw $t8,0x66e8($t8) -/* f1015fc: 00117880 */ sll $t7,$s1,0x2 -/* f101600: 01f17823 */ subu $t7,$t7,$s1 -/* f101604: 031e0019 */ multu $t8,$s8 -/* f101608: 026f9021 */ addu $s2,$s3,$t7 -/* f10160c: afa001d0 */ sw $zero,0x1d0($sp) -/* f101610: 3c18800a */ lui $t8,0x800a -/* f101614: 0000c812 */ mflo $t9 -/* f101618: 02f97021 */ addu $t6,$s7,$t9 -/* f10161c: 91cf000e */ lbu $t7,0xe($t6) -/* f101620: 164f0002 */ bne $s2,$t7,.PB0f10162c -/* f101624: 00000000 */ nop -/* f101628: 24100001 */ li $s0,0x1 -.PB0f10162c: -/* f10162c: 8319251b */ lb $t9,0x251b($t8) -/* f101630: 07210029 */ bgez $t9,.PB0f1016d8 -/* f101634: 00000000 */ nop -/* f101638: 0fc3f90b */ jal amGetFirstBuddyIndex -/* f10163c: 00000000 */ nop -/* f101640: 04400025 */ bltz $v0,.PB0f1016d8 -/* f101644: 00000000 */ nop -/* f101648: 16000042 */ bnez $s0,.PB0f101754 -/* f10164c: 3c0e800a */ lui $t6,0x800a -/* f101650: 8dce66e8 */ lw $t6,0x66e8($t6) -/* f101654: 01de0019 */ multu $t6,$s8 -/* f101658: 00027080 */ sll $t6,$v0,0x2 -/* f10165c: 00007812 */ mflo $t7 -/* f101660: 02efc021 */ addu $t8,$s7,$t7 -/* f101664: 83190000 */ lb $t9,0x0($t8) -/* f101668: 3c0f800a */ lui $t7,0x800a -/* f10166c: 01ee7821 */ addu $t7,$t7,$t6 -/* f101670: 2b210002 */ slti $at,$t9,0x2 -/* f101674: 14200037 */ bnez $at,.PB0f101754 -/* f101678: 0011c080 */ sll $t8,$s1,0x2 -/* f10167c: 0311c023 */ subu $t8,$t8,$s1 -/* f101680: 02d8c821 */ addu $t9,$s6,$t8 -/* f101684: 03337021 */ addu $t6,$t9,$s3 -/* f101688: 91c40000 */ lbu $a0,0x0($t6) -/* f10168c: 8defe988 */ lw $t7,-0x1678($t7) -/* f101690: 24010007 */ li $at,0x7 -/* f101694: 14810007 */ bne $a0,$at,.PB0f1016b4 -/* f101698: 8de30004 */ lw $v1,0x4($t7) -/* f10169c: 8c6f0014 */ lw $t7,0x14($v1) -/* f1016a0: 31f80400 */ andi $t8,$t7,0x400 -/* f1016a4: 1300002b */ beqz $t8,.PB0f101754 -/* f1016a8: 00000000 */ nop -/* f1016ac: 10000029 */ b .PB0f101754 -/* f1016b0: 24100002 */ li $s0,0x2 -.PB0f1016b4: -/* f1016b4: 24010001 */ li $at,0x1 -/* f1016b8: 14810026 */ bne $a0,$at,.PB0f101754 -/* f1016bc: 00000000 */ nop -/* f1016c0: 8c790014 */ lw $t9,0x14($v1) -/* f1016c4: 332e0400 */ andi $t6,$t9,0x400 -/* f1016c8: 15c00022 */ bnez $t6,.PB0f101754 -/* f1016cc: 00000000 */ nop -/* f1016d0: 10000020 */ b .PB0f101754 -/* f1016d4: 24100002 */ li $s0,0x2 -.PB0f1016d8: -/* f1016d8: 3c0f800a */ lui $t7,0x800a -/* f1016dc: 8defe7e8 */ lw $t7,-0x1818($t7) -/* f1016e0: 11e0001c */ beqz $t7,.PB0f101754 -/* f1016e4: 00000000 */ nop -/* f1016e8: 1600001a */ bnez $s0,.PB0f101754 -/* f1016ec: 3c18800a */ lui $t8,0x800a -/* f1016f0: 8f1866e8 */ lw $t8,0x66e8($t8) -/* f1016f4: 031e0019 */ multu $t8,$s8 -/* f1016f8: 0011c080 */ sll $t8,$s1,0x2 -/* f1016fc: 0311c023 */ subu $t8,$t8,$s1 -/* f101700: 0000c812 */ mflo $t9 -/* f101704: 02f97021 */ addu $t6,$s7,$t9 -/* f101708: 81cf0000 */ lb $t7,0x0($t6) -/* f10170c: 02d8c821 */ addu $t9,$s6,$t8 -/* f101710: 03337021 */ addu $t6,$t9,$s3 -/* f101714: 29e10002 */ slti $at,$t7,0x2 -/* f101718: 1420000e */ bnez $at,.PB0f101754 -/* f10171c: 8fb801c4 */ lw $t8,0x1c4($sp) -/* f101720: 91cf0000 */ lbu $t7,0x0($t6) -/* f101724: 3c0e800b */ lui $t6,0x800b -/* f101728: 0018c880 */ sll $t9,$t8,0x2 -/* f10172c: 01d97021 */ addu $t6,$t6,$t9 -/* f101730: 8dce0af0 */ lw $t6,0xaf0($t6) -/* f101734: 3c02800b */ lui $v0,0x800b -/* f101738: 004f1021 */ addu $v0,$v0,$t7 -/* f10173c: 8dcf02d4 */ lw $t7,0x2d4($t6) -/* f101740: 90421198 */ lbu $v0,0x1198($v0) -/* f101744: 91e30079 */ lbu $v1,0x79($t7) -/* f101748: 14430002 */ bne $v0,$v1,.PB0f101754 -/* f10174c: 00000000 */ nop -/* f101750: 24100002 */ li $s0,0x2 -.PB0f101754: -/* f101754: 3c18800a */ lui $t8,0x800a -/* f101758: 8f18e754 */ lw $t8,-0x18ac($t8) -/* f10175c: 24010002 */ li $at,0x2 -/* f101760: 02402025 */ move $a0,$s2 -/* f101764: 93190250 */ lbu $t9,0x250($t8) -/* f101768: 27a501d0 */ addiu $a1,$sp,0x1d0 -/* f10176c: 17210003 */ bne $t9,$at,.PB0f10177c -/* f101770: 00000000 */ nop -/* f101774: 3c144f4f */ lui $s4,0x4f4f -/* f101778: 36944f7f */ ori $s4,$s4,0x4f7f -.PB0f10177c: -/* f10177c: 0fc3fa08 */ jal amGetSlotDetails -/* f101780: 02a03025 */ move $a2,$s5 -/* f101784: 24020001 */ li $v0,0x1 -/* f101788: 1662000f */ bne $s3,$v0,.PB0f1017c8 -/* f10178c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101790: 5622000e */ bnel $s1,$v0,.PB0f1017cc -/* f101794: 8faf01d0 */ lw $t7,0x1d0($sp) -/* f101798: 0fc3fd97 */ jal amIsCramped -/* f10179c: 00000000 */ nop -/* f1017a0: 14400011 */ bnez $v0,.PB0f1017e8 -/* f1017a4: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1017a8: 87ae0180 */ lh $t6,0x180($sp) -/* f1017ac: 02a02825 */ move $a1,$s5 -/* f1017b0: 02803025 */ move $a2,$s4 -/* f1017b4: 87a70182 */ lh $a3,0x182($sp) -/* f1017b8: 0fc3ff25 */ jal amRenderText -/* f1017bc: afae0010 */ sw $t6,0x10($sp) -/* f1017c0: 10000009 */ b .PB0f1017e8 -/* f1017c4: afa201d8 */ sw $v0,0x1d8($sp) -.PB0f1017c8: -/* f1017c8: 8faf01d0 */ lw $t7,0x1d0($sp) -.PB0f1017cc: -/* f1017cc: 02a02825 */ move $a1,$s5 -/* f1017d0: 87a60182 */ lh $a2,0x182($sp) -/* f1017d4: 87a70180 */ lh $a3,0x180($sp) -/* f1017d8: afb00010 */ sw $s0,0x10($sp) -/* f1017dc: 0fc401b2 */ jal amRenderSlot -/* f1017e0: afaf0014 */ sw $t7,0x14($sp) -/* f1017e4: afa201d8 */ sw $v0,0x1d8($sp) -.PB0f1017e8: -/* f1017e8: 26310001 */ addiu $s1,$s1,0x1 -/* f1017ec: 0011c400 */ sll $t8,$s1,0x10 -/* f1017f0: 00188c03 */ sra $s1,$t8,0x10 -/* f1017f4: 2a210003 */ slti $at,$s1,0x3 -/* f1017f8: 5420ff74 */ bnezl $at,.PB0f1015cc -/* f1017fc: 00132400 */ sll $a0,$s3,0x10 -/* f101800: 26730001 */ addiu $s3,$s3,0x1 -/* f101804: 00137400 */ sll $t6,$s3,0x10 -/* f101808: 000e9c03 */ sra $s3,$t6,0x10 -/* f10180c: 2a610003 */ slti $at,$s3,0x3 -/* f101810: 5420ff6d */ bnezl $at,.PB0f1015c8 -/* f101814: 00008825 */ move $s1,$zero -/* f101818: 3c18800a */ lui $t8,0x800a -/* f10181c: 8319251b */ lb $t9,0x251b($t8) -/* f101820: 07210004 */ bgez $t9,.PB0f101834 -/* f101824: 00000000 */ nop -/* f101828: 0fc3f90b */ jal amGetFirstBuddyIndex -/* f10182c: 00000000 */ nop -/* f101830: 04410011 */ bgez $v0,.PB0f101878 -.PB0f101834: -/* f101834: 3c0e800a */ lui $t6,0x800a -/* f101838: 8dcee7e8 */ lw $t6,-0x1818($t6) -/* f10183c: 3c0f800a */ lui $t7,0x800a -/* f101840: 11c0000d */ beqz $t6,.PB0f101878 -/* f101844: 00000000 */ nop -/* f101848: 8def66e8 */ lw $t7,0x66e8($t7) -/* f10184c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101850: 01fe0019 */ multu $t7,$s8 -/* f101854: 0000c012 */ mflo $t8 -/* f101858: 02f8c821 */ addu $t9,$s7,$t8 -/* f10185c: 83220000 */ lb $v0,0x0($t9) -/* f101860: 28410002 */ slti $at,$v0,0x2 -/* f101864: 14200004 */ bnez $at,.PB0f101878 -/* f101868: 00000000 */ nop -/* f10186c: 0fc3ff57 */ jal amRenderAibotInfo -/* f101870: 2445fffe */ addiu $a1,$v0,-2 -/* f101874: afa201d8 */ sw $v0,0x1d8($sp) -.PB0f101878: -/* f101878: 3c0e800a */ lui $t6,0x800a -/* f10187c: 8dce66e8 */ lw $t6,0x66e8($t6) -/* f101880: 3c02800a */ lui $v0,0x800a -/* f101884: 2442e4d0 */ addiu $v0,$v0,-6960 -/* f101888: 01de0019 */ multu $t6,$s8 -/* f10188c: 00007812 */ mflo $t7 -/* f101890: 02ef8021 */ addu $s0,$s7,$t7 -/* f101894: 82180000 */ lb $t8,0x0($s0) -/* f101898: 2b010002 */ slti $at,$t8,0x2 -/* f10189c: 14200005 */ bnez $at,.PB0f1018b4 -/* f1018a0: 24010001 */ li $at,0x1 -/* f1018a4: 16610003 */ bne $s3,$at,.PB0f1018b4 -/* f1018a8: 24010001 */ li $at,0x1 -/* f1018ac: 12210154 */ beq $s1,$at,.PB0f101e00 -/* f1018b0: 00000000 */ nop -.PB0f1018b4: -/* f1018b4: 8c59006c */ lw $t9,0x6c($v0) -/* f1018b8: 24120006 */ li $s2,0x6 -/* f1018bc: 24130006 */ li $s3,0x6 -/* f1018c0: 53200004 */ beqzl $t9,.PB0f1018d4 -/* f1018c4: 00003025 */ move $a2,$zero -/* f1018c8: 10000002 */ b .PB0f1018d4 -/* f1018cc: 24060001 */ li $a2,0x1 -/* f1018d0: 00003025 */ move $a2,$zero -.PB0f1018d4: -/* f1018d4: 8c4e0068 */ lw $t6,0x68($v0) -/* f1018d8: 00002825 */ move $a1,$zero -/* f1018dc: 11c00003 */ beqz $t6,.PB0f1018ec -/* f1018e0: 00000000 */ nop -/* f1018e4: 10000001 */ b .PB0f1018ec -/* f1018e8: 24050001 */ li $a1,0x1 -.PB0f1018ec: -/* f1018ec: 8c4f0064 */ lw $t7,0x64($v0) -/* f1018f0: 00002025 */ move $a0,$zero -/* f1018f4: 11e00003 */ beqz $t7,.PB0f101904 -/* f1018f8: 00000000 */ nop -/* f1018fc: 10000001 */ b .PB0f101904 -/* f101900: 24040001 */ li $a0,0x1 -.PB0f101904: -/* f101904: 8c580070 */ lw $t8,0x70($v0) -/* f101908: 00001825 */ move $v1,$zero -/* f10190c: 13000003 */ beqz $t8,.PB0f10191c -/* f101910: 00000000 */ nop -/* f101914: 10000001 */ b .PB0f10191c -/* f101918: 24030001 */ li $v1,0x1 -.PB0f10191c: -/* f10191c: 0064c821 */ addu $t9,$v1,$a0 -/* f101920: 03257021 */ addu $t6,$t9,$a1 -/* f101924: 01c67821 */ addu $t7,$t6,$a2 -/* f101928: 29e10002 */ slti $at,$t7,0x2 -/* f10192c: 14200003 */ bnez $at,.PB0f10193c -/* f101930: 00000000 */ nop -/* f101934: 24120005 */ li $s2,0x5 -/* f101938: 24130003 */ li $s3,0x3 -.PB0f10193c: -/* f10193c: 0c006b8b */ jal sinf -/* f101940: c60c001c */ lwc1 $f12,0x1c($s0) -/* f101944: 3c013f80 */ lui $at,0x3f80 -/* f101948: 44812000 */ mtc1 $at,$f4 -/* f10194c: 3c0142fe */ lui $at,0x42fe -/* f101950: 44814000 */ mtc1 $at,$f8 -/* f101954: 46040180 */ add.s $f6,$f0,$f4 -/* f101958: 24020001 */ li $v0,0x1 -/* f10195c: 3c014f00 */ lui $at,0x4f00 -/* f101960: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101964: 46083282 */ mul.s $f10,$f6,$f8 -/* f101968: 4458f800 */ cfc1 $t8,$31 -/* f10196c: 44c2f800 */ ctc1 $v0,$31 -/* f101970: 00000000 */ nop -/* f101974: 46005424 */ cvt.w.s $f16,$f10 -/* f101978: 4442f800 */ cfc1 $v0,$31 -/* f10197c: 00000000 */ nop -/* f101980: 30420078 */ andi $v0,$v0,0x78 -/* f101984: 50400013 */ beqzl $v0,.PB0f1019d4 -/* f101988: 44028000 */ mfc1 $v0,$f16 -/* f10198c: 44818000 */ mtc1 $at,$f16 -/* f101990: 24020001 */ li $v0,0x1 -/* f101994: 46105401 */ sub.s $f16,$f10,$f16 -/* f101998: 44c2f800 */ ctc1 $v0,$31 -/* f10199c: 00000000 */ nop -/* f1019a0: 46008424 */ cvt.w.s $f16,$f16 -/* f1019a4: 4442f800 */ cfc1 $v0,$31 -/* f1019a8: 00000000 */ nop -/* f1019ac: 30420078 */ andi $v0,$v0,0x78 -/* f1019b0: 14400005 */ bnez $v0,.PB0f1019c8 -/* f1019b4: 00000000 */ nop -/* f1019b8: 44028000 */ mfc1 $v0,$f16 -/* f1019bc: 3c018000 */ lui $at,0x8000 -/* f1019c0: 10000007 */ b .PB0f1019e0 -/* f1019c4: 00411025 */ or $v0,$v0,$at -.PB0f1019c8: -/* f1019c8: 10000005 */ b .PB0f1019e0 -/* f1019cc: 2402ffff */ li $v0,-1 -/* f1019d0: 44028000 */ mfc1 $v0,$f16 -.PB0f1019d4: -/* f1019d4: 00000000 */ nop -/* f1019d8: 0440fffb */ bltz $v0,.PB0f1019c8 -/* f1019dc: 00000000 */ nop -.PB0f1019e0: -/* f1019e0: 44d8f800 */ ctc1 $t8,$31 -/* f1019e4: 3c18800a */ lui $t8,0x800a -/* f1019e8: 8f18e754 */ lw $t8,-0x18ac($t8) -/* f1019ec: 3c01ff00 */ lui $at,0xff00 -/* f1019f0: 342100ff */ ori $at,$at,0xff -/* f1019f4: 0002ca00 */ sll $t9,$v0,0x8 -/* f1019f8: 03217025 */ or $t6,$t9,$at -/* f1019fc: 93190250 */ lbu $t9,0x250($t8) -/* f101a00: 00027c00 */ sll $t7,$v0,0x10 -/* f101a04: 24010002 */ li $at,0x2 -/* f101a08: 17210003 */ bne $t9,$at,.PB0f101a18 -/* f101a0c: 01cfa025 */ or $s4,$t6,$t7 -/* f101a10: 3c144f4f */ lui $s4,0x4f4f -/* f101a14: 36944f7f */ ori $s4,$s4,0x4f7f -.PB0f101a18: -/* f101a18: 0fc552fc */ jal textSetPrimColour -/* f101a1c: 02802825 */ move $a1,$s4 -/* f101a20: 3c0e800a */ lui $t6,0x800a -/* f101a24: 8dce66e8 */ lw $t6,0x66e8($t6) -/* f101a28: afa201d8 */ sw $v0,0x1d8($sp) -/* f101a2c: 01de0019 */ multu $t6,$s8 -/* f101a30: 00007812 */ mflo $t7 -/* f101a34: 02ef8021 */ addu $s0,$s7,$t7 -/* f101a38: 86110004 */ lh $s1,0x4($s0) -/* f101a3c: 9219000e */ lbu $t9,0xe($s0) -/* f101a40: 06210003 */ bgez $s1,.PB0f101a50 -/* f101a44: 0011c043 */ sra $t8,$s1,0x1 -/* f101a48: 26210001 */ addiu $at,$s1,0x1 -/* f101a4c: 0001c043 */ sra $t8,$at,0x1 -.PB0f101a50: -/* f101a50: 24010004 */ li $at,0x4 -/* f101a54: 1721003c */ bne $t9,$at,.PB0f101b48 -/* f101a58: 03008825 */ move $s1,$t8 -/* f101a5c: 0fc3fd97 */ jal amIsCramped -/* f101a60: 00000000 */ nop -/* f101a64: 10400005 */ beqz $v0,.PB0f101a7c -/* f101a68: 3c0e800a */ lui $t6,0x800a -/* f101a6c: 24110001 */ li $s1,0x1 -/* f101a70: 24120002 */ li $s2,0x2 -/* f101a74: 10000034 */ b .PB0f101b48 -/* f101a78: 00009825 */ move $s3,$zero -.PB0f101a7c: -/* f101a7c: 8dcee53c */ lw $t6,-0x1ac4($t6) -/* f101a80: 3c0f800a */ lui $t7,0x800a -/* f101a84: 3c18800a */ lui $t8,0x800a -/* f101a88: 11c00003 */ beqz $t6,.PB0f101a98 -/* f101a8c: 3c19800a */ lui $t9,0x800a -/* f101a90: 10000002 */ b .PB0f101a9c -/* f101a94: 24060001 */ li $a2,0x1 -.PB0f101a98: -/* f101a98: 00003025 */ move $a2,$zero -.PB0f101a9c: -/* f101a9c: 8defe538 */ lw $t7,-0x1ac8($t7) -/* f101aa0: 00002825 */ move $a1,$zero -/* f101aa4: 00002025 */ move $a0,$zero -/* f101aa8: 11e00003 */ beqz $t7,.PB0f101ab8 -/* f101aac: 00001825 */ move $v1,$zero -/* f101ab0: 10000001 */ b .PB0f101ab8 -/* f101ab4: 24050001 */ li $a1,0x1 -.PB0f101ab8: -/* f101ab8: 8f18e534 */ lw $t8,-0x1acc($t8) -/* f101abc: 27b00118 */ addiu $s0,$sp,0x118 -/* f101ac0: 13000003 */ beqz $t8,.PB0f101ad0 -/* f101ac4: 00000000 */ nop -/* f101ac8: 10000001 */ b .PB0f101ad0 -/* f101acc: 24040001 */ li $a0,0x1 -.PB0f101ad0: -/* f101ad0: 8f39e540 */ lw $t9,-0x1ac0($t9) -/* f101ad4: 13200003 */ beqz $t9,.PB0f101ae4 -/* f101ad8: 00000000 */ nop -/* f101adc: 10000001 */ b .PB0f101ae4 -/* f101ae0: 24030001 */ li $v1,0x1 -.PB0f101ae4: -/* f101ae4: 00647021 */ addu $t6,$v1,$a0 -/* f101ae8: 01c57821 */ addu $t7,$t6,$a1 -/* f101aec: 01e6c021 */ addu $t8,$t7,$a2 -/* f101af0: 2b010002 */ slti $at,$t8,0x2 -/* f101af4: 14200014 */ bnez $at,.PB0f101b48 -/* f101af8: 24040004 */ li $a0,0x4 -/* f101afc: 27a50114 */ addiu $a1,$sp,0x114 -/* f101b00: 0fc3fa08 */ jal amGetSlotDetails -/* f101b04: 02003025 */ move $a2,$s0 -/* f101b08: 3c19800a */ lui $t9,0x800a -/* f101b0c: 8f3966e4 */ lw $t9,0x66e4($t9) -/* f101b10: 3c07800a */ lui $a3,0x800a -/* f101b14: 8ce766e0 */ lw $a3,0x66e0($a3) -/* f101b18: 27a4013c */ addiu $a0,$sp,0x13c -/* f101b1c: 27a50138 */ addiu $a1,$sp,0x138 -/* f101b20: 02003025 */ move $a2,$s0 -/* f101b24: afa00014 */ sw $zero,0x14($sp) -/* f101b28: 0fc5625a */ jal textMeasure -/* f101b2c: afb90010 */ sw $t9,0x10($sp) -/* f101b30: 8fb10138 */ lw $s1,0x138($sp) -/* f101b34: 06210003 */ bgez $s1,.PB0f101b44 -/* f101b38: 00117043 */ sra $t6,$s1,0x1 -/* f101b3c: 26210001 */ addiu $at,$s1,0x1 -/* f101b40: 00017043 */ sra $t6,$at,0x1 -.PB0f101b44: -/* f101b44: 25d10002 */ addiu $s1,$t6,0x2 -.PB0f101b48: -/* f101b48: 3c19800a */ lui $t9,0x800a -/* f101b4c: 8f3966e8 */ lw $t9,0x66e8($t9) -/* f101b50: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f101b54: 3c068008 */ lui $a2,0x8008 -/* f101b58: 033e0019 */ multu $t9,$s8 -/* f101b5c: 24c61f90 */ addiu $a2,$a2,0x1f90 -/* f101b60: 24580008 */ addiu $t8,$v0,0x8 -/* f101b64: afb801d8 */ sw $t8,0x1d8($sp) -/* f101b68: 3c16f600 */ lui $s6,0xf600 -/* f101b6c: 00007012 */ mflo $t6 -/* f101b70: 02ee8021 */ addu $s0,$s7,$t6 -/* f101b74: 860f0006 */ lh $t7,0x6($s0) -/* f101b78: 8cce0000 */ lw $t6,0x0($a2) -/* f101b7c: 01f1c021 */ addu $t8,$t7,$s1 -/* f101b80: 27190001 */ addiu $t9,$t8,0x1 -/* f101b84: 032e0019 */ multu $t9,$t6 -/* f101b88: 860e0008 */ lh $t6,0x8($s0) -/* f101b8c: 00007812 */ mflo $t7 -/* f101b90: 31f803ff */ andi $t8,$t7,0x3ff -/* f101b94: 0018cb80 */ sll $t9,$t8,0xe -/* f101b98: 01d27823 */ subu $t7,$t6,$s2 -/* f101b9c: 25f80001 */ addiu $t8,$t7,0x1 -/* f101ba0: 330e03ff */ andi $t6,$t8,0x3ff -/* f101ba4: 000e7880 */ sll $t7,$t6,0x2 -/* f101ba8: 01f6c025 */ or $t8,$t7,$s6 -/* f101bac: 03197025 */ or $t6,$t8,$t9 -/* f101bb0: 3c0f800a */ lui $t7,0x800a -/* f101bb4: ac4e0000 */ sw $t6,0x0($v0) -/* f101bb8: 8def66e8 */ lw $t7,0x66e8($t7) -/* f101bbc: 01fe0019 */ multu $t7,$s8 -/* f101bc0: 8ccf0000 */ lw $t7,0x0($a2) -/* f101bc4: 0000c012 */ mflo $t8 -/* f101bc8: 02f88021 */ addu $s0,$s7,$t8 -/* f101bcc: 86190006 */ lh $t9,0x6($s0) -/* f101bd0: 03317023 */ subu $t6,$t9,$s1 -/* f101bd4: 01cf0019 */ multu $t6,$t7 -/* f101bd8: 860f0008 */ lh $t7,0x8($s0) -/* f101bdc: 0000c012 */ mflo $t8 -/* f101be0: 331903ff */ andi $t9,$t8,0x3ff -/* f101be4: 00197380 */ sll $t6,$t9,0xe -/* f101be8: 01f2c023 */ subu $t8,$t7,$s2 -/* f101bec: 331903ff */ andi $t9,$t8,0x3ff -/* f101bf0: 00197880 */ sll $t7,$t9,0x2 -/* f101bf4: 01eec025 */ or $t8,$t7,$t6 -/* f101bf8: 3c0e800a */ lui $t6,0x800a -/* f101bfc: ac580004 */ sw $t8,0x4($v0) -/* f101c00: 8dce66e8 */ lw $t6,0x66e8($t6) -/* f101c04: 8fa301d8 */ lw $v1,0x1d8($sp) -/* f101c08: 01de0019 */ multu $t6,$s8 -/* f101c0c: 246f0008 */ addiu $t7,$v1,0x8 -/* f101c10: afaf01d8 */ sw $t7,0x1d8($sp) -/* f101c14: 0000c012 */ mflo $t8 -/* f101c18: 02f88021 */ addu $s0,$s7,$t8 -/* f101c1c: 86190006 */ lh $t9,0x6($s0) -/* f101c20: 8cd80000 */ lw $t8,0x0($a2) -/* f101c24: 03317821 */ addu $t7,$t9,$s1 -/* f101c28: 25ee0001 */ addiu $t6,$t7,0x1 -/* f101c2c: 01d80019 */ multu $t6,$t8 -/* f101c30: 86180008 */ lh $t8,0x8($s0) -/* f101c34: 0000c812 */ mflo $t9 -/* f101c38: 332f03ff */ andi $t7,$t9,0x3ff -/* f101c3c: 000f7380 */ sll $t6,$t7,0xe -/* f101c40: 0313c821 */ addu $t9,$t8,$s3 -/* f101c44: 272f0001 */ addiu $t7,$t9,0x1 -/* f101c48: 31f803ff */ andi $t8,$t7,0x3ff -/* f101c4c: 0018c880 */ sll $t9,$t8,0x2 -/* f101c50: 03367825 */ or $t7,$t9,$s6 -/* f101c54: 01eec025 */ or $t8,$t7,$t6 -/* f101c58: 3c19800a */ lui $t9,0x800a -/* f101c5c: ac780000 */ sw $t8,0x0($v1) -/* f101c60: 8f3966e8 */ lw $t9,0x66e8($t9) -/* f101c64: 033e0019 */ multu $t9,$s8 -/* f101c68: 8cd90000 */ lw $t9,0x0($a2) -/* f101c6c: 00007812 */ mflo $t7 -/* f101c70: 02ef8021 */ addu $s0,$s7,$t7 -/* f101c74: 860e0006 */ lh $t6,0x6($s0) -/* f101c78: 01d1c023 */ subu $t8,$t6,$s1 -/* f101c7c: 03190019 */ multu $t8,$t9 -/* f101c80: 86190008 */ lh $t9,0x8($s0) -/* f101c84: 00007812 */ mflo $t7 -/* f101c88: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101c8c: 000ec380 */ sll $t8,$t6,0xe -/* f101c90: 03337821 */ addu $t7,$t9,$s3 -/* f101c94: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101c98: 000ec880 */ sll $t9,$t6,0x2 -/* f101c9c: 03387825 */ or $t7,$t9,$t8 -/* f101ca0: 3c18800a */ lui $t8,0x800a -/* f101ca4: ac6f0004 */ sw $t7,0x4($v1) -/* f101ca8: 8f1866e8 */ lw $t8,0x66e8($t8) -/* f101cac: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f101cb0: 031e0019 */ multu $t8,$s8 -/* f101cb4: 24b90008 */ addiu $t9,$a1,0x8 -/* f101cb8: afb901d8 */ sw $t9,0x1d8($sp) -/* f101cbc: 00007812 */ mflo $t7 -/* f101cc0: 02ef8021 */ addu $s0,$s7,$t7 -/* f101cc4: 860e0006 */ lh $t6,0x6($s0) -/* f101cc8: 8ccf0000 */ lw $t7,0x0($a2) -/* f101ccc: 01d1c823 */ subu $t9,$t6,$s1 -/* f101cd0: 27380001 */ addiu $t8,$t9,0x1 -/* f101cd4: 030f0019 */ multu $t8,$t7 -/* f101cd8: 860f0008 */ lh $t7,0x8($s0) -/* f101cdc: 00007012 */ mflo $t6 -/* f101ce0: 31d903ff */ andi $t9,$t6,0x3ff -/* f101ce4: 0019c380 */ sll $t8,$t9,0xe -/* f101ce8: 01f37021 */ addu $t6,$t7,$s3 -/* f101cec: 31d903ff */ andi $t9,$t6,0x3ff -/* f101cf0: 00197880 */ sll $t7,$t9,0x2 -/* f101cf4: 01f67025 */ or $t6,$t7,$s6 -/* f101cf8: 01d8c825 */ or $t9,$t6,$t8 -/* f101cfc: 3c0f800a */ lui $t7,0x800a -/* f101d00: acb90000 */ sw $t9,0x0($a1) -/* f101d04: 8def66e8 */ lw $t7,0x66e8($t7) -/* f101d08: 01fe0019 */ multu $t7,$s8 -/* f101d0c: 8ccf0000 */ lw $t7,0x0($a2) -/* f101d10: 00007012 */ mflo $t6 -/* f101d14: 02ee8021 */ addu $s0,$s7,$t6 -/* f101d18: 86180006 */ lh $t8,0x6($s0) -/* f101d1c: 0311c823 */ subu $t9,$t8,$s1 -/* f101d20: 032f0019 */ multu $t9,$t7 -/* f101d24: 860f0008 */ lh $t7,0x8($s0) -/* f101d28: 00007012 */ mflo $t6 -/* f101d2c: 31d803ff */ andi $t8,$t6,0x3ff -/* f101d30: 0018cb80 */ sll $t9,$t8,0xe -/* f101d34: 01f27023 */ subu $t6,$t7,$s2 -/* f101d38: 25d80001 */ addiu $t8,$t6,0x1 -/* f101d3c: 330f03ff */ andi $t7,$t8,0x3ff -/* f101d40: 000f7080 */ sll $t6,$t7,0x2 -/* f101d44: 01d9c025 */ or $t8,$t6,$t9 -/* f101d48: 3c19800a */ lui $t9,0x800a -/* f101d4c: acb80004 */ sw $t8,0x4($a1) -/* f101d50: 8f3966e8 */ lw $t9,0x66e8($t9) -/* f101d54: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f101d58: 033e0019 */ multu $t9,$s8 -/* f101d5c: 244e0008 */ addiu $t6,$v0,0x8 -/* f101d60: afae01d8 */ sw $t6,0x1d8($sp) -/* f101d64: 0000c012 */ mflo $t8 -/* f101d68: 02f88021 */ addu $s0,$s7,$t8 -/* f101d6c: 860f0006 */ lh $t7,0x6($s0) -/* f101d70: 8cd80000 */ lw $t8,0x0($a2) -/* f101d74: 01f17021 */ addu $t6,$t7,$s1 -/* f101d78: 25d90001 */ addiu $t9,$t6,0x1 -/* f101d7c: 03380019 */ multu $t9,$t8 -/* f101d80: 86180008 */ lh $t8,0x8($s0) -/* f101d84: 00007812 */ mflo $t7 -/* f101d88: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101d8c: 000ecb80 */ sll $t9,$t6,0xe -/* f101d90: 03137821 */ addu $t7,$t8,$s3 -/* f101d94: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101d98: 000ec080 */ sll $t8,$t6,0x2 -/* f101d9c: 03167825 */ or $t7,$t8,$s6 -/* f101da0: 01f97025 */ or $t6,$t7,$t9 -/* f101da4: 3c18800a */ lui $t8,0x800a -/* f101da8: ac4e0000 */ sw $t6,0x0($v0) -/* f101dac: 8f1866e8 */ lw $t8,0x66e8($t8) -/* f101db0: 031e0019 */ multu $t8,$s8 -/* f101db4: 8cd80000 */ lw $t8,0x0($a2) -/* f101db8: 00007812 */ mflo $t7 -/* f101dbc: 02ef8021 */ addu $s0,$s7,$t7 -/* f101dc0: 86190006 */ lh $t9,0x6($s0) -/* f101dc4: 03317021 */ addu $t6,$t9,$s1 -/* f101dc8: 01d80019 */ multu $t6,$t8 -/* f101dcc: 86180008 */ lh $t8,0x8($s0) -/* f101dd0: 00007812 */ mflo $t7 -/* f101dd4: 31f903ff */ andi $t9,$t7,0x3ff -/* f101dd8: 00197380 */ sll $t6,$t9,0xe -/* f101ddc: 03127823 */ subu $t7,$t8,$s2 -/* f101de0: 25f90001 */ addiu $t9,$t7,0x1 -/* f101de4: 333803ff */ andi $t8,$t9,0x3ff -/* f101de8: 00187880 */ sll $t7,$t8,0x2 -/* f101dec: 01eec825 */ or $t9,$t7,$t6 -/* f101df0: ac590004 */ sw $t9,0x4($v0) -/* f101df4: 0fc55313 */ jal text0f153838 -/* f101df8: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101dfc: afa201d8 */ sw $v0,0x1d8($sp) -.PB0f101e00: -/* f101e00: 0fc552e5 */ jal text0f153780 -/* f101e04: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101e08: 3c03800a */ lui $v1,0x800a -/* f101e0c: 3c0b800a */ lui $t3,0x800a -/* f101e10: 256be4d0 */ addiu $t3,$t3,-6960 -/* f101e14: 8c63e754 */ lw $v1,-0x18ac($v1) -/* f101e18: afa201d8 */ sw $v0,0x1d8($sp) -/* f101e1c: 8c621c04 */ lw $v0,0x1c04($v1) -.PB0f101e20: -/* f101e20: 3c16f600 */ lui $s6,0xf600 -/* f101e24: 50400252 */ beqzl $v0,.PB0f102770 -/* f101e28: 8fbf004c */ lw $ra,0x4c($sp) -/* f101e2c: c4400104 */ lwc1 $f0,0x104($v0) -/* f101e30: c4520100 */ lwc1 $f18,0x100($v0) -/* f101e34: 3c013e00 */ lui $at,0x3e00 -/* f101e38: 44815000 */ mtc1 $at,$f10 -/* f101e3c: 46120101 */ sub.s $f4,$f0,$f18 -/* f101e40: 3c013e80 */ lui $at,0x3e80 -/* f101e44: 44819000 */ mtc1 $at,$f18 -/* f101e48: 0000f025 */ move $s8,$zero -/* f101e4c: 46002183 */ div.s $f6,$f4,$f0 -/* f101e50: e7a60100 */ swc1 $f6,0x100($sp) -/* f101e54: c4480180 */ lwc1 $f8,0x180($v0) -/* f101e58: 4612303c */ c.lt.s $f6,$f18 -/* f101e5c: 460a4402 */ mul.s $f16,$f8,$f10 -/* f101e60: 45000002 */ bc1f .PB0f101e6c -/* f101e64: e7b000fc */ swc1 $f16,0xfc($sp) -/* f101e68: 241e0001 */ li $s8,0x1 -.PB0f101e6c: -/* f101e6c: 8d67006c */ lw $a3,0x6c($t3) -/* f101e70: 50e00004 */ beqzl $a3,.PB0f101e84 -/* f101e74: 00003025 */ move $a2,$zero -/* f101e78: 10000002 */ b .PB0f101e84 -/* f101e7c: 24060001 */ li $a2,0x1 -/* f101e80: 00003025 */ move $a2,$zero -.PB0f101e84: -/* f101e84: 8d680068 */ lw $t0,0x68($t3) -/* f101e88: 51000004 */ beqzl $t0,.PB0f101e9c -/* f101e8c: 00002825 */ move $a1,$zero -/* f101e90: 10000002 */ b .PB0f101e9c -/* f101e94: 24050001 */ li $a1,0x1 -/* f101e98: 00002825 */ move $a1,$zero -.PB0f101e9c: -/* f101e9c: 8d690064 */ lw $t1,0x64($t3) -/* f101ea0: 51200004 */ beqzl $t1,.PB0f101eb4 -/* f101ea4: 00002025 */ move $a0,$zero -/* f101ea8: 10000002 */ b .PB0f101eb4 -/* f101eac: 24040001 */ li $a0,0x1 -/* f101eb0: 00002025 */ move $a0,$zero -.PB0f101eb4: -/* f101eb4: 8d6a0070 */ lw $t2,0x70($t3) -/* f101eb8: 51400004 */ beqzl $t2,.PB0f101ecc -/* f101ebc: 00001825 */ move $v1,$zero -/* f101ec0: 10000002 */ b .PB0f101ecc -/* f101ec4: 24030001 */ li $v1,0x1 -/* f101ec8: 00001825 */ move $v1,$zero -.PB0f101ecc: -/* f101ecc: 0064c021 */ addu $t8,$v1,$a0 -/* f101ed0: 03057821 */ addu $t7,$t8,$a1 -/* f101ed4: 01e67021 */ addu $t6,$t7,$a2 -/* f101ed8: 29c10002 */ slti $at,$t6,0x2 -/* f101edc: 54200004 */ bnezl $at,.PB0f101ef0 -/* f101ee0: 24170040 */ li $s7,0x40 -/* f101ee4: 10000002 */ b .PB0f101ef0 -/* f101ee8: 24170030 */ li $s7,0x30 -/* f101eec: 24170040 */ li $s7,0x40 -.PB0f101ef0: -/* f101ef0: 50e00004 */ beqzl $a3,.PB0f101f04 -/* f101ef4: 00003025 */ move $a2,$zero -/* f101ef8: 10000002 */ b .PB0f101f04 -/* f101efc: 24060001 */ li $a2,0x1 -/* f101f00: 00003025 */ move $a2,$zero -.PB0f101f04: -/* f101f04: 51000004 */ beqzl $t0,.PB0f101f18 -/* f101f08: 00002825 */ move $a1,$zero -/* f101f0c: 10000002 */ b .PB0f101f18 -/* f101f10: 24050001 */ li $a1,0x1 -/* f101f14: 00002825 */ move $a1,$zero -.PB0f101f18: -/* f101f18: 51200004 */ beqzl $t1,.PB0f101f2c -/* f101f1c: 00002025 */ move $a0,$zero -/* f101f20: 10000002 */ b .PB0f101f2c -/* f101f24: 24040001 */ li $a0,0x1 -/* f101f28: 00002025 */ move $a0,$zero -.PB0f101f2c: -/* f101f2c: 51400004 */ beqzl $t2,.PB0f101f40 -/* f101f30: 00001825 */ move $v1,$zero -/* f101f34: 10000002 */ b .PB0f101f40 -/* f101f38: 24030001 */ li $v1,0x1 -/* f101f3c: 00001825 */ move $v1,$zero -.PB0f101f40: -/* f101f40: 0064c821 */ addu $t9,$v1,$a0 -/* f101f44: 0325c021 */ addu $t8,$t9,$a1 -/* f101f48: 03067821 */ addu $t7,$t8,$a2 -/* f101f4c: 29e10002 */ slti $at,$t7,0x2 -/* f101f50: 54200004 */ bnezl $at,.PB0f101f64 -/* f101f54: 2415000b */ li $s5,0xb -/* f101f58: 10000002 */ b .PB0f101f64 -/* f101f5c: 24150007 */ li $s5,0x7 -/* f101f60: 2415000b */ li $s5,0xb -.PB0f101f64: -/* f101f64: 10e00003 */ beqz $a3,.PB0f101f74 -/* f101f68: 00009025 */ move $s2,$zero -/* f101f6c: 10000002 */ b .PB0f101f78 -/* f101f70: 24060001 */ li $a2,0x1 -.PB0f101f74: -/* f101f74: 00003025 */ move $a2,$zero -.PB0f101f78: -/* f101f78: 11000003 */ beqz $t0,.PB0f101f88 -/* f101f7c: 24010002 */ li $at,0x2 -/* f101f80: 10000002 */ b .PB0f101f8c -/* f101f84: 24050001 */ li $a1,0x1 -.PB0f101f88: -/* f101f88: 00002825 */ move $a1,$zero -.PB0f101f8c: -/* f101f8c: 51200004 */ beqzl $t1,.PB0f101fa0 -/* f101f90: 00002025 */ move $a0,$zero -/* f101f94: 10000002 */ b .PB0f101fa0 -/* f101f98: 24040001 */ li $a0,0x1 -/* f101f9c: 00002025 */ move $a0,$zero -.PB0f101fa0: -/* f101fa0: 51400004 */ beqzl $t2,.PB0f101fb4 -/* f101fa4: 00001825 */ move $v1,$zero -/* f101fa8: 10000002 */ b .PB0f101fb4 -/* f101fac: 24030001 */ li $v1,0x1 -/* f101fb0: 00001825 */ move $v1,$zero -.PB0f101fb4: -/* f101fb4: 00647021 */ addu $t6,$v1,$a0 -/* f101fb8: 01c5c821 */ addu $t9,$t6,$a1 -/* f101fbc: 0326c021 */ addu $t8,$t9,$a2 -/* f101fc0: 17010011 */ bne $t8,$at,.PB0f102008 -/* f101fc4: 00000000 */ nop -/* f101fc8: 0fc550b9 */ jal optionsGetScreenSplit -/* f101fcc: 00000000 */ nop -/* f101fd0: 24010001 */ li $at,0x1 -/* f101fd4: 10410021 */ beq $v0,$at,.PB0f10205c -/* f101fd8: 3c0f8009 */ lui $t7,0x8009 -/* f101fdc: 91ef2fd0 */ lbu $t7,0x2fd0($t7) -/* f101fe0: 24010001 */ li $at,0x1 -/* f101fe4: 3c07800a */ lui $a3,0x800a -/* f101fe8: 11e1001c */ beq $t7,$at,.PB0f10205c -/* f101fec: 3c08800a */ lui $t0,0x800a -/* f101ff0: 3c09800a */ lui $t1,0x800a -/* f101ff4: 3c0a800a */ lui $t2,0x800a -/* f101ff8: 8d4ae540 */ lw $t2,-0x1ac0($t2) -/* f101ffc: 8d29e534 */ lw $t1,-0x1acc($t1) -/* f102000: 8ce7e53c */ lw $a3,-0x1ac4($a3) -/* f102004: 8d08e538 */ lw $t0,-0x1ac8($t0) -.PB0f102008: -/* f102008: 10e00003 */ beqz $a3,.PB0f102018 -/* f10200c: 00002825 */ move $a1,$zero -/* f102010: 10000001 */ b .PB0f102018 -/* f102014: 24050001 */ li $a1,0x1 -.PB0f102018: -/* f102018: 11000003 */ beqz $t0,.PB0f102028 -/* f10201c: 00001025 */ move $v0,$zero -/* f102020: 10000001 */ b .PB0f102028 -/* f102024: 24020001 */ li $v0,0x1 -.PB0f102028: -/* f102028: 11200003 */ beqz $t1,.PB0f102038 -/* f10202c: 00002025 */ move $a0,$zero -/* f102030: 10000001 */ b .PB0f102038 -/* f102034: 24040001 */ li $a0,0x1 -.PB0f102038: -/* f102038: 11400003 */ beqz $t2,.PB0f102048 -/* f10203c: 00001825 */ move $v1,$zero -/* f102040: 10000001 */ b .PB0f102048 -/* f102044: 24030001 */ li $v1,0x1 -.PB0f102048: -/* f102048: 00647021 */ addu $t6,$v1,$a0 -/* f10204c: 01c2c821 */ addu $t9,$t6,$v0 -/* f102050: 0325c021 */ addu $t8,$t9,$a1 -/* f102054: 2b010003 */ slti $at,$t8,0x3 -/* f102058: 1420000c */ bnez $at,.PB0f10208c -.PB0f10205c: -/* f10205c: 3c0b800a */ lui $t3,0x800a -/* f102060: 256be4d0 */ addiu $t3,$t3,-6960 -/* f102064: 8d6f028c */ lw $t7,0x28c($t3) -/* f102068: 8d67006c */ lw $a3,0x6c($t3) -/* f10206c: 8d680068 */ lw $t0,0x68($t3) -/* f102070: 31ee0001 */ andi $t6,$t7,0x1 -/* f102074: 8d690064 */ lw $t1,0x64($t3) -/* f102078: 15c00003 */ bnez $t6,.PB0f102088 -/* f10207c: 8d6a0070 */ lw $t2,0x70($t3) -/* f102080: 10000002 */ b .PB0f10208c -/* f102084: 24120008 */ li $s2,0x8 -.PB0f102088: -/* f102088: 2412fff8 */ li $s2,-8 -.PB0f10208c: -/* f10208c: 10e00003 */ beqz $a3,.PB0f10209c -/* f102090: 24010001 */ li $at,0x1 -/* f102094: 10000002 */ b .PB0f1020a0 -/* f102098: 24060001 */ li $a2,0x1 -.PB0f10209c: -/* f10209c: 00003025 */ move $a2,$zero -.PB0f1020a0: -/* f1020a0: 51000004 */ beqzl $t0,.PB0f1020b4 -/* f1020a4: 00002825 */ move $a1,$zero -/* f1020a8: 10000002 */ b .PB0f1020b4 -/* f1020ac: 24050001 */ li $a1,0x1 -/* f1020b0: 00002825 */ move $a1,$zero -.PB0f1020b4: -/* f1020b4: 51200004 */ beqzl $t1,.PB0f1020c8 -/* f1020b8: 00002025 */ move $a0,$zero -/* f1020bc: 10000002 */ b .PB0f1020c8 -/* f1020c0: 24040001 */ li $a0,0x1 -/* f1020c4: 00002025 */ move $a0,$zero -.PB0f1020c8: -/* f1020c8: 51400004 */ beqzl $t2,.PB0f1020dc -/* f1020cc: 00001825 */ move $v1,$zero -/* f1020d0: 10000002 */ b .PB0f1020dc -/* f1020d4: 24030001 */ li $v1,0x1 -/* f1020d8: 00001825 */ move $v1,$zero -.PB0f1020dc: -/* f1020dc: 0064c821 */ addu $t9,$v1,$a0 -/* f1020e0: 0325c021 */ addu $t8,$t9,$a1 -/* f1020e4: 03067821 */ addu $t7,$t8,$a2 -/* f1020e8: 15e10019 */ bne $t7,$at,.PB0f102150 -/* f1020ec: 00000000 */ nop -/* f1020f0: 0fc5504c */ jal optionsGetEffectiveScreenSize -/* f1020f4: 00000000 */ nop -/* f1020f8: 10400015 */ beqz $v0,.PB0f102150 -/* f1020fc: 00000000 */ nop -/* f102100: 0c002e8b */ jal viGetViewLeft -/* f102104: 00000000 */ nop -/* f102108: 3c0e8008 */ lui $t6,0x8008 -/* f10210c: 8dce1f90 */ lw $t6,0x1f90($t6) -/* f102110: 44972000 */ mtc1 $s7,$f4 -/* f102114: 004e001a */ div $zero,$v0,$t6 -/* f102118: 00008012 */ mflo $s0 -/* f10211c: 26100020 */ addiu $s0,$s0,0x20 -/* f102120: 15c00002 */ bnez $t6,.PB0f10212c -/* f102124: 00000000 */ nop -/* f102128: 0007000d */ break 0x7 -.PB0f10212c: -/* f10212c: 2401ffff */ li $at,-1 -/* f102130: 15c10004 */ bne $t6,$at,.PB0f102144 -/* f102134: 3c018000 */ lui $at,0x8000 -/* f102138: 14410002 */ bne $v0,$at,.PB0f102144 -/* f10213c: 00000000 */ nop -/* f102140: 0006000d */ break 0x6 -.PB0f102144: -/* f102144: 468020a0 */ cvt.s.w $f2,$f4 -/* f102148: 10000031 */ b .PB0f102210 -/* f10214c: 3c013e80 */ lui $at,0x3e80 -.PB0f102150: -/* f102150: 0c002e6d */ jal viGetViewWidth -/* f102154: 00000000 */ nop -/* f102158: 00028c00 */ sll $s1,$v0,0x10 -/* f10215c: 0011cc03 */ sra $t9,$s1,0x10 -/* f102160: 0c002e8b */ jal viGetViewLeft -/* f102164: 03208825 */ move $s1,$t9 -/* f102168: 3c038008 */ lui $v1,0x8008 -/* f10216c: 8c631f90 */ lw $v1,0x1f90($v1) -/* f102170: 44974000 */ mtc1 $s7,$f8 -/* f102174: 3c013f00 */ lui $at,0x3f00 -/* f102178: 0043001a */ div $zero,$v0,$v1 -/* f10217c: 0000c012 */ mflo $t8 -/* f102180: 44810000 */ mtc1 $at,$f0 -/* f102184: 468040a0 */ cvt.s.w $f2,$f8 -/* f102188: 0223001a */ div $zero,$s1,$v1 -/* f10218c: 00007812 */ mflo $t7 -/* f102190: 448f5000 */ mtc1 $t7,$f10 -/* f102194: 14600002 */ bnez $v1,.PB0f1021a0 -/* f102198: 00000000 */ nop -/* f10219c: 0007000d */ break 0x7 -.PB0f1021a0: -/* f1021a0: 2401ffff */ li $at,-1 -/* f1021a4: 14610004 */ bne $v1,$at,.PB0f1021b8 -/* f1021a8: 3c018000 */ lui $at,0x8000 -/* f1021ac: 14410002 */ bne $v0,$at,.PB0f1021b8 -/* f1021b0: 00000000 */ nop -/* f1021b4: 0006000d */ break 0x6 -.PB0f1021b8: -/* f1021b8: 46805420 */ cvt.s.w $f16,$f10 -/* f1021bc: 14600002 */ bnez $v1,.PB0f1021c8 -/* f1021c0: 00000000 */ nop -/* f1021c4: 0007000d */ break 0x7 -.PB0f1021c8: -/* f1021c8: 2401ffff */ li $at,-1 -/* f1021cc: 14610004 */ bne $v1,$at,.PB0f1021e0 -/* f1021d0: 3c018000 */ lui $at,0x8000 -/* f1021d4: 16210002 */ bne $s1,$at,.PB0f1021e0 -/* f1021d8: 00000000 */ nop -/* f1021dc: 0006000d */ break 0x6 -.PB0f1021e0: -/* f1021e0: 46008182 */ mul.s $f6,$f16,$f0 -/* f1021e4: 4600348d */ trunc.w.s $f18,$f6 -/* f1021e8: 46001102 */ mul.s $f4,$f2,$f0 -/* f1021ec: 44199000 */ mfc1 $t9,$f18 -/* f1021f0: 00000000 */ nop -/* f1021f4: 03197821 */ addu $t7,$t8,$t9 -/* f1021f8: 4600220d */ trunc.w.s $f8,$f4 -/* f1021fc: 44184000 */ mfc1 $t8,$f8 -/* f102200: 00000000 */ nop -/* f102204: 01f8c823 */ subu $t9,$t7,$t8 -/* f102208: 03328021 */ addu $s0,$t9,$s2 -/* f10220c: 3c013e80 */ lui $at,0x3e80 -.PB0f102210: -/* f102210: 44815000 */ mtc1 $at,$f10 -/* f102214: 44800000 */ mtc1 $zero,$f0 -/* f102218: c7b20100 */ lwc1 $f18,0x100($sp) -/* f10221c: 460a1402 */ mul.s $f16,$f2,$f10 -/* f102220: 4600903c */ c.lt.s $f18,$f0 -/* f102224: 4600818d */ trunc.w.s $f6,$f16 -/* f102228: 44123000 */ mfc1 $s2,$f6 -/* f10222c: 00000000 */ nop -/* f102230: 2652ffff */ addiu $s2,$s2,-1 -/* f102234: 02128821 */ addu $s1,$s0,$s2 -/* f102238: 45000002 */ bc1f .PB0f102244 -/* f10223c: 26330002 */ addiu $s3,$s1,0x2 -/* f102240: e7a00100 */ swc1 $f0,0x100($sp) -.PB0f102244: -/* f102244: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f102248: 3c19e700 */ lui $t9,0xe700 -/* f10224c: 25f80008 */ addiu $t8,$t7,0x8 -/* f102250: afb801d8 */ sw $t8,0x1d8($sp) -/* f102254: ade00004 */ sw $zero,0x4($t7) -/* f102258: adf90000 */ sw $t9,0x0($t7) -/* f10225c: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f102260: 3c18ba00 */ lui $t8,0xba00 -/* f102264: 37181402 */ ori $t8,$t8,0x1402 -/* f102268: 25cf0008 */ addiu $t7,$t6,0x8 -/* f10226c: afaf01d8 */ sw $t7,0x1d8($sp) -/* f102270: adc00004 */ sw $zero,0x4($t6) -/* f102274: add80000 */ sw $t8,0x0($t6) -/* f102278: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f10227c: 3c180050 */ lui $t8,0x50 -/* f102280: 3c0fb900 */ lui $t7,0xb900 -/* f102284: 272e0008 */ addiu $t6,$t9,0x8 -/* f102288: afae01d8 */ sw $t6,0x1d8($sp) -/* f10228c: 35ef031d */ ori $t7,$t7,0x31d -/* f102290: 37184240 */ ori $t8,$t8,0x4240 -/* f102294: af380004 */ sw $t8,0x4($t9) -/* f102298: af2f0000 */ sw $t7,0x0($t9) -/* f10229c: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f1022a0: 3c0ffcff */ lui $t7,0xfcff -/* f1022a4: 3c18fffd */ lui $t8,0xfffd -/* f1022a8: 272e0008 */ addiu $t6,$t9,0x8 -/* f1022ac: afae01d8 */ sw $t6,0x1d8($sp) -/* f1022b0: 3718f6fb */ ori $t8,$t8,0xf6fb -/* f1022b4: 35efffff */ ori $t7,$t7,0xffff -/* f1022b8: af2f0000 */ sw $t7,0x0($t9) -/* f1022bc: af380004 */ sw $t8,0x4($t9) -/* f1022c0: 0c002e71 */ jal viGetViewHeight -/* f1022c4: e7a20068 */ swc1 $f2,0x68($sp) -/* f1022c8: 0002a400 */ sll $s4,$v0,0x10 -/* f1022cc: 0014cc03 */ sra $t9,$s4,0x10 -/* f1022d0: 0c002e8f */ jal viGetViewTop -/* f1022d4: 0320a025 */ move $s4,$t9 -/* f1022d8: 3c04800a */ lui $a0,0x800a -/* f1022dc: 2484e4d0 */ addiu $a0,$a0,-6960 -/* f1022e0: 8c8e006c */ lw $t6,0x6c($a0) -/* f1022e4: c7a20068 */ lwc1 $f2,0x68($sp) -/* f1022e8: 00001825 */ move $v1,$zero -/* f1022ec: 11c00003 */ beqz $t6,.PB0f1022fc -/* f1022f0: 00003025 */ move $a2,$zero -/* f1022f4: 10000001 */ b .PB0f1022fc -/* f1022f8: 24030001 */ li $v1,0x1 -.PB0f1022fc: -/* f1022fc: 8c8f0068 */ lw $t7,0x68($a0) -/* f102300: 00002825 */ move $a1,$zero -/* f102304: 11e00003 */ beqz $t7,.PB0f102314 -/* f102308: 00000000 */ nop -/* f10230c: 10000001 */ b .PB0f102314 -/* f102310: 24060001 */ li $a2,0x1 -.PB0f102314: -/* f102314: 8c980064 */ lw $t8,0x64($a0) -/* f102318: 3c0cfa00 */ lui $t4,0xfa00 -/* f10231c: 13000003 */ beqz $t8,.PB0f10232c -/* f102320: 00000000 */ nop -/* f102324: 10000001 */ b .PB0f10232c -/* f102328: 24050001 */ li $a1,0x1 -.PB0f10232c: -/* f10232c: 8c990070 */ lw $t9,0x70($a0) -/* f102330: 00002025 */ move $a0,$zero -/* f102334: c7a80100 */ lwc1 $f8,0x100($sp) -/* f102338: 13200003 */ beqz $t9,.PB0f102348 -/* f10233c: 00000000 */ nop -/* f102340: 10000001 */ b .PB0f102348 -/* f102344: 24040001 */ li $a0,0x1 -.PB0f102348: -/* f102348: 00857021 */ addu $t6,$a0,$a1 -/* f10234c: 01c67821 */ addu $t7,$t6,$a2 -/* f102350: 01e3c021 */ addu $t8,$t7,$v1 -/* f102354: 2b010002 */ slti $at,$t8,0x2 -/* f102358: 14200003 */ bnez $at,.PB0f102368 -/* f10235c: 0002cc00 */ sll $t9,$v0,0x10 -/* f102360: 10000002 */ b .PB0f10236c -/* f102364: 24030013 */ li $v1,0x13 -.PB0f102368: -/* f102368: 24030022 */ li $v1,0x22 -.PB0f10236c: -/* f10236c: 00197403 */ sra $t6,$t9,0x10 -/* f102370: 01d47821 */ addu $t7,$t6,$s4 -/* f102374: 13c0005e */ beqz $s8,.PB0f1024f0 -/* f102378: 01e33823 */ subu $a3,$t7,$v1 -/* f10237c: 44928000 */ mtc1 $s2,$f16 -/* f102380: 3c013e80 */ lui $at,0x3e80 -/* f102384: 44812000 */ mtc1 $at,$f4 -/* f102388: 468081a0 */ cvt.s.w $f6,$f16 -/* f10238c: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f102390: 3c014080 */ lui $at,0x4080 -/* f102394: 3c18ff00 */ lui $t8,0xff00 -/* f102398: 25cf0008 */ addiu $t7,$t6,0x8 -/* f10239c: 46082281 */ sub.s $f10,$f4,$f8 -/* f1023a0: 44812000 */ mtc1 $at,$f4 -/* f1023a4: afaf01d8 */ sw $t7,0x1d8($sp) -/* f1023a8: 3c0b8008 */ lui $t3,0x8008 -/* f1023ac: 460a3482 */ mul.s $f18,$f6,$f10 -/* f1023b0: 3c0cfa00 */ lui $t4,0xfa00 -/* f1023b4: 37180060 */ ori $t8,$t8,0x60 -/* f1023b8: 256b1f90 */ addiu $t3,$t3,0x1f90 -/* f1023bc: add80004 */ sw $t8,0x4($t6) -/* f1023c0: adcc0000 */ sw $t4,0x0($t6) -/* f1023c4: 8d780000 */ lw $t8,0x0($t3) -/* f1023c8: 46049202 */ mul.s $f8,$f18,$f4 -/* f1023cc: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f1023d0: 02380019 */ multu $s1,$t8 -/* f1023d4: 00f54821 */ addu $t1,$a3,$s5 -/* f1023d8: 312303ff */ andi $v1,$t1,0x3ff -/* f1023dc: 24ae0008 */ addiu $t6,$a1,0x8 -/* f1023e0: afae01d8 */ sw $t6,0x1d8($sp) -/* f1023e4: 4600440d */ trunc.w.s $f16,$f8 -/* f1023e8: 00037880 */ sll $t7,$v1,0x2 -/* f1023ec: 01e01825 */ move $v1,$t7 -/* f1023f0: 30e203ff */ andi $v0,$a3,0x3ff -/* f1023f4: 44198000 */ mfc1 $t9,$f16 -/* f1023f8: 3c078008 */ lui $a3,0x8008 -/* f1023fc: 240d0080 */ li $t5,0x80 -/* f102400: 02393023 */ subu $a2,$s1,$t9 -/* f102404: 0000c812 */ mflo $t9 -/* f102408: 332e03ff */ andi $t6,$t9,0x3ff -/* f10240c: 000e7b80 */ sll $t7,$t6,0xe -/* f102410: 01f6c025 */ or $t8,$t7,$s6 -/* f102414: 0303c825 */ or $t9,$t8,$v1 -/* f102418: acb90000 */ sw $t9,0x0($a1) -/* f10241c: 8d6f0000 */ lw $t7,0x0($t3) -/* f102420: 00027080 */ sll $t6,$v0,0x2 -/* f102424: 01c01025 */ move $v0,$t6 -/* f102428: 00cf0019 */ multu $a2,$t7 -/* f10242c: 24e71f90 */ addiu $a3,$a3,0x1f90 -/* f102430: 0000c012 */ mflo $t8 -/* f102434: 331903ff */ andi $t9,$t8,0x3ff -/* f102438: 00197380 */ sll $t6,$t9,0xe -/* f10243c: 01c27825 */ or $t7,$t6,$v0 -/* f102440: acaf0004 */ sw $t7,0x4($a1) -/* f102444: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f102448: 27190008 */ addiu $t9,$t8,0x8 -/* f10244c: afb901d8 */ sw $t9,0x1d8($sp) -/* f102450: af0d0004 */ sw $t5,0x4($t8) -/* f102454: af0c0000 */ sw $t4,0x0($t8) -/* f102458: 8cf80000 */ lw $t8,0x0($a3) -/* f10245c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f102460: 00d80019 */ multu $a2,$t8 -/* f102464: 248f0008 */ addiu $t7,$a0,0x8 -/* f102468: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10246c: 02173021 */ addu $a2,$s0,$s7 -/* f102470: 0000c812 */ mflo $t9 -/* f102474: 332e03ff */ andi $t6,$t9,0x3ff -/* f102478: 000e7b80 */ sll $t7,$t6,0xe -/* f10247c: 01f6c025 */ or $t8,$t7,$s6 -/* f102480: 0303c825 */ or $t9,$t8,$v1 -/* f102484: ac990000 */ sw $t9,0x0($a0) -/* f102488: 8cee0000 */ lw $t6,0x0($a3) -/* f10248c: 020e0019 */ multu $s0,$t6 -/* f102490: 00007812 */ mflo $t7 -/* f102494: 31f803ff */ andi $t8,$t7,0x3ff -/* f102498: 0018cb80 */ sll $t9,$t8,0xe -/* f10249c: 03227025 */ or $t6,$t9,$v0 -/* f1024a0: ac8e0004 */ sw $t6,0x4($a0) -/* f1024a4: 8cf90000 */ lw $t9,0x0($a3) -/* f1024a8: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f1024ac: 00d90019 */ multu $a2,$t9 -/* f1024b0: 24b80008 */ addiu $t8,$a1,0x8 -/* f1024b4: afb801d8 */ sw $t8,0x1d8($sp) -/* f1024b8: 00007012 */ mflo $t6 -/* f1024bc: 31cf03ff */ andi $t7,$t6,0x3ff -/* f1024c0: 000fc380 */ sll $t8,$t7,0xe -/* f1024c4: 0316c825 */ or $t9,$t8,$s6 -/* f1024c8: 03237025 */ or $t6,$t9,$v1 -/* f1024cc: acae0000 */ sw $t6,0x0($a1) -/* f1024d0: 8cef0000 */ lw $t7,0x0($a3) -/* f1024d4: 026f0019 */ multu $s3,$t7 -/* f1024d8: 0000c012 */ mflo $t8 -/* f1024dc: 331903ff */ andi $t9,$t8,0x3ff -/* f1024e0: 00197380 */ sll $t6,$t9,0xe -/* f1024e4: 01c27825 */ or $t7,$t6,$v0 -/* f1024e8: 10000059 */ b .PB0f102650 -/* f1024ec: acaf0004 */ sw $t7,0x4($a1) -.PB0f1024f0: -/* f1024f0: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f1024f4: 3c0e00c0 */ lui $t6,0xc0 -/* f1024f8: 35ce0060 */ ori $t6,$t6,0x60 -/* f1024fc: 27190008 */ addiu $t9,$t8,0x8 -/* f102500: afb901d8 */ sw $t9,0x1d8($sp) -/* f102504: af0e0004 */ sw $t6,0x4($t8) -/* f102508: 3c0e8008 */ lui $t6,0x8008 -/* f10250c: af0c0000 */ sw $t4,0x0($t8) -/* f102510: 8dce1f90 */ lw $t6,0x1f90($t6) -/* f102514: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f102518: 00f54821 */ addu $t1,$a3,$s5 -/* f10251c: 022e0019 */ multu $s1,$t6 -/* f102520: 312303ff */ andi $v1,$t1,0x3ff -/* f102524: 24b80008 */ addiu $t8,$a1,0x8 -/* f102528: afb801d8 */ sw $t8,0x1d8($sp) -/* f10252c: 0003c880 */ sll $t9,$v1,0x2 -/* f102530: 03201825 */ move $v1,$t9 -/* f102534: 30e203ff */ andi $v0,$a3,0x3ff -/* f102538: 240d0080 */ li $t5,0x80 -/* f10253c: 00007812 */ mflo $t7 -/* f102540: 31f803ff */ andi $t8,$t7,0x3ff -/* f102544: 0018cb80 */ sll $t9,$t8,0xe -/* f102548: 03367025 */ or $t6,$t9,$s6 -/* f10254c: 01c37825 */ or $t7,$t6,$v1 -/* f102550: 3c198008 */ lui $t9,0x8008 -/* f102554: acaf0000 */ sw $t7,0x0($a1) -/* f102558: 8f391f90 */ lw $t9,0x1f90($t9) -/* f10255c: 0002c080 */ sll $t8,$v0,0x2 -/* f102560: 03001025 */ move $v0,$t8 -/* f102564: 02190019 */ multu $s0,$t9 -/* f102568: 00007012 */ mflo $t6 -/* f10256c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f102570: 000fc380 */ sll $t8,$t7,0xe -/* f102574: 0302c825 */ or $t9,$t8,$v0 -/* f102578: acb90004 */ sw $t9,0x4($a1) -/* f10257c: c7a60100 */ lwc1 $f6,0x100($sp) -/* f102580: 3c0e8008 */ lui $t6,0x8008 -/* f102584: 8dce1f90 */ lw $t6,0x1f90($t6) -/* f102588: 46061282 */ mul.s $f10,$f2,$f6 -/* f10258c: 8faa01d8 */ lw $t2,0x1d8($sp) -/* f102590: 25590008 */ addiu $t9,$t2,0x8 -/* f102594: afb901d8 */ sw $t9,0x1d8($sp) -/* f102598: 4600548d */ trunc.w.s $f18,$f10 -/* f10259c: 440f9000 */ mfc1 $t7,$f18 -/* f1025a0: 00000000 */ nop -/* f1025a4: 01f03021 */ addu $a2,$t7,$s0 -/* f1025a8: 00ce0019 */ multu $a2,$t6 -/* f1025ac: 00c04025 */ move $t0,$a2 -/* f1025b0: 02173021 */ addu $a2,$s0,$s7 -/* f1025b4: 00007812 */ mflo $t7 -/* f1025b8: 31f803ff */ andi $t8,$t7,0x3ff -/* f1025bc: 0018cb80 */ sll $t9,$t8,0xe -/* f1025c0: 03367025 */ or $t6,$t9,$s6 -/* f1025c4: 01c37825 */ or $t7,$t6,$v1 -/* f1025c8: 3c188008 */ lui $t8,0x8008 -/* f1025cc: ad4f0000 */ sw $t7,0x0($t2) -/* f1025d0: 8f181f90 */ lw $t8,0x1f90($t8) -/* f1025d4: 02780019 */ multu $s3,$t8 -/* f1025d8: 0000c812 */ mflo $t9 -/* f1025dc: 332e03ff */ andi $t6,$t9,0x3ff -/* f1025e0: 000e7b80 */ sll $t7,$t6,0xe -/* f1025e4: 01e2c025 */ or $t8,$t7,$v0 -/* f1025e8: ad580004 */ sw $t8,0x4($t2) -/* f1025ec: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f1025f0: 272e0008 */ addiu $t6,$t9,0x8 -/* f1025f4: afae01d8 */ sw $t6,0x1d8($sp) -/* f1025f8: af2d0004 */ sw $t5,0x4($t9) -/* f1025fc: af2c0000 */ sw $t4,0x0($t9) -/* f102600: 3c198008 */ lui $t9,0x8008 -/* f102604: 8f391f90 */ lw $t9,0x1f90($t9) -/* f102608: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f10260c: 00d90019 */ multu $a2,$t9 -/* f102610: 24b80008 */ addiu $t8,$a1,0x8 -/* f102614: afb801d8 */ sw $t8,0x1d8($sp) -/* f102618: 00007012 */ mflo $t6 -/* f10261c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f102620: 000fc380 */ sll $t8,$t7,0xe -/* f102624: 0316c825 */ or $t9,$t8,$s6 -/* f102628: 03237025 */ or $t6,$t9,$v1 -/* f10262c: 3c0f8008 */ lui $t7,0x8008 -/* f102630: acae0000 */ sw $t6,0x0($a1) -/* f102634: 8def1f90 */ lw $t7,0x1f90($t7) -/* f102638: 010f0019 */ multu $t0,$t7 -/* f10263c: 0000c012 */ mflo $t8 -/* f102640: 331903ff */ andi $t9,$t8,0x3ff -/* f102644: 00197380 */ sll $t6,$t9,0xe -/* f102648: 01c27825 */ or $t7,$t6,$v0 -/* f10264c: acaf0004 */ sw $t7,0x4($a1) -.PB0f102650: -/* f102650: 44952000 */ mtc1 $s5,$f4 -/* f102654: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f102658: 3c013f40 */ lui $at,0x3f40 -/* f10265c: 46802220 */ cvt.s.w $f8,$f4 -/* f102660: 272e0008 */ addiu $t6,$t9,0x8 -/* f102664: 44818000 */ mtc1 $at,$f16 -/* f102668: afae01d8 */ sw $t6,0x1d8($sp) -/* f10266c: 3c0f00c0 */ lui $t7,0xc0 -/* f102670: 35ef0060 */ ori $t7,$t7,0x60 -/* f102674: af2f0004 */ sw $t7,0x4($t9) -/* f102678: af2c0000 */ sw $t4,0x0($t9) -/* f10267c: 46104182 */ mul.s $f6,$f8,$f16 -/* f102680: c7b200fc */ lwc1 $f18,0xfc($sp) -/* f102684: 3c1f8008 */ lui $ra,0x8008 -/* f102688: 27ff1f90 */ addiu $ra,$ra,0x1f90 -/* f10268c: 46121102 */ mul.s $f4,$f2,$f18 -/* f102690: 8fee0000 */ lw $t6,0x0($ra) -/* f102694: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f102698: 25250002 */ addiu $a1,$t1,0x2 -/* f10269c: 30aa03ff */ andi $t2,$a1,0x3ff -/* f1026a0: 248f0008 */ addiu $t7,$a0,0x8 -/* f1026a4: 4600328d */ trunc.w.s $f10,$f6 -/* f1026a8: afaf01d8 */ sw $t7,0x1d8($sp) -/* f1026ac: 3c038008 */ lui $v1,0x8008 -/* f1026b0: 4600220d */ trunc.w.s $f8,$f4 -/* f1026b4: 44155000 */ mfc1 $s5,$f10 -/* f1026b8: 24631f90 */ addiu $v1,$v1,0x1f90 -/* f1026bc: 44194000 */ mfc1 $t9,$f8 -/* f1026c0: 00b53821 */ addu $a3,$a1,$s5 -/* f1026c4: 30f803ff */ andi $t8,$a3,0x3ff -/* f1026c8: 03304021 */ addu $t0,$t9,$s0 -/* f1026cc: 010e0019 */ multu $t0,$t6 -/* f1026d0: 00183880 */ sll $a3,$t8,0x2 -/* f1026d4: 00007812 */ mflo $t7 -/* f1026d8: 31f803ff */ andi $t8,$t7,0x3ff -/* f1026dc: 0018cb80 */ sll $t9,$t8,0xe -/* f1026e0: 03367025 */ or $t6,$t9,$s6 -/* f1026e4: 01c77825 */ or $t7,$t6,$a3 -/* f1026e8: ac8f0000 */ sw $t7,0x0($a0) -/* f1026ec: 8ff90000 */ lw $t9,0x0($ra) -/* f1026f0: 000ac080 */ sll $t8,$t2,0x2 -/* f1026f4: 03005025 */ move $t2,$t8 -/* f1026f8: 02190019 */ multu $s0,$t9 -/* f1026fc: 00007012 */ mflo $t6 -/* f102700: 31cf03ff */ andi $t7,$t6,0x3ff -/* f102704: 000fc380 */ sll $t8,$t7,0xe -/* f102708: 030ac825 */ or $t9,$t8,$t2 -/* f10270c: ac990004 */ sw $t9,0x4($a0) -/* f102710: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f102714: 25cf0008 */ addiu $t7,$t6,0x8 -/* f102718: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10271c: adcd0004 */ sw $t5,0x4($t6) -/* f102720: adcc0000 */ sw $t4,0x0($t6) -/* f102724: 8c6e0000 */ lw $t6,0x0($v1) -/* f102728: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f10272c: 00ce0019 */ multu $a2,$t6 -/* f102730: 24590008 */ addiu $t9,$v0,0x8 -/* f102734: afb901d8 */ sw $t9,0x1d8($sp) -/* f102738: 00007812 */ mflo $t7 -/* f10273c: 31f803ff */ andi $t8,$t7,0x3ff -/* f102740: 0018cb80 */ sll $t9,$t8,0xe -/* f102744: 03367025 */ or $t6,$t9,$s6 -/* f102748: 01c77825 */ or $t7,$t6,$a3 -/* f10274c: ac4f0000 */ sw $t7,0x0($v0) -/* f102750: 8c780000 */ lw $t8,0x0($v1) -/* f102754: 01180019 */ multu $t0,$t8 -/* f102758: 0000c812 */ mflo $t9 -/* f10275c: 332e03ff */ andi $t6,$t9,0x3ff -/* f102760: 000e7b80 */ sll $t7,$t6,0xe -/* f102764: 01eac025 */ or $t8,$t7,$t2 -/* f102768: ac580004 */ sw $t8,0x4($v0) -/* f10276c: 8fbf004c */ lw $ra,0x4c($sp) -.PB0f102770: -/* f102770: 24190001 */ li $t9,0x1 -/* f102774: 3c018008 */ lui $at,0x8008 -/* f102778: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f10277c: 8fb00028 */ lw $s0,0x28($sp) -/* f102780: 8fb1002c */ lw $s1,0x2c($sp) -/* f102784: 8fb20030 */ lw $s2,0x30($sp) -/* f102788: 8fb30034 */ lw $s3,0x34($sp) -/* f10278c: 8fb40038 */ lw $s4,0x38($sp) -/* f102790: 8fb5003c */ lw $s5,0x3c($sp) -/* f102794: 8fb60040 */ lw $s6,0x40($sp) -/* f102798: 8fb70044 */ lw $s7,0x44($sp) -/* f10279c: 8fbe0048 */ lw $s8,0x48($sp) -/* f1027a0: ac391f90 */ sw $t9,0x1f90($at) -/* f1027a4: 03e00008 */ jr $ra -/* f1027a8: 27bd01d8 */ addiu $sp,$sp,0x1d8 -); -#elif VERSION >= VERSION_NTSC_1_0 -GLOBAL_ASM( -glabel amRender -/* f100ad0: 27bdfe28 */ addiu $sp,$sp,-472 -/* f100ad4: 3c0e8007 */ lui $t6,%hi(g_ViRes) -/* f100ad8: 8dce06c8 */ lw $t6,%lo(g_ViRes)($t6) -/* f100adc: 24010001 */ addiu $at,$zero,0x1 -/* f100ae0: afbf004c */ sw $ra,0x4c($sp) -/* f100ae4: afbe0048 */ sw $s8,0x48($sp) -/* f100ae8: afb70044 */ sw $s7,0x44($sp) -/* f100aec: afb60040 */ sw $s6,0x40($sp) -/* f100af0: afb5003c */ sw $s5,0x3c($sp) -/* f100af4: afb40038 */ sw $s4,0x38($sp) -/* f100af8: afb30034 */ sw $s3,0x34($sp) -/* f100afc: afb20030 */ sw $s2,0x30($sp) -/* f100b00: afb1002c */ sw $s1,0x2c($sp) -/* f100b04: afb00028 */ sw $s0,0x28($sp) -/* f100b08: 15c10005 */ bne $t6,$at,.L0f100b20 -/* f100b0c: afa401d8 */ sw $a0,0x1d8($sp) -/* f100b10: 240f0002 */ addiu $t7,$zero,0x2 -/* f100b14: 3c018008 */ lui $at,%hi(g_ScaleX) -/* f100b18: 10000004 */ b .L0f100b2c -/* f100b1c: ac2ffac0 */ sw $t7,%lo(g_ScaleX)($at) -.L0f100b20: -/* f100b20: 24180001 */ addiu $t8,$zero,0x1 -/* f100b24: 3c018008 */ lui $at,%hi(g_ScaleX) -/* f100b28: ac38fac0 */ sw $t8,%lo(g_ScaleX)($at) -.L0f100b2c: -/* f100b2c: 3c0b800a */ lui $t3,%hi(g_Vars) -/* f100b30: 256b9fc0 */ addiu $t3,$t3,%lo(g_Vars) -/* f100b34: 8d79028c */ lw $t9,0x28c($t3) -/* f100b38: 3c01800a */ lui $at,%hi(g_AmIndex) -/* f100b3c: ac3921b8 */ sw $t9,%lo(g_AmIndex)($at) -/* f100b40: 8d6e0284 */ lw $t6,0x284($t3) -/* f100b44: adc01c04 */ sw $zero,0x1c04($t6) -/* f100b48: 8d630284 */ lw $v1,0x284($t3) -/* f100b4c: 906f0250 */ lbu $t7,0x250($v1) -/* f100b50: 51e00353 */ beqzl $t7,.L0f1018a0 -/* f100b54: 8c621c04 */ lw $v0,0x1c04($v1) -/* f100b58: 0fc54d8a */ jal text0f153628 -/* f100b5c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f100b60: 3c08800a */ lui $t0,%hi(g_Vars) -/* f100b64: 25089fc0 */ addiu $t0,$t0,%lo(g_Vars) -/* f100b68: 8d180318 */ lw $t8,0x318($t0) -/* f100b6c: afa201d8 */ sw $v0,0x1d8($sp) -/* f100b70: 13000010 */ beqz $t8,.L0f100bb4 -/* f100b74: 3c19800a */ lui $t9,%hi(g_AmIndex) -/* f100b78: 8f3921b8 */ lw $t9,%lo(g_AmIndex)($t9) -/* f100b7c: 241e0038 */ addiu $s8,$zero,0x38 -/* f100b80: 3c17800a */ lui $s7,%hi(g_AmMenus) -/* f100b84: 033e0019 */ multu $t9,$s8 -/* f100b88: 26f720d0 */ addiu $s7,$s7,%lo(g_AmMenus) -/* f100b8c: 00007012 */ mflo $t6 -/* f100b90: 02ee7821 */ addu $t7,$s7,$t6 -/* f100b94: 81e20000 */ lb $v0,0x0($t7) -/* f100b98: 28410002 */ slti $at,$v0,0x2 -/* f100b9c: 14200005 */ bnez $at,.L0f100bb4 -/* f100ba0: 00000000 */ nop -/* f100ba4: 8d180284 */ lw $t8,0x284($t0) -/* f100ba8: 0302c821 */ addu $t9,$t8,$v0 -/* f100bac: 932e1be5 */ lbu $t6,0x1be5($t9) -/* f100bb0: afae01c4 */ sw $t6,0x1c4($sp) -.L0f100bb4: -/* f100bb4: 3c0f800a */ lui $t7,%hi(g_AmIndex) -/* f100bb8: 8def21b8 */ lw $t7,%lo(g_AmIndex)($t7) -/* f100bbc: 241e0038 */ addiu $s8,$zero,0x38 -/* f100bc0: 3c17800a */ lui $s7,%hi(g_AmMenus) -/* f100bc4: 01fe0019 */ multu $t7,$s8 -/* f100bc8: 26f720d0 */ addiu $s7,$s7,%lo(g_AmMenus) -/* f100bcc: 2401ff85 */ addiu $at,$zero,-123 -/* f100bd0: 0000c012 */ mflo $t8 -/* f100bd4: 02f88021 */ addu $s0,$s7,$t8 -/* f100bd8: 8619000a */ lh $t9,0xa($s0) -/* f100bdc: 57210021 */ bnel $t9,$at,.L0f100c64 -/* f100be0: 9202000e */ lbu $v0,0xe($s0) -/* f100be4: 9202000e */ lbu $v0,0xe($s0) -/* f100be8: 24030003 */ addiu $v1,$zero,0x3 -/* f100bec: 26060006 */ addiu $a2,$s0,0x6 -/* f100bf0: 0043001a */ div $zero,$v0,$v1 -/* f100bf4: 00002010 */ mfhi $a0 -/* f100bf8: 00002812 */ mflo $a1 -/* f100bfc: 0005c400 */ sll $t8,$a1,0x10 -/* f100c00: 00047400 */ sll $t6,$a0,0x10 -/* f100c04: 14600002 */ bnez $v1,.L0f100c10 -/* f100c08: 00000000 */ nop -/* f100c0c: 0007000d */ break 0x7 -.L0f100c10: -/* f100c10: 2401ffff */ addiu $at,$zero,-1 -/* f100c14: 14610004 */ bne $v1,$at,.L0f100c28 -/* f100c18: 3c018000 */ lui $at,0x8000 -/* f100c1c: 14410002 */ bne $v0,$at,.L0f100c28 -/* f100c20: 00000000 */ nop -/* f100c24: 0006000d */ break 0x6 -.L0f100c28: -/* f100c28: 000e2403 */ sra $a0,$t6,0x10 -/* f100c2c: 00182c03 */ sra $a1,$t8,0x10 -/* f100c30: 0fc3fc9d */ jal amCalculateSlotPosition -/* f100c34: 26070008 */ addiu $a3,$s0,0x8 -/* f100c38: 3c0e800a */ lui $t6,%hi(g_AmIndex) -/* f100c3c: 8dce21b8 */ lw $t6,%lo(g_AmIndex)($t6) -/* f100c40: 01de0019 */ multu $t6,$s8 -/* f100c44: 00007812 */ mflo $t7 -/* f100c48: 02ef8021 */ addu $s0,$s7,$t7 -/* f100c4c: 86180006 */ lh $t8,0x6($s0) -/* f100c50: 86190008 */ lh $t9,0x8($s0) -/* f100c54: a618000a */ sh $t8,0xa($s0) -/* f100c58: 1000000d */ b .L0f100c90 -/* f100c5c: a619000c */ sh $t9,0xc($s0) -/* f100c60: 9202000e */ lbu $v0,0xe($s0) -.L0f100c64: -/* f100c64: 24010003 */ addiu $at,$zero,0x3 -/* f100c68: 2606000a */ addiu $a2,$s0,0xa -/* f100c6c: 0041001a */ div $zero,$v0,$at -/* f100c70: 00002010 */ mfhi $a0 -/* f100c74: 00002812 */ mflo $a1 -/* f100c78: 0005c400 */ sll $t8,$a1,0x10 -/* f100c7c: 00047400 */ sll $t6,$a0,0x10 -/* f100c80: 000e2403 */ sra $a0,$t6,0x10 -/* f100c84: 00182c03 */ sra $a1,$t8,0x10 -/* f100c88: 0fc3fc9d */ jal amCalculateSlotPosition -/* f100c8c: 2607000c */ addiu $a3,$s0,0xc -.L0f100c90: -/* f100c90: 0fc351e7 */ jal func0f0d479c -/* f100c94: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f100c98: afa201d8 */ sw $v0,0x1d8($sp) -/* f100c9c: 0fc59e73 */ jal gfxAllocateColours -/* f100ca0: 24040002 */ addiu $a0,$zero,0x2 -/* f100ca4: 0040a825 */ or $s5,$v0,$zero -/* f100ca8: 0fc59e59 */ jal gfxAllocateVertices -/* f100cac: 24040008 */ addiu $a0,$zero,0x8 -/* f100cb0: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f100cb4: 3c18e700 */ lui $t8,0xe700 -/* f100cb8: 00408025 */ or $s0,$v0,$zero -/* f100cbc: 25cf0008 */ addiu $t7,$t6,0x8 -/* f100cc0: afaf01d8 */ sw $t7,0x1d8($sp) -/* f100cc4: adc00004 */ sw $zero,0x4($t6) -/* f100cc8: add80000 */ sw $t8,0x0($t6) -/* f100ccc: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f100cd0: 3c0fba00 */ lui $t7,0xba00 -/* f100cd4: 35ef1402 */ ori $t7,$t7,0x1402 -/* f100cd8: 272e0008 */ addiu $t6,$t9,0x8 -/* f100cdc: afae01d8 */ sw $t6,0x1d8($sp) -/* f100ce0: af200004 */ sw $zero,0x4($t9) -/* f100ce4: af2f0000 */ sw $t7,0x0($t9) -/* f100ce8: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f100cec: 3c0eb900 */ lui $t6,0xb900 -/* f100cf0: 35ce0002 */ ori $t6,$t6,0x2 -/* f100cf4: 27190008 */ addiu $t9,$t8,0x8 -/* f100cf8: afb901d8 */ sw $t9,0x1d8($sp) -/* f100cfc: af000004 */ sw $zero,0x4($t8) -/* f100d00: af0e0000 */ sw $t6,0x0($t8) -/* f100d04: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f100d08: 3c19ba00 */ lui $t9,0xba00 -/* f100d0c: 37390402 */ ori $t9,$t9,0x402 -/* f100d10: 25f80008 */ addiu $t8,$t7,0x8 -/* f100d14: afb801d8 */ sw $t8,0x1d8($sp) -/* f100d18: 240e0020 */ addiu $t6,$zero,0x20 -/* f100d1c: adee0004 */ sw $t6,0x4($t7) -/* f100d20: adf90000 */ sw $t9,0x0($t7) -/* f100d24: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f100d28: 3c19fc12 */ lui $t9,0xfc12 -/* f100d2c: 37397e24 */ ori $t9,$t9,0x7e24 -/* f100d30: 25f80008 */ addiu $t8,$t7,0x8 -/* f100d34: afb801d8 */ sw $t8,0x1d8($sp) -/* f100d38: 240ef9fc */ addiu $t6,$zero,-1540 -/* f100d3c: adee0004 */ sw $t6,0x4($t7) -/* f100d40: adf90000 */ sw $t9,0x0($t7) -/* f100d44: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f100d48: 3c19b600 */ lui $t9,0xb600 -/* f100d4c: 240e3000 */ addiu $t6,$zero,0x3000 -/* f100d50: 25f80008 */ addiu $t8,$t7,0x8 -/* f100d54: afb801d8 */ sw $t8,0x1d8($sp) -/* f100d58: adee0004 */ sw $t6,0x4($t7) -/* f100d5c: adf90000 */ sw $t9,0x0($t7) -/* f100d60: 240f0002 */ addiu $t7,$zero,0x2 -/* f100d64: 24180001 */ addiu $t8,$zero,0x1 -/* f100d68: afb80014 */ sw $t8,0x14($sp) -/* f100d6c: afaf0010 */ sw $t7,0x10($sp) -/* f100d70: afa00018 */ sw $zero,0x18($sp) -/* f100d74: 27a401d8 */ addiu $a0,$sp,0x1d8 -/* f100d78: 00002825 */ or $a1,$zero,$zero -/* f100d7c: 24060002 */ addiu $a2,$zero,0x2 -/* f100d80: 0fc2ce70 */ jal texSelect -/* f100d84: 00003825 */ or $a3,$zero,$zero -/* f100d88: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f100d8c: 3c0fb900 */ lui $t7,0xb900 -/* f100d90: 3c180050 */ lui $t8,0x50 -/* f100d94: 272e0008 */ addiu $t6,$t9,0x8 -/* f100d98: 27b301ba */ addiu $s3,$sp,0x1ba -/* f100d9c: 27b401b8 */ addiu $s4,$sp,0x1b8 -/* f100da0: afae01d8 */ sw $t6,0x1d8($sp) -/* f100da4: 37184240 */ ori $t8,$t8,0x4240 -/* f100da8: 35ef031d */ ori $t7,$t7,0x31d -/* f100dac: 02803825 */ or $a3,$s4,$zero -/* f100db0: 02603025 */ or $a2,$s3,$zero -/* f100db4: 24040001 */ addiu $a0,$zero,0x1 -/* f100db8: 00002825 */ or $a1,$zero,$zero -/* f100dbc: af2f0000 */ sw $t7,0x0($t9) -/* f100dc0: 0fc3fc9d */ jal amCalculateSlotPosition -/* f100dc4: af380004 */ sw $t8,0x4($t9) -/* f100dc8: 87b901ba */ lh $t9,0x1ba($sp) -/* f100dcc: 2411000a */ addiu $s1,$zero,0xa -/* f100dd0: 2412fff6 */ addiu $s2,$zero,-10 -/* f100dd4: 03310019 */ multu $t9,$s1 -/* f100dd8: 24040002 */ addiu $a0,$zero,0x2 -/* f100ddc: 24050001 */ addiu $a1,$zero,0x1 -/* f100de0: 02603025 */ or $a2,$s3,$zero -/* f100de4: 02803825 */ or $a3,$s4,$zero -/* f100de8: 00007012 */ mflo $t6 -/* f100dec: a60e0000 */ sh $t6,0x0($s0) -/* f100df0: 87af01b8 */ lh $t7,0x1b8($sp) -/* f100df4: a6120004 */ sh $s2,0x4($s0) -/* f100df8: 01f10019 */ multu $t7,$s1 -/* f100dfc: 0000c012 */ mflo $t8 -/* f100e00: a6180002 */ sh $t8,0x2($s0) -/* f100e04: 0fc3fc9d */ jal amCalculateSlotPosition -/* f100e08: 00000000 */ nop -/* f100e0c: 87b901ba */ lh $t9,0x1ba($sp) -/* f100e10: 24040001 */ addiu $a0,$zero,0x1 -/* f100e14: 24050002 */ addiu $a1,$zero,0x2 -/* f100e18: 03310019 */ multu $t9,$s1 -/* f100e1c: 02603025 */ or $a2,$s3,$zero -/* f100e20: 02803825 */ or $a3,$s4,$zero -/* f100e24: 00007012 */ mflo $t6 -/* f100e28: a60e000c */ sh $t6,0xc($s0) -/* f100e2c: 87af01b8 */ lh $t7,0x1b8($sp) -/* f100e30: a6120010 */ sh $s2,0x10($s0) -/* f100e34: 01f10019 */ multu $t7,$s1 -/* f100e38: 0000c012 */ mflo $t8 -/* f100e3c: a618000e */ sh $t8,0xe($s0) -/* f100e40: 0fc3fc9d */ jal amCalculateSlotPosition -/* f100e44: 00000000 */ nop -/* f100e48: 87b901ba */ lh $t9,0x1ba($sp) -/* f100e4c: 00002025 */ or $a0,$zero,$zero -/* f100e50: 24050001 */ addiu $a1,$zero,0x1 -/* f100e54: 03310019 */ multu $t9,$s1 -/* f100e58: 02603025 */ or $a2,$s3,$zero -/* f100e5c: 02803825 */ or $a3,$s4,$zero -/* f100e60: 00007012 */ mflo $t6 -/* f100e64: a60e0018 */ sh $t6,0x18($s0) -/* f100e68: 87af01b8 */ lh $t7,0x1b8($sp) -/* f100e6c: a612001c */ sh $s2,0x1c($s0) -/* f100e70: 01f10019 */ multu $t7,$s1 -/* f100e74: 0000c012 */ mflo $t8 -/* f100e78: a618001a */ sh $t8,0x1a($s0) -/* f100e7c: 0fc3fc9d */ jal amCalculateSlotPosition -/* f100e80: 00000000 */ nop -/* f100e84: 87b901ba */ lh $t9,0x1ba($sp) -/* f100e88: 8602000c */ lh $v0,0xc($s0) -/* f100e8c: 8607001a */ lh $a3,0x1a($s0) -/* f100e90: 03310019 */ multu $t9,$s1 -/* f100e94: 86030002 */ lh $v1,0x2($s0) -/* f100e98: 00e33023 */ subu $a2,$a3,$v1 -/* f100e9c: 00007012 */ mflo $t6 -/* f100ea0: a60e0024 */ sh $t6,0x24($s0) -/* f100ea4: 87af01b8 */ lh $t7,0x1b8($sp) -/* f100ea8: 86050024 */ lh $a1,0x24($s0) -/* f100eac: a6120028 */ sh $s2,0x28($s0) -/* f100eb0: 01f10019 */ multu $t7,$s1 -/* f100eb4: 00452023 */ subu $a0,$v0,$a1 -/* f100eb8: a6120034 */ sh $s2,0x34($s0) -/* f100ebc: a6120040 */ sh $s2,0x40($s0) -/* f100ec0: a612004c */ sh $s2,0x4c($s0) -/* f100ec4: a6120058 */ sh $s2,0x58($s0) -/* f100ec8: a2000007 */ sb $zero,0x7($s0) -/* f100ecc: a2000013 */ sb $zero,0x13($s0) -/* f100ed0: a200001f */ sb $zero,0x1f($s0) -/* f100ed4: a200002b */ sb $zero,0x2b($s0) -/* f100ed8: 0000c012 */ mflo $t8 -/* f100edc: a6180026 */ sh $t8,0x26($s0) -/* f100ee0: 04810003 */ bgez $a0,.L0f100ef0 -/* f100ee4: 0004c8c3 */ sra $t9,$a0,0x3 -/* f100ee8: 24810007 */ addiu $at,$a0,0x7 -/* f100eec: 0001c8c3 */ sra $t9,$at,0x3 -.L0f100ef0: -/* f100ef0: 00197400 */ sll $t6,$t9,0x10 -/* f100ef4: 000e7c03 */ sra $t7,$t6,0x10 -/* f100ef8: 01e02025 */ or $a0,$t7,$zero -/* f100efc: 860f0000 */ lh $t7,0x0($s0) -/* f100f00: 860e000e */ lh $t6,0xe($s0) -/* f100f04: 04c10003 */ bgez $a2,.L0f100f14 -/* f100f08: 0006c0c3 */ sra $t8,$a2,0x3 -/* f100f0c: 24c10007 */ addiu $at,$a2,0x7 -/* f100f10: 0001c0c3 */ sra $t8,$at,0x3 -.L0f100f14: -/* f100f14: 03003025 */ or $a2,$t8,$zero -/* f100f18: 0044c823 */ subu $t9,$v0,$a0 -/* f100f1c: a60f0030 */ sh $t7,0x30($s0) -/* f100f20: 860f0018 */ lh $t7,0x18($s0) -/* f100f24: 24020004 */ addiu $v0,$zero,0x4 -/* f100f28: 0066c021 */ addu $t8,$v1,$a2 -/* f100f2c: a60e003e */ sh $t6,0x3e($s0) -/* f100f30: 860e0026 */ lh $t6,0x26($s0) -/* f100f34: a6180032 */ sh $t8,0x32($s0) -/* f100f38: a619003c */ sh $t9,0x3c($s0) -/* f100f3c: 00e6c023 */ subu $t8,$a3,$a2 -/* f100f40: a618004a */ sh $t8,0x4a($s0) -/* f100f44: 00a4c821 */ addu $t9,$a1,$a0 -/* f100f48: a60f0048 */ sh $t7,0x48($s0) -/* f100f4c: a6190054 */ sh $t9,0x54($s0) -/* f100f50: a2020037 */ sb $v0,0x37($s0) -/* f100f54: a2020043 */ sb $v0,0x43($s0) -/* f100f58: a202004f */ sb $v0,0x4f($s0) -/* f100f5c: a202005b */ sb $v0,0x5b($s0) -/* f100f60: 3c0f2222 */ lui $t7,0x2222 -/* f100f64: a60e0056 */ sh $t6,0x56($s0) -/* f100f68: 35ef2200 */ ori $t7,$t7,0x2200 -/* f100f6c: 2418004f */ addiu $t8,$zero,0x4f -/* f100f70: aeaf0000 */ sw $t7,0x0($s5) -/* f100f74: aeb80004 */ sw $t8,0x4($s5) -/* f100f78: 8fb101d8 */ lw $s1,0x1d8($sp) -/* f100f7c: 3c0f0704 */ lui $t7,0x704 -/* f100f80: 35ef0008 */ ori $t7,$t7,0x8 -/* f100f84: 262e0008 */ addiu $t6,$s1,0x8 -/* f100f88: afae01d8 */ sw $t6,0x1d8($sp) -/* f100f8c: 02a02025 */ or $a0,$s5,$zero -/* f100f90: 0c012d20 */ jal osVirtualToPhysical -/* f100f94: ae2f0000 */ sw $t7,0x0($s1) -/* f100f98: ae220004 */ sw $v0,0x4($s1) -/* f100f9c: 8fb201d8 */ lw $s2,0x1d8($sp) -/* f100fa0: 3c0e0470 */ lui $t6,0x470 -/* f100fa4: 35ce0060 */ ori $t6,$t6,0x60 -/* f100fa8: 26590008 */ addiu $t9,$s2,0x8 -/* f100fac: afb901d8 */ sw $t9,0x1d8($sp) -/* f100fb0: 02002025 */ or $a0,$s0,$zero -/* f100fb4: 0c012d20 */ jal osVirtualToPhysical -/* f100fb8: ae4e0000 */ sw $t6,0x0($s2) -/* f100fbc: ae420004 */ sw $v0,0x4($s2) -/* f100fc0: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f100fc4: 3c19b100 */ lui $t9,0xb100 -/* f100fc8: 37390046 */ ori $t9,$t9,0x46 -/* f100fcc: 25f80008 */ addiu $t8,$t7,0x8 -/* f100fd0: afb801d8 */ sw $t8,0x1d8($sp) -/* f100fd4: 240e7654 */ addiu $t6,$zero,0x7654 -/* f100fd8: adee0004 */ sw $t6,0x4($t7) -/* f100fdc: adf90000 */ sw $t9,0x0($t7) -/* f100fe0: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f100fe4: 3c19b100 */ lui $t9,0xb100 -/* f100fe8: 3c0e4510 */ lui $t6,0x4510 -/* f100fec: 25f80008 */ addiu $t8,$t7,0x8 -/* f100ff0: afb801d8 */ sw $t8,0x1d8($sp) -/* f100ff4: 35ce3740 */ ori $t6,$t6,0x3740 -/* f100ff8: 37390507 */ ori $t9,$t9,0x507 -/* f100ffc: adf90000 */ sw $t9,0x0($t7) -/* f101000: adee0004 */ sw $t6,0x4($t7) -/* f101004: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f101008: 3c0e7326 */ lui $t6,0x7326 -/* f10100c: 3c19b100 */ lui $t9,0xb100 -/* f101010: 25f80008 */ addiu $t8,$t7,0x8 -/* f101014: afb801d8 */ sw $t8,0x1d8($sp) -/* f101018: 37396316 */ ori $t9,$t9,0x6316 -/* f10101c: 35ce5621 */ ori $t6,$t6,0x5621 -/* f101020: adee0004 */ sw $t6,0x4($t7) -/* f101024: adf90000 */ sw $t9,0x0($t7) -/* f101028: 0fc35272 */ jal func0f0d49c8 -/* f10102c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101030: 3c168007 */ lui $s6,%hi(var800719a0) -/* f101034: afa201d8 */ sw $v0,0x1d8($sp) -/* f101038: 26d619a0 */ addiu $s6,$s6,%lo(var800719a0) -/* f10103c: 00009825 */ or $s3,$zero,$zero -/* f101040: 27b5015c */ addiu $s5,$sp,0x15c -/* f101044: 00008825 */ or $s1,$zero,$zero -.L0f101048: -/* f101048: 00132400 */ sll $a0,$s3,0x10 -.L0f10104c: -/* f10104c: 00112c00 */ sll $a1,$s1,0x10 -/* f101050: 0005c403 */ sra $t8,$a1,0x10 -/* f101054: 00047c03 */ sra $t7,$a0,0x10 -/* f101058: 00008025 */ or $s0,$zero,$zero -/* f10105c: 01e02025 */ or $a0,$t7,$zero -/* f101060: 03002825 */ or $a1,$t8,$zero -/* f101064: 27a60182 */ addiu $a2,$sp,0x182 -/* f101068: 27a70180 */ addiu $a3,$sp,0x180 -/* f10106c: 0fc3fc9d */ jal amCalculateSlotPosition -/* f101070: 2414ffff */ addiu $s4,$zero,-1 -/* f101074: 3c0e800a */ lui $t6,%hi(g_AmIndex) -/* f101078: 8dce21b8 */ lw $t6,%lo(g_AmIndex)($t6) -/* f10107c: 0011c880 */ sll $t9,$s1,0x2 -/* f101080: 0331c823 */ subu $t9,$t9,$s1 -/* f101084: 01de0019 */ multu $t6,$s8 -/* f101088: 02799021 */ addu $s2,$s3,$t9 -/* f10108c: afa001d0 */ sw $zero,0x1d0($sp) -/* f101090: 3c0e800a */ lui $t6,%hi(g_MissionConfig+0x3) -/* f101094: 00007812 */ mflo $t7 -/* f101098: 02efc021 */ addu $t8,$s7,$t7 -/* f10109c: 9319000e */ lbu $t9,0xe($t8) -/* f1010a0: 16590002 */ bne $s2,$t9,.L0f1010ac -/* f1010a4: 00000000 */ nop -/* f1010a8: 24100001 */ addiu $s0,$zero,0x1 -.L0f1010ac: -/* f1010ac: 81cfdfeb */ lb $t7,%lo(g_MissionConfig+0x3)($t6) -/* f1010b0: 05e10029 */ bgez $t7,.L0f101158 -/* f1010b4: 00000000 */ nop -/* f1010b8: 0fc3f7a3 */ jal amGetFirstBuddyIndex -/* f1010bc: 00000000 */ nop -/* f1010c0: 04400025 */ bltz $v0,.L0f101158 -/* f1010c4: 00000000 */ nop -/* f1010c8: 16000042 */ bnez $s0,.L0f1011d4 -/* f1010cc: 3c18800a */ lui $t8,%hi(g_AmIndex) -/* f1010d0: 8f1821b8 */ lw $t8,%lo(g_AmIndex)($t8) -/* f1010d4: 031e0019 */ multu $t8,$s8 -/* f1010d8: 0002c080 */ sll $t8,$v0,0x2 -/* f1010dc: 0000c812 */ mflo $t9 -/* f1010e0: 02f97021 */ addu $t6,$s7,$t9 -/* f1010e4: 81cf0000 */ lb $t7,0x0($t6) -/* f1010e8: 3c19800a */ lui $t9,%hi(g_Vars+0x4b8) -/* f1010ec: 0338c821 */ addu $t9,$t9,$t8 -/* f1010f0: 29e10002 */ slti $at,$t7,0x2 -/* f1010f4: 14200037 */ bnez $at,.L0f1011d4 -/* f1010f8: 00117080 */ sll $t6,$s1,0x2 -/* f1010fc: 01d17023 */ subu $t6,$t6,$s1 -/* f101100: 02ce7821 */ addu $t7,$s6,$t6 -/* f101104: 01f3c021 */ addu $t8,$t7,$s3 -/* f101108: 93040000 */ lbu $a0,0x0($t8) -/* f10110c: 8f39a478 */ lw $t9,%lo(g_Vars+0x4b8)($t9) -/* f101110: 24010007 */ addiu $at,$zero,0x7 -/* f101114: 14810007 */ bne $a0,$at,.L0f101134 -/* f101118: 8f230004 */ lw $v1,0x4($t9) -/* f10111c: 8c790014 */ lw $t9,0x14($v1) -/* f101120: 332e0400 */ andi $t6,$t9,0x400 -/* f101124: 11c0002b */ beqz $t6,.L0f1011d4 -/* f101128: 00000000 */ nop -/* f10112c: 10000029 */ b .L0f1011d4 -/* f101130: 24100002 */ addiu $s0,$zero,0x2 -.L0f101134: -/* f101134: 24010001 */ addiu $at,$zero,0x1 -/* f101138: 14810026 */ bne $a0,$at,.L0f1011d4 -/* f10113c: 00000000 */ nop -/* f101140: 8c6f0014 */ lw $t7,0x14($v1) -/* f101144: 31f80400 */ andi $t8,$t7,0x400 -/* f101148: 17000022 */ bnez $t8,.L0f1011d4 -/* f10114c: 00000000 */ nop -/* f101150: 10000020 */ b .L0f1011d4 -/* f101154: 24100002 */ addiu $s0,$zero,0x2 -.L0f101158: -/* f101158: 3c19800a */ lui $t9,%hi(g_Vars+0x318) -/* f10115c: 8f39a2d8 */ lw $t9,%lo(g_Vars+0x318)($t9) -/* f101160: 1320001c */ beqz $t9,.L0f1011d4 -/* f101164: 00000000 */ nop -/* f101168: 1600001a */ bnez $s0,.L0f1011d4 -/* f10116c: 3c0e800a */ lui $t6,%hi(g_AmIndex) -/* f101170: 8dce21b8 */ lw $t6,%lo(g_AmIndex)($t6) -/* f101174: 01de0019 */ multu $t6,$s8 -/* f101178: 00117080 */ sll $t6,$s1,0x2 -/* f10117c: 01d17023 */ subu $t6,$t6,$s1 -/* f101180: 00007812 */ mflo $t7 -/* f101184: 02efc021 */ addu $t8,$s7,$t7 -/* f101188: 83190000 */ lb $t9,0x0($t8) -/* f10118c: 02ce7821 */ addu $t7,$s6,$t6 -/* f101190: 01f3c021 */ addu $t8,$t7,$s3 -/* f101194: 2b210002 */ slti $at,$t9,0x2 -/* f101198: 1420000e */ bnez $at,.L0f1011d4 -/* f10119c: 8fae01c4 */ lw $t6,0x1c4($sp) -/* f1011a0: 93190000 */ lbu $t9,0x0($t8) -/* f1011a4: 3c18800b */ lui $t8,%hi(g_MpAllChrPtrs) -/* f1011a8: 000e7880 */ sll $t7,$t6,0x2 -/* f1011ac: 030fc021 */ addu $t8,$t8,$t7 -/* f1011b0: 8f18c4d0 */ lw $t8,%lo(g_MpAllChrPtrs)($t8) -/* f1011b4: 3c02800b */ lui $v0,%hi(g_AmBotCommands) -/* f1011b8: 00591021 */ addu $v0,$v0,$t9 -/* f1011bc: 8f1902d4 */ lw $t9,0x2d4($t8) -/* f1011c0: 9042cb78 */ lbu $v0,%lo(g_AmBotCommands)($v0) -/* f1011c4: 93230079 */ lbu $v1,0x79($t9) -/* f1011c8: 14430002 */ bne $v0,$v1,.L0f1011d4 -/* f1011cc: 00000000 */ nop -/* f1011d0: 24100002 */ addiu $s0,$zero,0x2 -.L0f1011d4: -/* f1011d4: 3c0e800a */ lui $t6,%hi(g_Vars+0x284) -/* f1011d8: 8dcea244 */ lw $t6,%lo(g_Vars+0x284)($t6) -/* f1011dc: 24010002 */ addiu $at,$zero,0x2 -/* f1011e0: 02402025 */ or $a0,$s2,$zero -/* f1011e4: 91cf0250 */ lbu $t7,0x250($t6) -/* f1011e8: 27a501d0 */ addiu $a1,$sp,0x1d0 -/* f1011ec: 15e10003 */ bne $t7,$at,.L0f1011fc -/* f1011f0: 00000000 */ nop -/* f1011f4: 3c144f4f */ lui $s4,0x4f4f -/* f1011f8: 36944f7f */ ori $s4,$s4,0x4f7f -.L0f1011fc: -/* f1011fc: 0fc3f8a0 */ jal amGetSlotDetails -/* f101200: 02a03025 */ or $a2,$s5,$zero -/* f101204: 24020001 */ addiu $v0,$zero,0x1 -/* f101208: 1662000f */ bne $s3,$v0,.L0f101248 -/* f10120c: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101210: 5622000e */ bnel $s1,$v0,.L0f10124c -/* f101214: 8fb901d0 */ lw $t9,0x1d0($sp) -/* f101218: 0fc3fc2f */ jal amIsCramped -/* f10121c: 00000000 */ nop -/* f101220: 14400011 */ bnez $v0,.L0f101268 -/* f101224: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101228: 87b80180 */ lh $t8,0x180($sp) -/* f10122c: 02a02825 */ or $a1,$s5,$zero -/* f101230: 02803025 */ or $a2,$s4,$zero -/* f101234: 87a70182 */ lh $a3,0x182($sp) -/* f101238: 0fc3fdbd */ jal amRenderText -/* f10123c: afb80010 */ sw $t8,0x10($sp) -/* f101240: 10000009 */ b .L0f101268 -/* f101244: afa201d8 */ sw $v0,0x1d8($sp) -.L0f101248: -/* f101248: 8fb901d0 */ lw $t9,0x1d0($sp) -.L0f10124c: -/* f10124c: 02a02825 */ or $a1,$s5,$zero -/* f101250: 87a60182 */ lh $a2,0x182($sp) -/* f101254: 87a70180 */ lh $a3,0x180($sp) -/* f101258: afb00010 */ sw $s0,0x10($sp) -/* f10125c: 0fc4004a */ jal amRenderSlot -/* f101260: afb90014 */ sw $t9,0x14($sp) -/* f101264: afa201d8 */ sw $v0,0x1d8($sp) -.L0f101268: -/* f101268: 26310001 */ addiu $s1,$s1,0x1 -/* f10126c: 00117400 */ sll $t6,$s1,0x10 -/* f101270: 000e8c03 */ sra $s1,$t6,0x10 -/* f101274: 2a210003 */ slti $at,$s1,0x3 -/* f101278: 5420ff74 */ bnezl $at,.L0f10104c -/* f10127c: 00132400 */ sll $a0,$s3,0x10 -/* f101280: 26730001 */ addiu $s3,$s3,0x1 -/* f101284: 0013c400 */ sll $t8,$s3,0x10 -/* f101288: 00189c03 */ sra $s3,$t8,0x10 -/* f10128c: 2a610003 */ slti $at,$s3,0x3 -/* f101290: 5420ff6d */ bnezl $at,.L0f101048 -/* f101294: 00008825 */ or $s1,$zero,$zero -/* f101298: 3c0e800a */ lui $t6,%hi(g_MissionConfig+0x3) -/* f10129c: 81cfdfeb */ lb $t7,%lo(g_MissionConfig+0x3)($t6) -/* f1012a0: 05e10004 */ bgez $t7,.L0f1012b4 -/* f1012a4: 00000000 */ nop -/* f1012a8: 0fc3f7a3 */ jal amGetFirstBuddyIndex -/* f1012ac: 00000000 */ nop -/* f1012b0: 04410011 */ bgez $v0,.L0f1012f8 -.L0f1012b4: -/* f1012b4: 3c18800a */ lui $t8,%hi(g_Vars+0x318) -/* f1012b8: 8f18a2d8 */ lw $t8,%lo(g_Vars+0x318)($t8) -/* f1012bc: 3c19800a */ lui $t9,%hi(g_AmIndex) -/* f1012c0: 1300000d */ beqz $t8,.L0f1012f8 -/* f1012c4: 00000000 */ nop -/* f1012c8: 8f3921b8 */ lw $t9,%lo(g_AmIndex)($t9) -/* f1012cc: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1012d0: 033e0019 */ multu $t9,$s8 -/* f1012d4: 00007012 */ mflo $t6 -/* f1012d8: 02ee7821 */ addu $t7,$s7,$t6 -/* f1012dc: 81e20000 */ lb $v0,0x0($t7) -/* f1012e0: 28410002 */ slti $at,$v0,0x2 -/* f1012e4: 14200004 */ bnez $at,.L0f1012f8 -/* f1012e8: 00000000 */ nop -/* f1012ec: 0fc3fdef */ jal amRenderAibotInfo -/* f1012f0: 2445fffe */ addiu $a1,$v0,-2 -/* f1012f4: afa201d8 */ sw $v0,0x1d8($sp) -.L0f1012f8: -/* f1012f8: 3c18800a */ lui $t8,%hi(g_AmIndex) -/* f1012fc: 8f1821b8 */ lw $t8,%lo(g_AmIndex)($t8) -/* f101300: 3c02800a */ lui $v0,%hi(g_Vars) -/* f101304: 24429fc0 */ addiu $v0,$v0,%lo(g_Vars) -/* f101308: 031e0019 */ multu $t8,$s8 -/* f10130c: 0000c812 */ mflo $t9 -/* f101310: 02f98021 */ addu $s0,$s7,$t9 -/* f101314: 820e0000 */ lb $t6,0x0($s0) -/* f101318: 29c10002 */ slti $at,$t6,0x2 -/* f10131c: 14200005 */ bnez $at,.L0f101334 -/* f101320: 24010001 */ addiu $at,$zero,0x1 -/* f101324: 16610003 */ bne $s3,$at,.L0f101334 -/* f101328: 24010001 */ addiu $at,$zero,0x1 -/* f10132c: 12210154 */ beq $s1,$at,.L0f101880 -/* f101330: 00000000 */ nop -.L0f101334: -/* f101334: 8c4f006c */ lw $t7,0x6c($v0) -/* f101338: 24120006 */ addiu $s2,$zero,0x6 -/* f10133c: 24130006 */ addiu $s3,$zero,0x6 -/* f101340: 51e00004 */ beqzl $t7,.L0f101354 -/* f101344: 00003025 */ or $a2,$zero,$zero -/* f101348: 10000002 */ b .L0f101354 -/* f10134c: 24060001 */ addiu $a2,$zero,0x1 -/* f101350: 00003025 */ or $a2,$zero,$zero -.L0f101354: -/* f101354: 8c580068 */ lw $t8,0x68($v0) -/* f101358: 00002825 */ or $a1,$zero,$zero -/* f10135c: 13000003 */ beqz $t8,.L0f10136c -/* f101360: 00000000 */ nop -/* f101364: 10000001 */ b .L0f10136c -/* f101368: 24050001 */ addiu $a1,$zero,0x1 -.L0f10136c: -/* f10136c: 8c590064 */ lw $t9,0x64($v0) -/* f101370: 00002025 */ or $a0,$zero,$zero -/* f101374: 13200003 */ beqz $t9,.L0f101384 -/* f101378: 00000000 */ nop -/* f10137c: 10000001 */ b .L0f101384 -/* f101380: 24040001 */ addiu $a0,$zero,0x1 -.L0f101384: -/* f101384: 8c4e0070 */ lw $t6,0x70($v0) -/* f101388: 00001825 */ or $v1,$zero,$zero -/* f10138c: 11c00003 */ beqz $t6,.L0f10139c -/* f101390: 00000000 */ nop -/* f101394: 10000001 */ b .L0f10139c -/* f101398: 24030001 */ addiu $v1,$zero,0x1 -.L0f10139c: -/* f10139c: 00647821 */ addu $t7,$v1,$a0 -/* f1013a0: 01e5c021 */ addu $t8,$t7,$a1 -/* f1013a4: 0306c821 */ addu $t9,$t8,$a2 -/* f1013a8: 2b210002 */ slti $at,$t9,0x2 -/* f1013ac: 14200003 */ bnez $at,.L0f1013bc -/* f1013b0: 00000000 */ nop -/* f1013b4: 24120005 */ addiu $s2,$zero,0x5 -/* f1013b8: 24130003 */ addiu $s3,$zero,0x3 -.L0f1013bc: -/* f1013bc: 0c0068f7 */ jal sinf -/* f1013c0: c60c001c */ lwc1 $f12,0x1c($s0) -/* f1013c4: 3c013f80 */ lui $at,0x3f80 -/* f1013c8: 44812000 */ mtc1 $at,$f4 -/* f1013cc: 3c0142fe */ lui $at,0x42fe -/* f1013d0: 44814000 */ mtc1 $at,$f8 -/* f1013d4: 46040180 */ add.s $f6,$f0,$f4 -/* f1013d8: 24020001 */ addiu $v0,$zero,0x1 -/* f1013dc: 3c014f00 */ lui $at,0x4f00 -/* f1013e0: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f1013e4: 46083282 */ mul.s $f10,$f6,$f8 -/* f1013e8: 444ef800 */ cfc1 $t6,$31 -/* f1013ec: 44c2f800 */ ctc1 $v0,$31 -/* f1013f0: 00000000 */ nop -/* f1013f4: 46005424 */ cvt.w.s $f16,$f10 -/* f1013f8: 4442f800 */ cfc1 $v0,$31 -/* f1013fc: 00000000 */ nop -/* f101400: 30420078 */ andi $v0,$v0,0x78 -/* f101404: 50400013 */ beqzl $v0,.L0f101454 -/* f101408: 44028000 */ mfc1 $v0,$f16 -/* f10140c: 44818000 */ mtc1 $at,$f16 -/* f101410: 24020001 */ addiu $v0,$zero,0x1 -/* f101414: 46105401 */ sub.s $f16,$f10,$f16 -/* f101418: 44c2f800 */ ctc1 $v0,$31 -/* f10141c: 00000000 */ nop -/* f101420: 46008424 */ cvt.w.s $f16,$f16 -/* f101424: 4442f800 */ cfc1 $v0,$31 -/* f101428: 00000000 */ nop -/* f10142c: 30420078 */ andi $v0,$v0,0x78 -/* f101430: 14400005 */ bnez $v0,.L0f101448 -/* f101434: 00000000 */ nop -/* f101438: 44028000 */ mfc1 $v0,$f16 -/* f10143c: 3c018000 */ lui $at,0x8000 -/* f101440: 10000007 */ b .L0f101460 -/* f101444: 00411025 */ or $v0,$v0,$at -.L0f101448: -/* f101448: 10000005 */ b .L0f101460 -/* f10144c: 2402ffff */ addiu $v0,$zero,-1 -/* f101450: 44028000 */ mfc1 $v0,$f16 -.L0f101454: -/* f101454: 00000000 */ nop -/* f101458: 0440fffb */ bltz $v0,.L0f101448 -/* f10145c: 00000000 */ nop -.L0f101460: -/* f101460: 44cef800 */ ctc1 $t6,$31 -/* f101464: 3c0e800a */ lui $t6,%hi(g_Vars+0x284) -/* f101468: 8dcea244 */ lw $t6,%lo(g_Vars+0x284)($t6) -/* f10146c: 3c01ff00 */ lui $at,0xff00 -/* f101470: 342100ff */ ori $at,$at,0xff -/* f101474: 00027a00 */ sll $t7,$v0,0x8 -/* f101478: 01e1c025 */ or $t8,$t7,$at -/* f10147c: 91cf0250 */ lbu $t7,0x250($t6) -/* f101480: 0002cc00 */ sll $t9,$v0,0x10 -/* f101484: 24010002 */ addiu $at,$zero,0x2 -/* f101488: 15e10003 */ bne $t7,$at,.L0f101498 -/* f10148c: 0319a025 */ or $s4,$t8,$t9 -/* f101490: 3c144f4f */ lui $s4,0x4f4f -/* f101494: 36944f7f */ ori $s4,$s4,0x4f7f -.L0f101498: -/* f101498: 0fc54df7 */ jal textSetPrimColour -/* f10149c: 02802825 */ or $a1,$s4,$zero -/* f1014a0: 3c18800a */ lui $t8,%hi(g_AmIndex) -/* f1014a4: 8f1821b8 */ lw $t8,%lo(g_AmIndex)($t8) -/* f1014a8: afa201d8 */ sw $v0,0x1d8($sp) -/* f1014ac: 031e0019 */ multu $t8,$s8 -/* f1014b0: 0000c812 */ mflo $t9 -/* f1014b4: 02f98021 */ addu $s0,$s7,$t9 -/* f1014b8: 86110004 */ lh $s1,0x4($s0) -/* f1014bc: 920f000e */ lbu $t7,0xe($s0) -/* f1014c0: 06210003 */ bgez $s1,.L0f1014d0 -/* f1014c4: 00117043 */ sra $t6,$s1,0x1 -/* f1014c8: 26210001 */ addiu $at,$s1,0x1 -/* f1014cc: 00017043 */ sra $t6,$at,0x1 -.L0f1014d0: -/* f1014d0: 24010004 */ addiu $at,$zero,0x4 -/* f1014d4: 15e1003c */ bne $t7,$at,.L0f1015c8 -/* f1014d8: 01c08825 */ or $s1,$t6,$zero -/* f1014dc: 0fc3fc2f */ jal amIsCramped -/* f1014e0: 00000000 */ nop -/* f1014e4: 10400005 */ beqz $v0,.L0f1014fc -/* f1014e8: 3c18800a */ lui $t8,%hi(g_Vars+0x6c) -/* f1014ec: 24110001 */ addiu $s1,$zero,0x1 -/* f1014f0: 24120002 */ addiu $s2,$zero,0x2 -/* f1014f4: 10000034 */ b .L0f1015c8 -/* f1014f8: 00009825 */ or $s3,$zero,$zero -.L0f1014fc: -/* f1014fc: 8f18a02c */ lw $t8,%lo(g_Vars+0x6c)($t8) -/* f101500: 3c19800a */ lui $t9,%hi(g_Vars+0x68) -/* f101504: 3c0e800a */ lui $t6,%hi(g_Vars+0x64) -/* f101508: 13000003 */ beqz $t8,.L0f101518 -/* f10150c: 3c0f800a */ lui $t7,%hi(g_Vars+0x70) -/* f101510: 10000002 */ b .L0f10151c -/* f101514: 24060001 */ addiu $a2,$zero,0x1 -.L0f101518: -/* f101518: 00003025 */ or $a2,$zero,$zero -.L0f10151c: -/* f10151c: 8f39a028 */ lw $t9,%lo(g_Vars+0x68)($t9) -/* f101520: 00002825 */ or $a1,$zero,$zero -/* f101524: 00002025 */ or $a0,$zero,$zero -/* f101528: 13200003 */ beqz $t9,.L0f101538 -/* f10152c: 00001825 */ or $v1,$zero,$zero -/* f101530: 10000001 */ b .L0f101538 -/* f101534: 24050001 */ addiu $a1,$zero,0x1 -.L0f101538: -/* f101538: 8dcea024 */ lw $t6,%lo(g_Vars+0x64)($t6) -/* f10153c: 27b00118 */ addiu $s0,$sp,0x118 -/* f101540: 11c00003 */ beqz $t6,.L0f101550 -/* f101544: 00000000 */ nop -/* f101548: 10000001 */ b .L0f101550 -/* f10154c: 24040001 */ addiu $a0,$zero,0x1 -.L0f101550: -/* f101550: 8defa030 */ lw $t7,%lo(g_Vars+0x70)($t7) -/* f101554: 11e00003 */ beqz $t7,.L0f101564 -/* f101558: 00000000 */ nop -/* f10155c: 10000001 */ b .L0f101564 -/* f101560: 24030001 */ addiu $v1,$zero,0x1 -.L0f101564: -/* f101564: 0064c021 */ addu $t8,$v1,$a0 -/* f101568: 0305c821 */ addu $t9,$t8,$a1 -/* f10156c: 03267021 */ addu $t6,$t9,$a2 -/* f101570: 29c10002 */ slti $at,$t6,0x2 -/* f101574: 14200014 */ bnez $at,.L0f1015c8 -/* f101578: 24040004 */ addiu $a0,$zero,0x4 -/* f10157c: 27a50114 */ addiu $a1,$sp,0x114 -/* f101580: 0fc3f8a0 */ jal amGetSlotDetails -/* f101584: 02003025 */ or $a2,$s0,$zero -/* f101588: 3c0f800a */ lui $t7,%hi(g_AmFont2) -/* f10158c: 8def21b4 */ lw $t7,%lo(g_AmFont2)($t7) -/* f101590: 3c07800a */ lui $a3,%hi(g_AmFont1) -/* f101594: 8ce721b0 */ lw $a3,%lo(g_AmFont1)($a3) -/* f101598: 27a4013c */ addiu $a0,$sp,0x13c -/* f10159c: 27a50138 */ addiu $a1,$sp,0x138 -/* f1015a0: 02003025 */ or $a2,$s0,$zero -/* f1015a4: afa00014 */ sw $zero,0x14($sp) -/* f1015a8: 0fc55cbe */ jal textMeasure -/* f1015ac: afaf0010 */ sw $t7,0x10($sp) -/* f1015b0: 8fb10138 */ lw $s1,0x138($sp) -/* f1015b4: 06210003 */ bgez $s1,.L0f1015c4 -/* f1015b8: 0011c043 */ sra $t8,$s1,0x1 -/* f1015bc: 26210001 */ addiu $at,$s1,0x1 -/* f1015c0: 0001c043 */ sra $t8,$at,0x1 -.L0f1015c4: -/* f1015c4: 27110002 */ addiu $s1,$t8,0x2 -.L0f1015c8: -/* f1015c8: 3c0f800a */ lui $t7,%hi(g_AmIndex) -/* f1015cc: 8def21b8 */ lw $t7,%lo(g_AmIndex)($t7) -/* f1015d0: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f1015d4: 3c068008 */ lui $a2,%hi(g_ScaleX) -/* f1015d8: 01fe0019 */ multu $t7,$s8 -/* f1015dc: 24c6fac0 */ addiu $a2,$a2,%lo(g_ScaleX) -/* f1015e0: 244e0008 */ addiu $t6,$v0,0x8 -/* f1015e4: afae01d8 */ sw $t6,0x1d8($sp) -/* f1015e8: 3c16f600 */ lui $s6,0xf600 -/* f1015ec: 0000c012 */ mflo $t8 -/* f1015f0: 02f88021 */ addu $s0,$s7,$t8 -/* f1015f4: 86190006 */ lh $t9,0x6($s0) -/* f1015f8: 8cd80000 */ lw $t8,0x0($a2) -/* f1015fc: 03317021 */ addu $t6,$t9,$s1 -/* f101600: 25cf0001 */ addiu $t7,$t6,0x1 -/* f101604: 01f80019 */ multu $t7,$t8 -/* f101608: 86180008 */ lh $t8,0x8($s0) -/* f10160c: 0000c812 */ mflo $t9 -/* f101610: 332e03ff */ andi $t6,$t9,0x3ff -/* f101614: 000e7b80 */ sll $t7,$t6,0xe -/* f101618: 0312c823 */ subu $t9,$t8,$s2 -/* f10161c: 272e0001 */ addiu $t6,$t9,0x1 -/* f101620: 31d803ff */ andi $t8,$t6,0x3ff -/* f101624: 0018c880 */ sll $t9,$t8,0x2 -/* f101628: 03367025 */ or $t6,$t9,$s6 -/* f10162c: 01cfc025 */ or $t8,$t6,$t7 -/* f101630: 3c19800a */ lui $t9,%hi(g_AmIndex) -/* f101634: ac580000 */ sw $t8,0x0($v0) -/* f101638: 8f3921b8 */ lw $t9,%lo(g_AmIndex)($t9) -/* f10163c: 033e0019 */ multu $t9,$s8 -/* f101640: 8cd90000 */ lw $t9,0x0($a2) -/* f101644: 00007012 */ mflo $t6 -/* f101648: 02ee8021 */ addu $s0,$s7,$t6 -/* f10164c: 860f0006 */ lh $t7,0x6($s0) -/* f101650: 01f1c023 */ subu $t8,$t7,$s1 -/* f101654: 03190019 */ multu $t8,$t9 -/* f101658: 86190008 */ lh $t9,0x8($s0) -/* f10165c: 00007012 */ mflo $t6 -/* f101660: 31cf03ff */ andi $t7,$t6,0x3ff -/* f101664: 000fc380 */ sll $t8,$t7,0xe -/* f101668: 03327023 */ subu $t6,$t9,$s2 -/* f10166c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f101670: 000fc880 */ sll $t9,$t7,0x2 -/* f101674: 03387025 */ or $t6,$t9,$t8 -/* f101678: 3c18800a */ lui $t8,%hi(g_AmIndex) -/* f10167c: ac4e0004 */ sw $t6,0x4($v0) -/* f101680: 8f1821b8 */ lw $t8,%lo(g_AmIndex)($t8) -/* f101684: 8fa301d8 */ lw $v1,0x1d8($sp) -/* f101688: 031e0019 */ multu $t8,$s8 -/* f10168c: 24790008 */ addiu $t9,$v1,0x8 -/* f101690: afb901d8 */ sw $t9,0x1d8($sp) -/* f101694: 00007012 */ mflo $t6 -/* f101698: 02ee8021 */ addu $s0,$s7,$t6 -/* f10169c: 860f0006 */ lh $t7,0x6($s0) -/* f1016a0: 8cce0000 */ lw $t6,0x0($a2) -/* f1016a4: 01f1c821 */ addu $t9,$t7,$s1 -/* f1016a8: 27380001 */ addiu $t8,$t9,0x1 -/* f1016ac: 030e0019 */ multu $t8,$t6 -/* f1016b0: 860e0008 */ lh $t6,0x8($s0) -/* f1016b4: 00007812 */ mflo $t7 -/* f1016b8: 31f903ff */ andi $t9,$t7,0x3ff -/* f1016bc: 0019c380 */ sll $t8,$t9,0xe -/* f1016c0: 01d37821 */ addu $t7,$t6,$s3 -/* f1016c4: 25f90001 */ addiu $t9,$t7,0x1 -/* f1016c8: 332e03ff */ andi $t6,$t9,0x3ff -/* f1016cc: 000e7880 */ sll $t7,$t6,0x2 -/* f1016d0: 01f6c825 */ or $t9,$t7,$s6 -/* f1016d4: 03387025 */ or $t6,$t9,$t8 -/* f1016d8: 3c0f800a */ lui $t7,%hi(g_AmIndex) -/* f1016dc: ac6e0000 */ sw $t6,0x0($v1) -/* f1016e0: 8def21b8 */ lw $t7,%lo(g_AmIndex)($t7) -/* f1016e4: 01fe0019 */ multu $t7,$s8 -/* f1016e8: 8ccf0000 */ lw $t7,0x0($a2) -/* f1016ec: 0000c812 */ mflo $t9 -/* f1016f0: 02f98021 */ addu $s0,$s7,$t9 -/* f1016f4: 86180006 */ lh $t8,0x6($s0) -/* f1016f8: 03117023 */ subu $t6,$t8,$s1 -/* f1016fc: 01cf0019 */ multu $t6,$t7 -/* f101700: 860f0008 */ lh $t7,0x8($s0) -/* f101704: 0000c812 */ mflo $t9 -/* f101708: 333803ff */ andi $t8,$t9,0x3ff -/* f10170c: 00187380 */ sll $t6,$t8,0xe -/* f101710: 01f3c821 */ addu $t9,$t7,$s3 -/* f101714: 333803ff */ andi $t8,$t9,0x3ff -/* f101718: 00187880 */ sll $t7,$t8,0x2 -/* f10171c: 01eec825 */ or $t9,$t7,$t6 -/* f101720: 3c0e800a */ lui $t6,%hi(g_AmIndex) -/* f101724: ac790004 */ sw $t9,0x4($v1) -/* f101728: 8dce21b8 */ lw $t6,%lo(g_AmIndex)($t6) -/* f10172c: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f101730: 01de0019 */ multu $t6,$s8 -/* f101734: 24af0008 */ addiu $t7,$a1,0x8 -/* f101738: afaf01d8 */ sw $t7,0x1d8($sp) -/* f10173c: 0000c812 */ mflo $t9 -/* f101740: 02f98021 */ addu $s0,$s7,$t9 -/* f101744: 86180006 */ lh $t8,0x6($s0) -/* f101748: 8cd90000 */ lw $t9,0x0($a2) -/* f10174c: 03117823 */ subu $t7,$t8,$s1 -/* f101750: 25ee0001 */ addiu $t6,$t7,0x1 -/* f101754: 01d90019 */ multu $t6,$t9 -/* f101758: 86190008 */ lh $t9,0x8($s0) -/* f10175c: 0000c012 */ mflo $t8 -/* f101760: 330f03ff */ andi $t7,$t8,0x3ff -/* f101764: 000f7380 */ sll $t6,$t7,0xe -/* f101768: 0333c021 */ addu $t8,$t9,$s3 -/* f10176c: 330f03ff */ andi $t7,$t8,0x3ff -/* f101770: 000fc880 */ sll $t9,$t7,0x2 -/* f101774: 0336c025 */ or $t8,$t9,$s6 -/* f101778: 030e7825 */ or $t7,$t8,$t6 -/* f10177c: 3c19800a */ lui $t9,%hi(g_AmIndex) -/* f101780: acaf0000 */ sw $t7,0x0($a1) -/* f101784: 8f3921b8 */ lw $t9,%lo(g_AmIndex)($t9) -/* f101788: 033e0019 */ multu $t9,$s8 -/* f10178c: 8cd90000 */ lw $t9,0x0($a2) -/* f101790: 0000c012 */ mflo $t8 -/* f101794: 02f88021 */ addu $s0,$s7,$t8 -/* f101798: 860e0006 */ lh $t6,0x6($s0) -/* f10179c: 01d17823 */ subu $t7,$t6,$s1 -/* f1017a0: 01f90019 */ multu $t7,$t9 -/* f1017a4: 86190008 */ lh $t9,0x8($s0) -/* f1017a8: 0000c012 */ mflo $t8 -/* f1017ac: 330e03ff */ andi $t6,$t8,0x3ff -/* f1017b0: 000e7b80 */ sll $t7,$t6,0xe -/* f1017b4: 0332c023 */ subu $t8,$t9,$s2 -/* f1017b8: 270e0001 */ addiu $t6,$t8,0x1 -/* f1017bc: 31d903ff */ andi $t9,$t6,0x3ff -/* f1017c0: 0019c080 */ sll $t8,$t9,0x2 -/* f1017c4: 030f7025 */ or $t6,$t8,$t7 -/* f1017c8: 3c0f800a */ lui $t7,%hi(g_AmIndex) -/* f1017cc: acae0004 */ sw $t6,0x4($a1) -/* f1017d0: 8def21b8 */ lw $t7,%lo(g_AmIndex)($t7) -/* f1017d4: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f1017d8: 01fe0019 */ multu $t7,$s8 -/* f1017dc: 24580008 */ addiu $t8,$v0,0x8 -/* f1017e0: afb801d8 */ sw $t8,0x1d8($sp) -/* f1017e4: 00007012 */ mflo $t6 -/* f1017e8: 02ee8021 */ addu $s0,$s7,$t6 -/* f1017ec: 86190006 */ lh $t9,0x6($s0) -/* f1017f0: 8cce0000 */ lw $t6,0x0($a2) -/* f1017f4: 0331c021 */ addu $t8,$t9,$s1 -/* f1017f8: 270f0001 */ addiu $t7,$t8,0x1 -/* f1017fc: 01ee0019 */ multu $t7,$t6 -/* f101800: 860e0008 */ lh $t6,0x8($s0) -/* f101804: 0000c812 */ mflo $t9 -/* f101808: 333803ff */ andi $t8,$t9,0x3ff -/* f10180c: 00187b80 */ sll $t7,$t8,0xe -/* f101810: 01d3c821 */ addu $t9,$t6,$s3 -/* f101814: 333803ff */ andi $t8,$t9,0x3ff -/* f101818: 00187080 */ sll $t6,$t8,0x2 -/* f10181c: 01d6c825 */ or $t9,$t6,$s6 -/* f101820: 032fc025 */ or $t8,$t9,$t7 -/* f101824: 3c0e800a */ lui $t6,%hi(g_AmIndex) -/* f101828: ac580000 */ sw $t8,0x0($v0) -/* f10182c: 8dce21b8 */ lw $t6,%lo(g_AmIndex)($t6) -/* f101830: 01de0019 */ multu $t6,$s8 -/* f101834: 8cce0000 */ lw $t6,0x0($a2) -/* f101838: 0000c812 */ mflo $t9 -/* f10183c: 02f98021 */ addu $s0,$s7,$t9 -/* f101840: 860f0006 */ lh $t7,0x6($s0) -/* f101844: 01f1c021 */ addu $t8,$t7,$s1 -/* f101848: 030e0019 */ multu $t8,$t6 -/* f10184c: 860e0008 */ lh $t6,0x8($s0) -/* f101850: 0000c812 */ mflo $t9 -/* f101854: 332f03ff */ andi $t7,$t9,0x3ff -/* f101858: 000fc380 */ sll $t8,$t7,0xe -/* f10185c: 01d2c823 */ subu $t9,$t6,$s2 -/* f101860: 272f0001 */ addiu $t7,$t9,0x1 -/* f101864: 31ee03ff */ andi $t6,$t7,0x3ff -/* f101868: 000ec880 */ sll $t9,$t6,0x2 -/* f10186c: 03387825 */ or $t7,$t9,$t8 -/* f101870: ac4f0004 */ sw $t7,0x4($v0) -/* f101874: 0fc54e0e */ jal text0f153838 -/* f101878: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f10187c: afa201d8 */ sw $v0,0x1d8($sp) -.L0f101880: -/* f101880: 0fc54de0 */ jal text0f153780 -/* f101884: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101888: 3c03800a */ lui $v1,%hi(g_Vars+0x284) -/* f10188c: 3c0b800a */ lui $t3,%hi(g_Vars) -/* f101890: 256b9fc0 */ addiu $t3,$t3,%lo(g_Vars) -/* f101894: 8c63a244 */ lw $v1,%lo(g_Vars+0x284)($v1) -/* f101898: afa201d8 */ sw $v0,0x1d8($sp) -/* f10189c: 8c621c04 */ lw $v0,0x1c04($v1) -.L0f1018a0: -/* f1018a0: 3c16f600 */ lui $s6,0xf600 -/* f1018a4: 50400252 */ beqzl $v0,.L0f1021f0 -/* f1018a8: 8fbf004c */ lw $ra,0x4c($sp) -/* f1018ac: c4400104 */ lwc1 $f0,0x104($v0) -/* f1018b0: c4520100 */ lwc1 $f18,0x100($v0) -/* f1018b4: 3c013e00 */ lui $at,0x3e00 -/* f1018b8: 44815000 */ mtc1 $at,$f10 -/* f1018bc: 46120101 */ sub.s $f4,$f0,$f18 -/* f1018c0: 3c013e80 */ lui $at,0x3e80 -/* f1018c4: 44819000 */ mtc1 $at,$f18 -/* f1018c8: 0000f025 */ or $s8,$zero,$zero -/* f1018cc: 46002183 */ div.s $f6,$f4,$f0 -/* f1018d0: e7a60100 */ swc1 $f6,0x100($sp) -/* f1018d4: c4480180 */ lwc1 $f8,0x180($v0) -/* f1018d8: 4612303c */ c.lt.s $f6,$f18 -/* f1018dc: 460a4402 */ mul.s $f16,$f8,$f10 -/* f1018e0: 45000002 */ bc1f .L0f1018ec -/* f1018e4: e7b000fc */ swc1 $f16,0xfc($sp) -/* f1018e8: 241e0001 */ addiu $s8,$zero,0x1 -.L0f1018ec: -/* f1018ec: 8d67006c */ lw $a3,0x6c($t3) -/* f1018f0: 50e00004 */ beqzl $a3,.L0f101904 -/* f1018f4: 00003025 */ or $a2,$zero,$zero -/* f1018f8: 10000002 */ b .L0f101904 -/* f1018fc: 24060001 */ addiu $a2,$zero,0x1 -/* f101900: 00003025 */ or $a2,$zero,$zero -.L0f101904: -/* f101904: 8d680068 */ lw $t0,0x68($t3) -/* f101908: 51000004 */ beqzl $t0,.L0f10191c -/* f10190c: 00002825 */ or $a1,$zero,$zero -/* f101910: 10000002 */ b .L0f10191c -/* f101914: 24050001 */ addiu $a1,$zero,0x1 -/* f101918: 00002825 */ or $a1,$zero,$zero -.L0f10191c: -/* f10191c: 8d690064 */ lw $t1,0x64($t3) -/* f101920: 51200004 */ beqzl $t1,.L0f101934 -/* f101924: 00002025 */ or $a0,$zero,$zero -/* f101928: 10000002 */ b .L0f101934 -/* f10192c: 24040001 */ addiu $a0,$zero,0x1 -/* f101930: 00002025 */ or $a0,$zero,$zero -.L0f101934: -/* f101934: 8d6a0070 */ lw $t2,0x70($t3) -/* f101938: 51400004 */ beqzl $t2,.L0f10194c -/* f10193c: 00001825 */ or $v1,$zero,$zero -/* f101940: 10000002 */ b .L0f10194c -/* f101944: 24030001 */ addiu $v1,$zero,0x1 -/* f101948: 00001825 */ or $v1,$zero,$zero -.L0f10194c: -/* f10194c: 00647021 */ addu $t6,$v1,$a0 -/* f101950: 01c5c821 */ addu $t9,$t6,$a1 -/* f101954: 0326c021 */ addu $t8,$t9,$a2 -/* f101958: 2b010002 */ slti $at,$t8,0x2 -/* f10195c: 54200004 */ bnezl $at,.L0f101970 -/* f101960: 24170040 */ addiu $s7,$zero,0x40 -/* f101964: 10000002 */ b .L0f101970 -/* f101968: 24170030 */ addiu $s7,$zero,0x30 -/* f10196c: 24170040 */ addiu $s7,$zero,0x40 -.L0f101970: -/* f101970: 50e00004 */ beqzl $a3,.L0f101984 -/* f101974: 00003025 */ or $a2,$zero,$zero -/* f101978: 10000002 */ b .L0f101984 -/* f10197c: 24060001 */ addiu $a2,$zero,0x1 -/* f101980: 00003025 */ or $a2,$zero,$zero -.L0f101984: -/* f101984: 51000004 */ beqzl $t0,.L0f101998 -/* f101988: 00002825 */ or $a1,$zero,$zero -/* f10198c: 10000002 */ b .L0f101998 -/* f101990: 24050001 */ addiu $a1,$zero,0x1 -/* f101994: 00002825 */ or $a1,$zero,$zero -.L0f101998: -/* f101998: 51200004 */ beqzl $t1,.L0f1019ac -/* f10199c: 00002025 */ or $a0,$zero,$zero -/* f1019a0: 10000002 */ b .L0f1019ac -/* f1019a4: 24040001 */ addiu $a0,$zero,0x1 -/* f1019a8: 00002025 */ or $a0,$zero,$zero -.L0f1019ac: -/* f1019ac: 51400004 */ beqzl $t2,.L0f1019c0 -/* f1019b0: 00001825 */ or $v1,$zero,$zero -/* f1019b4: 10000002 */ b .L0f1019c0 -/* f1019b8: 24030001 */ addiu $v1,$zero,0x1 -/* f1019bc: 00001825 */ or $v1,$zero,$zero -.L0f1019c0: -/* f1019c0: 00647821 */ addu $t7,$v1,$a0 -/* f1019c4: 01e57021 */ addu $t6,$t7,$a1 -/* f1019c8: 01c6c821 */ addu $t9,$t6,$a2 -/* f1019cc: 2b210002 */ slti $at,$t9,0x2 -/* f1019d0: 54200004 */ bnezl $at,.L0f1019e4 -/* f1019d4: 2415000b */ addiu $s5,$zero,0xb -/* f1019d8: 10000002 */ b .L0f1019e4 -/* f1019dc: 24150007 */ addiu $s5,$zero,0x7 -/* f1019e0: 2415000b */ addiu $s5,$zero,0xb -.L0f1019e4: -/* f1019e4: 10e00003 */ beqz $a3,.L0f1019f4 -/* f1019e8: 00009025 */ or $s2,$zero,$zero -/* f1019ec: 10000002 */ b .L0f1019f8 -/* f1019f0: 24060001 */ addiu $a2,$zero,0x1 -.L0f1019f4: -/* f1019f4: 00003025 */ or $a2,$zero,$zero -.L0f1019f8: -/* f1019f8: 11000003 */ beqz $t0,.L0f101a08 -/* f1019fc: 24010002 */ addiu $at,$zero,0x2 -/* f101a00: 10000002 */ b .L0f101a0c -/* f101a04: 24050001 */ addiu $a1,$zero,0x1 -.L0f101a08: -/* f101a08: 00002825 */ or $a1,$zero,$zero -.L0f101a0c: -/* f101a0c: 51200004 */ beqzl $t1,.L0f101a20 -/* f101a10: 00002025 */ or $a0,$zero,$zero -/* f101a14: 10000002 */ b .L0f101a20 -/* f101a18: 24040001 */ addiu $a0,$zero,0x1 -/* f101a1c: 00002025 */ or $a0,$zero,$zero -.L0f101a20: -/* f101a20: 51400004 */ beqzl $t2,.L0f101a34 -/* f101a24: 00001825 */ or $v1,$zero,$zero -/* f101a28: 10000002 */ b .L0f101a34 -/* f101a2c: 24030001 */ addiu $v1,$zero,0x1 -/* f101a30: 00001825 */ or $v1,$zero,$zero -.L0f101a34: -/* f101a34: 0064c021 */ addu $t8,$v1,$a0 -/* f101a38: 03057821 */ addu $t7,$t8,$a1 -/* f101a3c: 01e67021 */ addu $t6,$t7,$a2 -/* f101a40: 15c10011 */ bne $t6,$at,.L0f101a88 -/* f101a44: 00000000 */ nop -/* f101a48: 0fc54bcd */ jal optionsGetScreenSplit -/* f101a4c: 00000000 */ nop -/* f101a50: 24010001 */ addiu $at,$zero,0x1 -/* f101a54: 10410021 */ beq $v0,$at,.L0f101adc -/* f101a58: 3c198009 */ lui $t9,%hi(g_Is4Mb) -/* f101a5c: 93390af0 */ lbu $t9,%lo(g_Is4Mb)($t9) -/* f101a60: 24010001 */ addiu $at,$zero,0x1 -/* f101a64: 3c07800a */ lui $a3,%hi(g_Vars+0x6c) -/* f101a68: 1321001c */ beq $t9,$at,.L0f101adc -/* f101a6c: 3c08800a */ lui $t0,%hi(g_Vars+0x68) -/* f101a70: 3c09800a */ lui $t1,%hi(g_Vars+0x64) -/* f101a74: 3c0a800a */ lui $t2,%hi(g_Vars+0x70) -/* f101a78: 8d4aa030 */ lw $t2,%lo(g_Vars+0x70)($t2) -/* f101a7c: 8d29a024 */ lw $t1,%lo(g_Vars+0x64)($t1) -/* f101a80: 8ce7a02c */ lw $a3,%lo(g_Vars+0x6c)($a3) -/* f101a84: 8d08a028 */ lw $t0,%lo(g_Vars+0x68)($t0) -.L0f101a88: -/* f101a88: 10e00003 */ beqz $a3,.L0f101a98 -/* f101a8c: 00002825 */ or $a1,$zero,$zero -/* f101a90: 10000001 */ b .L0f101a98 -/* f101a94: 24050001 */ addiu $a1,$zero,0x1 -.L0f101a98: -/* f101a98: 11000003 */ beqz $t0,.L0f101aa8 -/* f101a9c: 00001025 */ or $v0,$zero,$zero -/* f101aa0: 10000001 */ b .L0f101aa8 -/* f101aa4: 24020001 */ addiu $v0,$zero,0x1 -.L0f101aa8: -/* f101aa8: 11200003 */ beqz $t1,.L0f101ab8 -/* f101aac: 00002025 */ or $a0,$zero,$zero -/* f101ab0: 10000001 */ b .L0f101ab8 -/* f101ab4: 24040001 */ addiu $a0,$zero,0x1 -.L0f101ab8: -/* f101ab8: 11400003 */ beqz $t2,.L0f101ac8 -/* f101abc: 00001825 */ or $v1,$zero,$zero -/* f101ac0: 10000001 */ b .L0f101ac8 -/* f101ac4: 24030001 */ addiu $v1,$zero,0x1 -.L0f101ac8: -/* f101ac8: 0064c021 */ addu $t8,$v1,$a0 -/* f101acc: 03027821 */ addu $t7,$t8,$v0 -/* f101ad0: 01e57021 */ addu $t6,$t7,$a1 -/* f101ad4: 29c10003 */ slti $at,$t6,0x3 -/* f101ad8: 1420000c */ bnez $at,.L0f101b0c -.L0f101adc: -/* f101adc: 3c0b800a */ lui $t3,%hi(g_Vars) -/* f101ae0: 256b9fc0 */ addiu $t3,$t3,%lo(g_Vars) -/* f101ae4: 8d79028c */ lw $t9,0x28c($t3) -/* f101ae8: 8d67006c */ lw $a3,0x6c($t3) -/* f101aec: 8d680068 */ lw $t0,0x68($t3) -/* f101af0: 33380001 */ andi $t8,$t9,0x1 -/* f101af4: 8d690064 */ lw $t1,0x64($t3) -/* f101af8: 17000003 */ bnez $t8,.L0f101b08 -/* f101afc: 8d6a0070 */ lw $t2,0x70($t3) -/* f101b00: 10000002 */ b .L0f101b0c -/* f101b04: 24120008 */ addiu $s2,$zero,0x8 -.L0f101b08: -/* f101b08: 2412fff8 */ addiu $s2,$zero,-8 -.L0f101b0c: -/* f101b0c: 10e00003 */ beqz $a3,.L0f101b1c -/* f101b10: 24010001 */ addiu $at,$zero,0x1 -/* f101b14: 10000002 */ b .L0f101b20 -/* f101b18: 24060001 */ addiu $a2,$zero,0x1 -.L0f101b1c: -/* f101b1c: 00003025 */ or $a2,$zero,$zero -.L0f101b20: -/* f101b20: 51000004 */ beqzl $t0,.L0f101b34 -/* f101b24: 00002825 */ or $a1,$zero,$zero -/* f101b28: 10000002 */ b .L0f101b34 -/* f101b2c: 24050001 */ addiu $a1,$zero,0x1 -/* f101b30: 00002825 */ or $a1,$zero,$zero -.L0f101b34: -/* f101b34: 51200004 */ beqzl $t1,.L0f101b48 -/* f101b38: 00002025 */ or $a0,$zero,$zero -/* f101b3c: 10000002 */ b .L0f101b48 -/* f101b40: 24040001 */ addiu $a0,$zero,0x1 -/* f101b44: 00002025 */ or $a0,$zero,$zero -.L0f101b48: -/* f101b48: 51400004 */ beqzl $t2,.L0f101b5c -/* f101b4c: 00001825 */ or $v1,$zero,$zero -/* f101b50: 10000002 */ b .L0f101b5c -/* f101b54: 24030001 */ addiu $v1,$zero,0x1 -/* f101b58: 00001825 */ or $v1,$zero,$zero -.L0f101b5c: -/* f101b5c: 00647821 */ addu $t7,$v1,$a0 -/* f101b60: 01e57021 */ addu $t6,$t7,$a1 -/* f101b64: 01c6c821 */ addu $t9,$t6,$a2 -/* f101b68: 17210019 */ bne $t9,$at,.L0f101bd0 -/* f101b6c: 00000000 */ nop -/* f101b70: 0fc54b60 */ jal optionsGetEffectiveScreenSize -/* f101b74: 00000000 */ nop -/* f101b78: 10400015 */ beqz $v0,.L0f101bd0 -/* f101b7c: 00000000 */ nop -/* f101b80: 0c002f40 */ jal viGetViewLeft -/* f101b84: 00000000 */ nop -/* f101b88: 3c188008 */ lui $t8,%hi(g_ScaleX) -/* f101b8c: 8f18fac0 */ lw $t8,%lo(g_ScaleX)($t8) -/* f101b90: 44972000 */ mtc1 $s7,$f4 -/* f101b94: 0058001a */ div $zero,$v0,$t8 -/* f101b98: 00008012 */ mflo $s0 -/* f101b9c: 26100020 */ addiu $s0,$s0,0x20 -/* f101ba0: 17000002 */ bnez $t8,.L0f101bac -/* f101ba4: 00000000 */ nop -/* f101ba8: 0007000d */ break 0x7 -.L0f101bac: -/* f101bac: 2401ffff */ addiu $at,$zero,-1 -/* f101bb0: 17010004 */ bne $t8,$at,.L0f101bc4 -/* f101bb4: 3c018000 */ lui $at,0x8000 -/* f101bb8: 14410002 */ bne $v0,$at,.L0f101bc4 -/* f101bbc: 00000000 */ nop -/* f101bc0: 0006000d */ break 0x6 -.L0f101bc4: -/* f101bc4: 468020a0 */ cvt.s.w $f2,$f4 -/* f101bc8: 10000031 */ b .L0f101c90 -/* f101bcc: 3c013e80 */ lui $at,0x3e80 -.L0f101bd0: -/* f101bd0: 0c002f22 */ jal viGetViewWidth -/* f101bd4: 00000000 */ nop -/* f101bd8: 00028c00 */ sll $s1,$v0,0x10 -/* f101bdc: 00117c03 */ sra $t7,$s1,0x10 -/* f101be0: 0c002f40 */ jal viGetViewLeft -/* f101be4: 01e08825 */ or $s1,$t7,$zero -/* f101be8: 3c038008 */ lui $v1,%hi(g_ScaleX) -/* f101bec: 8c63fac0 */ lw $v1,%lo(g_ScaleX)($v1) -/* f101bf0: 44974000 */ mtc1 $s7,$f8 -/* f101bf4: 3c013f00 */ lui $at,0x3f00 -/* f101bf8: 0043001a */ div $zero,$v0,$v1 -/* f101bfc: 00007012 */ mflo $t6 -/* f101c00: 44810000 */ mtc1 $at,$f0 -/* f101c04: 468040a0 */ cvt.s.w $f2,$f8 -/* f101c08: 0223001a */ div $zero,$s1,$v1 -/* f101c0c: 0000c812 */ mflo $t9 -/* f101c10: 44995000 */ mtc1 $t9,$f10 -/* f101c14: 14600002 */ bnez $v1,.L0f101c20 -/* f101c18: 00000000 */ nop -/* f101c1c: 0007000d */ break 0x7 -.L0f101c20: -/* f101c20: 2401ffff */ addiu $at,$zero,-1 -/* f101c24: 14610004 */ bne $v1,$at,.L0f101c38 -/* f101c28: 3c018000 */ lui $at,0x8000 -/* f101c2c: 14410002 */ bne $v0,$at,.L0f101c38 -/* f101c30: 00000000 */ nop -/* f101c34: 0006000d */ break 0x6 -.L0f101c38: -/* f101c38: 46805420 */ cvt.s.w $f16,$f10 -/* f101c3c: 14600002 */ bnez $v1,.L0f101c48 -/* f101c40: 00000000 */ nop -/* f101c44: 0007000d */ break 0x7 -.L0f101c48: -/* f101c48: 2401ffff */ addiu $at,$zero,-1 -/* f101c4c: 14610004 */ bne $v1,$at,.L0f101c60 -/* f101c50: 3c018000 */ lui $at,0x8000 -/* f101c54: 16210002 */ bne $s1,$at,.L0f101c60 -/* f101c58: 00000000 */ nop -/* f101c5c: 0006000d */ break 0x6 -.L0f101c60: -/* f101c60: 46008182 */ mul.s $f6,$f16,$f0 -/* f101c64: 4600348d */ trunc.w.s $f18,$f6 -/* f101c68: 46001102 */ mul.s $f4,$f2,$f0 -/* f101c6c: 440f9000 */ mfc1 $t7,$f18 -/* f101c70: 00000000 */ nop -/* f101c74: 01cfc821 */ addu $t9,$t6,$t7 -/* f101c78: 4600220d */ trunc.w.s $f8,$f4 -/* f101c7c: 440e4000 */ mfc1 $t6,$f8 -/* f101c80: 00000000 */ nop -/* f101c84: 032e7823 */ subu $t7,$t9,$t6 -/* f101c88: 01f28021 */ addu $s0,$t7,$s2 -/* f101c8c: 3c013e80 */ lui $at,0x3e80 -.L0f101c90: -/* f101c90: 44815000 */ mtc1 $at,$f10 -/* f101c94: 44800000 */ mtc1 $zero,$f0 -/* f101c98: c7b20100 */ lwc1 $f18,0x100($sp) -/* f101c9c: 460a1402 */ mul.s $f16,$f2,$f10 -/* f101ca0: 4600903c */ c.lt.s $f18,$f0 -/* f101ca4: 4600818d */ trunc.w.s $f6,$f16 -/* f101ca8: 44123000 */ mfc1 $s2,$f6 -/* f101cac: 00000000 */ nop -/* f101cb0: 2652ffff */ addiu $s2,$s2,-1 -/* f101cb4: 02128821 */ addu $s1,$s0,$s2 -/* f101cb8: 45000002 */ bc1f .L0f101cc4 -/* f101cbc: 26330002 */ addiu $s3,$s1,0x2 -/* f101cc0: e7a00100 */ swc1 $f0,0x100($sp) -.L0f101cc4: -/* f101cc4: 8fb901d8 */ lw $t9,0x1d8($sp) -/* f101cc8: 3c0fe700 */ lui $t7,0xe700 -/* f101ccc: 272e0008 */ addiu $t6,$t9,0x8 -/* f101cd0: afae01d8 */ sw $t6,0x1d8($sp) -/* f101cd4: af200004 */ sw $zero,0x4($t9) -/* f101cd8: af2f0000 */ sw $t7,0x0($t9) -/* f101cdc: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f101ce0: 3c0eba00 */ lui $t6,0xba00 -/* f101ce4: 35ce1402 */ ori $t6,$t6,0x1402 -/* f101ce8: 27190008 */ addiu $t9,$t8,0x8 -/* f101cec: afb901d8 */ sw $t9,0x1d8($sp) -/* f101cf0: af000004 */ sw $zero,0x4($t8) -/* f101cf4: af0e0000 */ sw $t6,0x0($t8) -/* f101cf8: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f101cfc: 3c0e0050 */ lui $t6,0x50 -/* f101d00: 3c19b900 */ lui $t9,0xb900 -/* f101d04: 25f80008 */ addiu $t8,$t7,0x8 -/* f101d08: afb801d8 */ sw $t8,0x1d8($sp) -/* f101d0c: 3739031d */ ori $t9,$t9,0x31d -/* f101d10: 35ce4240 */ ori $t6,$t6,0x4240 -/* f101d14: adee0004 */ sw $t6,0x4($t7) -/* f101d18: adf90000 */ sw $t9,0x0($t7) -/* f101d1c: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f101d20: 3c19fcff */ lui $t9,0xfcff -/* f101d24: 3c0efffd */ lui $t6,0xfffd -/* f101d28: 25f80008 */ addiu $t8,$t7,0x8 -/* f101d2c: afb801d8 */ sw $t8,0x1d8($sp) -/* f101d30: 35cef6fb */ ori $t6,$t6,0xf6fb -/* f101d34: 3739ffff */ ori $t9,$t9,0xffff -/* f101d38: adf90000 */ sw $t9,0x0($t7) -/* f101d3c: adee0004 */ sw $t6,0x4($t7) -/* f101d40: 0c002f26 */ jal viGetViewHeight -/* f101d44: e7a20068 */ swc1 $f2,0x68($sp) -/* f101d48: 0002a400 */ sll $s4,$v0,0x10 -/* f101d4c: 00147c03 */ sra $t7,$s4,0x10 -/* f101d50: 0c002f44 */ jal viGetViewTop -/* f101d54: 01e0a025 */ or $s4,$t7,$zero -/* f101d58: 3c04800a */ lui $a0,%hi(g_Vars) -/* f101d5c: 24849fc0 */ addiu $a0,$a0,%lo(g_Vars) -/* f101d60: 8c98006c */ lw $t8,0x6c($a0) -/* f101d64: c7a20068 */ lwc1 $f2,0x68($sp) -/* f101d68: 00001825 */ or $v1,$zero,$zero -/* f101d6c: 13000003 */ beqz $t8,.L0f101d7c -/* f101d70: 00003025 */ or $a2,$zero,$zero -/* f101d74: 10000001 */ b .L0f101d7c -/* f101d78: 24030001 */ addiu $v1,$zero,0x1 -.L0f101d7c: -/* f101d7c: 8c990068 */ lw $t9,0x68($a0) -/* f101d80: 00002825 */ or $a1,$zero,$zero -/* f101d84: 13200003 */ beqz $t9,.L0f101d94 -/* f101d88: 00000000 */ nop -/* f101d8c: 10000001 */ b .L0f101d94 -/* f101d90: 24060001 */ addiu $a2,$zero,0x1 -.L0f101d94: -/* f101d94: 8c8e0064 */ lw $t6,0x64($a0) -/* f101d98: 3c0cfa00 */ lui $t4,0xfa00 -/* f101d9c: 11c00003 */ beqz $t6,.L0f101dac -/* f101da0: 00000000 */ nop -/* f101da4: 10000001 */ b .L0f101dac -/* f101da8: 24050001 */ addiu $a1,$zero,0x1 -.L0f101dac: -/* f101dac: 8c8f0070 */ lw $t7,0x70($a0) -/* f101db0: 00002025 */ or $a0,$zero,$zero -/* f101db4: c7a80100 */ lwc1 $f8,0x100($sp) -/* f101db8: 11e00003 */ beqz $t7,.L0f101dc8 -/* f101dbc: 00000000 */ nop -/* f101dc0: 10000001 */ b .L0f101dc8 -/* f101dc4: 24040001 */ addiu $a0,$zero,0x1 -.L0f101dc8: -/* f101dc8: 0085c021 */ addu $t8,$a0,$a1 -/* f101dcc: 0306c821 */ addu $t9,$t8,$a2 -/* f101dd0: 03237021 */ addu $t6,$t9,$v1 -/* f101dd4: 29c10002 */ slti $at,$t6,0x2 -/* f101dd8: 14200003 */ bnez $at,.L0f101de8 -/* f101ddc: 00027c00 */ sll $t7,$v0,0x10 -/* f101de0: 10000002 */ b .L0f101dec -/* f101de4: 24030013 */ addiu $v1,$zero,0x13 -.L0f101de8: -/* f101de8: 24030022 */ addiu $v1,$zero,0x22 -.L0f101dec: -/* f101dec: 000fc403 */ sra $t8,$t7,0x10 -/* f101df0: 0314c821 */ addu $t9,$t8,$s4 -/* f101df4: 13c0005e */ beqz $s8,.L0f101f70 -/* f101df8: 03233823 */ subu $a3,$t9,$v1 -/* f101dfc: 44928000 */ mtc1 $s2,$f16 -/* f101e00: 3c013e80 */ lui $at,0x3e80 -/* f101e04: 44812000 */ mtc1 $at,$f4 -/* f101e08: 468081a0 */ cvt.s.w $f6,$f16 -/* f101e0c: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f101e10: 3c014080 */ lui $at,0x4080 -/* f101e14: 3c0eff00 */ lui $t6,0xff00 -/* f101e18: 27190008 */ addiu $t9,$t8,0x8 -/* f101e1c: 46082281 */ sub.s $f10,$f4,$f8 -/* f101e20: 44812000 */ mtc1 $at,$f4 -/* f101e24: afb901d8 */ sw $t9,0x1d8($sp) -/* f101e28: 3c0b8008 */ lui $t3,%hi(g_ScaleX) -/* f101e2c: 460a3482 */ mul.s $f18,$f6,$f10 -/* f101e30: 3c0cfa00 */ lui $t4,0xfa00 -/* f101e34: 35ce0060 */ ori $t6,$t6,0x60 -/* f101e38: 256bfac0 */ addiu $t3,$t3,%lo(g_ScaleX) -/* f101e3c: af0e0004 */ sw $t6,0x4($t8) -/* f101e40: af0c0000 */ sw $t4,0x0($t8) -/* f101e44: 8d6e0000 */ lw $t6,0x0($t3) -/* f101e48: 46049202 */ mul.s $f8,$f18,$f4 -/* f101e4c: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f101e50: 022e0019 */ multu $s1,$t6 -/* f101e54: 00f54821 */ addu $t1,$a3,$s5 -/* f101e58: 312303ff */ andi $v1,$t1,0x3ff -/* f101e5c: 24b80008 */ addiu $t8,$a1,0x8 -/* f101e60: afb801d8 */ sw $t8,0x1d8($sp) -/* f101e64: 4600440d */ trunc.w.s $f16,$f8 -/* f101e68: 0003c880 */ sll $t9,$v1,0x2 -/* f101e6c: 03201825 */ or $v1,$t9,$zero -/* f101e70: 30e203ff */ andi $v0,$a3,0x3ff -/* f101e74: 440f8000 */ mfc1 $t7,$f16 -/* f101e78: 3c078008 */ lui $a3,%hi(g_ScaleX) -/* f101e7c: 240d0080 */ addiu $t5,$zero,0x80 -/* f101e80: 022f3023 */ subu $a2,$s1,$t7 -/* f101e84: 00007812 */ mflo $t7 -/* f101e88: 31f803ff */ andi $t8,$t7,0x3ff -/* f101e8c: 0018cb80 */ sll $t9,$t8,0xe -/* f101e90: 03367025 */ or $t6,$t9,$s6 -/* f101e94: 01c37825 */ or $t7,$t6,$v1 -/* f101e98: acaf0000 */ sw $t7,0x0($a1) -/* f101e9c: 8d790000 */ lw $t9,0x0($t3) -/* f101ea0: 0002c080 */ sll $t8,$v0,0x2 -/* f101ea4: 03001025 */ or $v0,$t8,$zero -/* f101ea8: 00d90019 */ multu $a2,$t9 -/* f101eac: 24e7fac0 */ addiu $a3,$a3,%lo(g_ScaleX) -/* f101eb0: 00007012 */ mflo $t6 -/* f101eb4: 31cf03ff */ andi $t7,$t6,0x3ff -/* f101eb8: 000fc380 */ sll $t8,$t7,0xe -/* f101ebc: 0302c825 */ or $t9,$t8,$v0 -/* f101ec0: acb90004 */ sw $t9,0x4($a1) -/* f101ec4: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f101ec8: 25cf0008 */ addiu $t7,$t6,0x8 -/* f101ecc: afaf01d8 */ sw $t7,0x1d8($sp) -/* f101ed0: adcd0004 */ sw $t5,0x4($t6) -/* f101ed4: adcc0000 */ sw $t4,0x0($t6) -/* f101ed8: 8cee0000 */ lw $t6,0x0($a3) -/* f101edc: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f101ee0: 00ce0019 */ multu $a2,$t6 -/* f101ee4: 24990008 */ addiu $t9,$a0,0x8 -/* f101ee8: afb901d8 */ sw $t9,0x1d8($sp) -/* f101eec: 02173021 */ addu $a2,$s0,$s7 -/* f101ef0: 00007812 */ mflo $t7 -/* f101ef4: 31f803ff */ andi $t8,$t7,0x3ff -/* f101ef8: 0018cb80 */ sll $t9,$t8,0xe -/* f101efc: 03367025 */ or $t6,$t9,$s6 -/* f101f00: 01c37825 */ or $t7,$t6,$v1 -/* f101f04: ac8f0000 */ sw $t7,0x0($a0) -/* f101f08: 8cf80000 */ lw $t8,0x0($a3) -/* f101f0c: 02180019 */ multu $s0,$t8 -/* f101f10: 0000c812 */ mflo $t9 -/* f101f14: 332e03ff */ andi $t6,$t9,0x3ff -/* f101f18: 000e7b80 */ sll $t7,$t6,0xe -/* f101f1c: 01e2c025 */ or $t8,$t7,$v0 -/* f101f20: ac980004 */ sw $t8,0x4($a0) -/* f101f24: 8cef0000 */ lw $t7,0x0($a3) -/* f101f28: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f101f2c: 00cf0019 */ multu $a2,$t7 -/* f101f30: 24ae0008 */ addiu $t6,$a1,0x8 -/* f101f34: afae01d8 */ sw $t6,0x1d8($sp) -/* f101f38: 0000c012 */ mflo $t8 -/* f101f3c: 331903ff */ andi $t9,$t8,0x3ff -/* f101f40: 00197380 */ sll $t6,$t9,0xe -/* f101f44: 01d67825 */ or $t7,$t6,$s6 -/* f101f48: 01e3c025 */ or $t8,$t7,$v1 -/* f101f4c: acb80000 */ sw $t8,0x0($a1) -/* f101f50: 8cf90000 */ lw $t9,0x0($a3) -/* f101f54: 02790019 */ multu $s3,$t9 -/* f101f58: 00007012 */ mflo $t6 -/* f101f5c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f101f60: 000fc380 */ sll $t8,$t7,0xe -/* f101f64: 0302c825 */ or $t9,$t8,$v0 -/* f101f68: 10000059 */ b .L0f1020d0 -/* f101f6c: acb90004 */ sw $t9,0x4($a1) -.L0f101f70: -/* f101f70: 8fae01d8 */ lw $t6,0x1d8($sp) -/* f101f74: 3c1800c0 */ lui $t8,0xc0 -/* f101f78: 37180060 */ ori $t8,$t8,0x60 -/* f101f7c: 25cf0008 */ addiu $t7,$t6,0x8 -/* f101f80: afaf01d8 */ sw $t7,0x1d8($sp) -/* f101f84: add80004 */ sw $t8,0x4($t6) -/* f101f88: 3c188008 */ lui $t8,%hi(g_ScaleX) -/* f101f8c: adcc0000 */ sw $t4,0x0($t6) -/* f101f90: 8f18fac0 */ lw $t8,%lo(g_ScaleX)($t8) -/* f101f94: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f101f98: 00f54821 */ addu $t1,$a3,$s5 -/* f101f9c: 02380019 */ multu $s1,$t8 -/* f101fa0: 312303ff */ andi $v1,$t1,0x3ff -/* f101fa4: 24ae0008 */ addiu $t6,$a1,0x8 -/* f101fa8: afae01d8 */ sw $t6,0x1d8($sp) -/* f101fac: 00037880 */ sll $t7,$v1,0x2 -/* f101fb0: 01e01825 */ or $v1,$t7,$zero -/* f101fb4: 30e203ff */ andi $v0,$a3,0x3ff -/* f101fb8: 240d0080 */ addiu $t5,$zero,0x80 -/* f101fbc: 0000c812 */ mflo $t9 -/* f101fc0: 332e03ff */ andi $t6,$t9,0x3ff -/* f101fc4: 000e7b80 */ sll $t7,$t6,0xe -/* f101fc8: 01f6c025 */ or $t8,$t7,$s6 -/* f101fcc: 0303c825 */ or $t9,$t8,$v1 -/* f101fd0: 3c0f8008 */ lui $t7,%hi(g_ScaleX) -/* f101fd4: acb90000 */ sw $t9,0x0($a1) -/* f101fd8: 8deffac0 */ lw $t7,%lo(g_ScaleX)($t7) -/* f101fdc: 00027080 */ sll $t6,$v0,0x2 -/* f101fe0: 01c01025 */ or $v0,$t6,$zero -/* f101fe4: 020f0019 */ multu $s0,$t7 -/* f101fe8: 0000c012 */ mflo $t8 -/* f101fec: 331903ff */ andi $t9,$t8,0x3ff -/* f101ff0: 00197380 */ sll $t6,$t9,0xe -/* f101ff4: 01c27825 */ or $t7,$t6,$v0 -/* f101ff8: acaf0004 */ sw $t7,0x4($a1) -/* f101ffc: c7a60100 */ lwc1 $f6,0x100($sp) -/* f102000: 3c188008 */ lui $t8,%hi(g_ScaleX) -/* f102004: 8f18fac0 */ lw $t8,%lo(g_ScaleX)($t8) -/* f102008: 46061282 */ mul.s $f10,$f2,$f6 -/* f10200c: 8faa01d8 */ lw $t2,0x1d8($sp) -/* f102010: 254f0008 */ addiu $t7,$t2,0x8 -/* f102014: afaf01d8 */ sw $t7,0x1d8($sp) -/* f102018: 4600548d */ trunc.w.s $f18,$f10 -/* f10201c: 44199000 */ mfc1 $t9,$f18 -/* f102020: 00000000 */ nop -/* f102024: 03303021 */ addu $a2,$t9,$s0 -/* f102028: 00d80019 */ multu $a2,$t8 -/* f10202c: 00c04025 */ or $t0,$a2,$zero -/* f102030: 02173021 */ addu $a2,$s0,$s7 -/* f102034: 0000c812 */ mflo $t9 -/* f102038: 332e03ff */ andi $t6,$t9,0x3ff -/* f10203c: 000e7b80 */ sll $t7,$t6,0xe -/* f102040: 01f6c025 */ or $t8,$t7,$s6 -/* f102044: 0303c825 */ or $t9,$t8,$v1 -/* f102048: 3c0e8008 */ lui $t6,%hi(g_ScaleX) -/* f10204c: ad590000 */ sw $t9,0x0($t2) -/* f102050: 8dcefac0 */ lw $t6,%lo(g_ScaleX)($t6) -/* f102054: 026e0019 */ multu $s3,$t6 -/* f102058: 00007812 */ mflo $t7 -/* f10205c: 31f803ff */ andi $t8,$t7,0x3ff -/* f102060: 0018cb80 */ sll $t9,$t8,0xe -/* f102064: 03227025 */ or $t6,$t9,$v0 -/* f102068: ad4e0004 */ sw $t6,0x4($t2) -/* f10206c: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f102070: 25f80008 */ addiu $t8,$t7,0x8 -/* f102074: afb801d8 */ sw $t8,0x1d8($sp) -/* f102078: aded0004 */ sw $t5,0x4($t7) -/* f10207c: adec0000 */ sw $t4,0x0($t7) -/* f102080: 3c0f8008 */ lui $t7,%hi(g_ScaleX) -/* f102084: 8deffac0 */ lw $t7,%lo(g_ScaleX)($t7) -/* f102088: 8fa501d8 */ lw $a1,0x1d8($sp) -/* f10208c: 00cf0019 */ multu $a2,$t7 -/* f102090: 24ae0008 */ addiu $t6,$a1,0x8 -/* f102094: afae01d8 */ sw $t6,0x1d8($sp) -/* f102098: 0000c012 */ mflo $t8 -/* f10209c: 331903ff */ andi $t9,$t8,0x3ff -/* f1020a0: 00197380 */ sll $t6,$t9,0xe -/* f1020a4: 01d67825 */ or $t7,$t6,$s6 -/* f1020a8: 01e3c025 */ or $t8,$t7,$v1 -/* f1020ac: 3c198008 */ lui $t9,%hi(g_ScaleX) -/* f1020b0: acb80000 */ sw $t8,0x0($a1) -/* f1020b4: 8f39fac0 */ lw $t9,%lo(g_ScaleX)($t9) -/* f1020b8: 01190019 */ multu $t0,$t9 -/* f1020bc: 00007012 */ mflo $t6 -/* f1020c0: 31cf03ff */ andi $t7,$t6,0x3ff -/* f1020c4: 000fc380 */ sll $t8,$t7,0xe -/* f1020c8: 0302c825 */ or $t9,$t8,$v0 -/* f1020cc: acb90004 */ sw $t9,0x4($a1) -.L0f1020d0: -/* f1020d0: 44952000 */ mtc1 $s5,$f4 -/* f1020d4: 8faf01d8 */ lw $t7,0x1d8($sp) -/* f1020d8: 3c013f40 */ lui $at,0x3f40 -/* f1020dc: 46802220 */ cvt.s.w $f8,$f4 -/* f1020e0: 25f80008 */ addiu $t8,$t7,0x8 -/* f1020e4: 44818000 */ mtc1 $at,$f16 -/* f1020e8: afb801d8 */ sw $t8,0x1d8($sp) -/* f1020ec: 3c1900c0 */ lui $t9,0xc0 -/* f1020f0: 37390060 */ ori $t9,$t9,0x60 -/* f1020f4: adf90004 */ sw $t9,0x4($t7) -/* f1020f8: adec0000 */ sw $t4,0x0($t7) -/* f1020fc: 46104182 */ mul.s $f6,$f8,$f16 -/* f102100: c7b200fc */ lwc1 $f18,0xfc($sp) -/* f102104: 3c1f8008 */ lui $ra,%hi(g_ScaleX) -/* f102108: 27fffac0 */ addiu $ra,$ra,%lo(g_ScaleX) -/* f10210c: 46121102 */ mul.s $f4,$f2,$f18 -/* f102110: 8ff80000 */ lw $t8,0x0($ra) -/* f102114: 8fa401d8 */ lw $a0,0x1d8($sp) -/* f102118: 25250002 */ addiu $a1,$t1,0x2 -/* f10211c: 30aa03ff */ andi $t2,$a1,0x3ff -/* f102120: 24990008 */ addiu $t9,$a0,0x8 -/* f102124: 4600328d */ trunc.w.s $f10,$f6 -/* f102128: afb901d8 */ sw $t9,0x1d8($sp) -/* f10212c: 3c038008 */ lui $v1,%hi(g_ScaleX) -/* f102130: 4600220d */ trunc.w.s $f8,$f4 -/* f102134: 44155000 */ mfc1 $s5,$f10 -/* f102138: 2463fac0 */ addiu $v1,$v1,%lo(g_ScaleX) -/* f10213c: 440f4000 */ mfc1 $t7,$f8 -/* f102140: 00b53821 */ addu $a3,$a1,$s5 -/* f102144: 30ee03ff */ andi $t6,$a3,0x3ff -/* f102148: 01f04021 */ addu $t0,$t7,$s0 -/* f10214c: 01180019 */ multu $t0,$t8 -/* f102150: 000e3880 */ sll $a3,$t6,0x2 -/* f102154: 0000c812 */ mflo $t9 -/* f102158: 332e03ff */ andi $t6,$t9,0x3ff -/* f10215c: 000e7b80 */ sll $t7,$t6,0xe -/* f102160: 01f6c025 */ or $t8,$t7,$s6 -/* f102164: 0307c825 */ or $t9,$t8,$a3 -/* f102168: ac990000 */ sw $t9,0x0($a0) -/* f10216c: 8fef0000 */ lw $t7,0x0($ra) -/* f102170: 000a7080 */ sll $t6,$t2,0x2 -/* f102174: 01c05025 */ or $t2,$t6,$zero -/* f102178: 020f0019 */ multu $s0,$t7 -/* f10217c: 0000c012 */ mflo $t8 -/* f102180: 331903ff */ andi $t9,$t8,0x3ff -/* f102184: 00197380 */ sll $t6,$t9,0xe -/* f102188: 01ca7825 */ or $t7,$t6,$t2 -/* f10218c: ac8f0004 */ sw $t7,0x4($a0) -/* f102190: 8fb801d8 */ lw $t8,0x1d8($sp) -/* f102194: 27190008 */ addiu $t9,$t8,0x8 -/* f102198: afb901d8 */ sw $t9,0x1d8($sp) -/* f10219c: af0d0004 */ sw $t5,0x4($t8) -/* f1021a0: af0c0000 */ sw $t4,0x0($t8) -/* f1021a4: 8c780000 */ lw $t8,0x0($v1) -/* f1021a8: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f1021ac: 00d80019 */ multu $a2,$t8 -/* f1021b0: 244f0008 */ addiu $t7,$v0,0x8 -/* f1021b4: afaf01d8 */ sw $t7,0x1d8($sp) -/* f1021b8: 0000c812 */ mflo $t9 -/* f1021bc: 332e03ff */ andi $t6,$t9,0x3ff -/* f1021c0: 000e7b80 */ sll $t7,$t6,0xe -/* f1021c4: 01f6c025 */ or $t8,$t7,$s6 -/* f1021c8: 0307c825 */ or $t9,$t8,$a3 -/* f1021cc: ac590000 */ sw $t9,0x0($v0) -/* f1021d0: 8c6e0000 */ lw $t6,0x0($v1) -/* f1021d4: 010e0019 */ multu $t0,$t6 -/* f1021d8: 00007812 */ mflo $t7 -/* f1021dc: 31f803ff */ andi $t8,$t7,0x3ff -/* f1021e0: 0018cb80 */ sll $t9,$t8,0xe -/* f1021e4: 032a7025 */ or $t6,$t9,$t2 -/* f1021e8: ac4e0004 */ sw $t6,0x4($v0) -/* f1021ec: 8fbf004c */ lw $ra,0x4c($sp) -.L0f1021f0: -/* f1021f0: 240f0001 */ addiu $t7,$zero,0x1 -/* f1021f4: 3c018008 */ lui $at,%hi(g_ScaleX) -/* f1021f8: 8fa201d8 */ lw $v0,0x1d8($sp) -/* f1021fc: 8fb00028 */ lw $s0,0x28($sp) -/* f102200: 8fb1002c */ lw $s1,0x2c($sp) -/* f102204: 8fb20030 */ lw $s2,0x30($sp) -/* f102208: 8fb30034 */ lw $s3,0x34($sp) -/* f10220c: 8fb40038 */ lw $s4,0x38($sp) -/* f102210: 8fb5003c */ lw $s5,0x3c($sp) -/* f102214: 8fb60040 */ lw $s6,0x40($sp) -/* f102218: 8fb70044 */ lw $s7,0x44($sp) -/* f10221c: 8fbe0048 */ lw $s8,0x48($sp) -/* f102220: ac2ffac0 */ sw $t7,%lo(g_ScaleX)($at) -/* f102224: 03e00008 */ jr $ra -/* f102228: 27bd01d8 */ addiu $sp,$sp,0x1d8 -); + if (!(g_MissionConfig.iscoop && amGetFirstBuddyIndex() >= 0) + && g_Vars.normmplayerisrunning + && g_AmMenus[g_AmIndex].screenindex >= 2) { + gdl = amRenderAibotInfo(gdl, g_AmMenus[g_AmIndex].screenindex - 2); + } +#else + if (!(g_MissionConfig.iscoop && amGetFirstBuddyIndex() >= 0) + && vars->normmplayerisrunning + && g_AmMenus[g_AmIndex].screenindex >= 2) { + gdl = amRenderAibotInfo(gdl, g_AmMenus[g_AmIndex].screenindex - 2); + } +#endif + } + + // Note: the column and row values will never be 1 here, so this + // condition always passes. Looks like they intended to skip drawing the + // selection box on the simulants screen if the middle box was selected. + if (g_AmMenus[g_AmIndex].screenindex < 2 || column != 1 || row != 1) { + // Render selection + s32 halfwidth; + s16 above; + s16 below; + +#if VERSION == VERSION_JPN_FINAL + above = 7; + below = 7; +#else + above = 6; + below = 6; + + if (PLAYERCOUNT() >= 2) { + above = 5; + below = 3; + } +#endif + + colour = (sinf(g_AmMenus[g_AmIndex].selpulse) + 1) * 127; + colour = 0xff0000ff | colour << 8 | colour << 16; + + if (g_Vars.currentplayer->activemenumode == AMMODE_EDIT) { + colour = 0x4f4f4f7f; + } + + gdl = textSetPrimColour(gdl, colour); + + halfwidth = g_AmMenus[g_AmIndex].slotwidth / 2; + +#if VERSION >= VERSION_NTSC_1_0 + if (g_AmMenus[g_AmIndex].slotnum == 4) { + if (amIsCramped()) { + halfwidth = 1; + above = 2; + below = 0; + } else if (PLAYERCOUNT() >= 2) { + s32 textheight; + s32 textwidth; + char text[32]; + u32 flags; + + amGetSlotDetails(4, &flags, text); + textMeasure(&textheight, &textwidth, text, g_AmFont1, g_AmFont2, 0); + + halfwidth = textwidth / 2 + 2; + } + } +#else + if (g_AmMenus[g_AmIndex].slotnum == 4 && amIsCramped()) { + halfwidth = 4; + } +#endif + + // Top + gDPFillRectangleScaled(gdl++, + g_AmMenus[g_AmIndex].selx - halfwidth, + g_AmMenus[g_AmIndex].sely - above, + g_AmMenus[g_AmIndex].selx + halfwidth + 1, + g_AmMenus[g_AmIndex].sely - above + 1); + + // Bottom + gDPFillRectangleScaled(gdl++, + g_AmMenus[g_AmIndex].selx - halfwidth, + g_AmMenus[g_AmIndex].sely + below, + g_AmMenus[g_AmIndex].selx + halfwidth + 1, + g_AmMenus[g_AmIndex].sely + below + 1); + + // Left + gDPFillRectangleScaled(gdl++, + g_AmMenus[g_AmIndex].selx - halfwidth, + g_AmMenus[g_AmIndex].sely - above + 1, + g_AmMenus[g_AmIndex].selx - halfwidth + 1, + g_AmMenus[g_AmIndex].sely + below); + + // Right + gDPFillRectangleScaled(gdl++, + g_AmMenus[g_AmIndex].selx + halfwidth, + g_AmMenus[g_AmIndex].sely - above + 1, + g_AmMenus[g_AmIndex].selx + halfwidth + 1, + g_AmMenus[g_AmIndex].sely + below); + + gdl = text0f153838(gdl); + } + + gdl = text0f153780(gdl); + } + +#if VERSION != VERSION_JPN_FINAL + chr = g_Vars.currentplayer->commandingaibot; + + if (chr) { + // Render health bar + f32 healthfrac = (chr->maxdamage - chr->damage) / chr->maxdamage; + f32 shieldfrac = chr->cshield * 0.125f; + bool redhealth = false; + s32 xoffset; + s32 barwidth; + s32 barheight; + s32 part1width; + s32 part1left; + s32 part2left; + s32 y; + s32 a2; + + if (healthfrac < 0.25f) { + redhealth = true; + } + + barwidth = PLAYERCOUNT() >= 2 ? 48 : 64; + barheight = PLAYERCOUNT() >= 2 ? 7 : 11; + xoffset = 0; + +#if VERSION >= VERSION_NTSC_1_0 + if ((PLAYERCOUNT() == 2 && (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL || IS4MB())) || PLAYERCOUNT() >= 3) { + xoffset = (g_Vars.currentplayernum & 1) == 0 ? 8 : -8; + } + + if (PLAYERCOUNT() == 1 && optionsGetEffectiveScreenSize() != SCREENSIZE_FULL) { + part1left = viGetViewLeft() / g_ScaleX + 32; + } else { + part1left = (s32) ((viGetViewWidth() / g_ScaleX) * 0.5f) + + (s32) (viGetViewLeft() / g_ScaleX) + - (s32) (barwidth * 0.5f) + + xoffset; + } +#else + if ((PLAYERCOUNT() == 2 && optionsGetScreenSplit() == SCREENSPLIT_VERTICAL) || PLAYERCOUNT() >= 3) { + xoffset = (g_Vars.currentplayernum & 1) == 0 ? 8 : -8; + } + + part1left = (s32) ((viGetViewWidth() / g_ScaleX) * 0.5f) + + (s32) (viGetViewLeft() / g_ScaleX) + - (s32) (barwidth * 0.5f) + + xoffset; +#endif + + part1width = (s32) (barwidth * 0.25f) - 1; + if (part1width); + part2left = part1left + part1width + 2; + + if (healthfrac < 0) { + healthfrac = 0; + } + + gDPPipeSync(gdl++); + gDPSetCycleType(gdl++, G_CYC_1CYCLE); + gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); + gDPSetCombineMode(gdl++, G_CC_PRIMITIVE, G_CC_PRIMITIVE); + + y = viGetViewTop() + viGetViewHeight() - (PLAYERCOUNT() >= 2 ? 19 : 34); + + if (redhealth) { + a2 = part1left + part1width - (s32) (part1width * (0.25f - healthfrac) * 4.0f); + + gDPSetPrimColorViaWord(gdl++, 0, 0, 0xff000060); + + // Part 1 red + gDPFillRectangleScaled(gdl++, a2, y, part1left + part1width, y + barheight); + + gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00000080); + + // Part 1 black + gDPFillRectangleScaled(gdl++, part1left, y, a2, y + barheight); + + // Part 2 black + gDPFillRectangleScaled(gdl++, part2left, y, part1left + barwidth, y + barheight); + } else { + gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00c00060); + + // Part 1 green + gDPFillRectangleScaled(gdl++, part1left, y, part1left + part1width, y + barheight); + + // Part 2 green + a2 = part1left + (s32) (barwidth * healthfrac); + + gDPFillRectangleScaled(gdl++, part2left, y, a2, y + barheight); + + gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00000080); + + // Part 2 black + gDPFillRectangleScaled(gdl++, a2, y, part1left + barwidth, y + barheight); + } + + // Render shield bar + y = y + barheight + 2; + barheight = barheight * 0.75f; + + gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00c00060); + + a2 = part1left + (s32) (barwidth * shieldfrac); + + gDPFillRectangleScaled(gdl++, part1left, y, a2, y + barheight); + + gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00000080); + + gDPFillRectangleScaled(gdl++, a2, y, part1left + barwidth, y + barheight); + } +#endif + + g_ScaleX = 1; + + return gdl; +} #else GLOBAL_ASM( glabel amRender @@ -8327,421 +3095,3 @@ glabel amRender /* f0fe0f4: 27bd01b0 */ addiu $sp,$sp,0x1b0 ); #endif - -// Mismatch: Health bar rectangles near the end are just hopeless. -//Gfx *amRender(Gfx *gdl) -//{ -// u32 mode; -// u32 flags; // 1d0 -// u32 *colours; -// struct gfxvtx *vertices; -// s32 mpchrnum; // 1c4 -// s16 column; -// s16 row; -// u32 colour; -// s16 xb; // 1ba -// s16 yb; // 1b8 -// s16 xa; // 182 -// s16 ya; // 180 -// char text1[32]; // 15c -// s32 textheight; // 13c -// s32 textwidth; // 138 -// char text2[32]; // 118 -// u32 flags2; // 114 -// struct chrdata *chr; -// s16 tmp1; -// s16 tmp2; -// s32 buddynum; -// -// if (g_ViRes == VIRES_HI) { -// g_ScaleX = 2; -// } else { -// g_ScaleX = 1; -// } -// -// g_AmIndex = g_Vars.currentplayernum; -// g_Vars.currentplayer->commandingaibot = NULL; -// -// if (g_Vars.currentplayer->activemenumode != AMMODE_CLOSED) { -// // Draw diamond -// gdl = text0f153628(gdl); -// -// if (g_Vars.normmplayerisrunning -// && g_AmMenus[g_AmIndex].screenindex >= 2) { -// mpchrnum = g_Vars.currentplayer->aibuddynums[g_AmMenus[g_AmIndex].screenindex - 2]; -// } -// -// if (g_AmMenus[g_AmIndex].dstx == -123) { -// amCalculateSlotPosition( -// g_AmMenus[g_AmIndex].slotnum % 3, -// g_AmMenus[g_AmIndex].slotnum / 3, -// &g_AmMenus[g_AmIndex].selx, -// &g_AmMenus[g_AmIndex].sely); -// g_AmMenus[g_AmIndex].dstx = g_AmMenus[g_AmIndex].selx; -// g_AmMenus[g_AmIndex].dsty = g_AmMenus[g_AmIndex].sely; -// } else { -// amCalculateSlotPosition( -// g_AmMenus[g_AmIndex].slotnum % 3, -// g_AmMenus[g_AmIndex].slotnum / 3, -// &g_AmMenus[g_AmIndex].dstx, -// &g_AmMenus[g_AmIndex].dsty); -// } -// -// gdl = func0f0d479c(gdl); -// -// colours = gfxAllocateColours(2); -// vertices = gfxAllocateVertices(8); -// -// gDPPipeSync(gdl++); -// gDPSetCycleType(gdl++, G_CYC_1CYCLE); -// gDPSetAlphaCompare(gdl++, G_AC_NONE); -// gDPSetAlphaDither(gdl++, G_AD_NOISE); -// gDPSetCombineMode(gdl++, G_CC_MODULATEI, G_CC_MODULATEI); -// gSPClearGeometryMode(gdl++, G_CULL_BOTH); -// -// texSelect(&gdl, NULL, 2, 0, 2, 1, NULL); -// -// gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); -// -// // Top -// amCalculateSlotPosition(1, 0, &xb, &yb); -// -// vertices[0].x = xb * 10; -// vertices[0].y = yb * 10; -// vertices[0].z = -10; -// -// // Right -// amCalculateSlotPosition(2, 1, &xb, &yb); -// -// vertices[1].x = xb * 10; -// vertices[1].y = yb * 10; -// vertices[1].z = -10; -// -// // Bottom -// amCalculateSlotPosition(1, 2, &xb, &yb); -// -// vertices[2].x = xb * 10; -// vertices[2].y = yb * 10; -// vertices[2].z = -10; -// -// // Left -// amCalculateSlotPosition(0, 1, &xb, &yb); -// -// vertices[3].x = xb * 10; -// vertices[3].y = yb * 10; -// vertices[3].z = -10; -// -// vertices[4].z = -10; -// vertices[5].z = -10; -// vertices[6].z = -10; -// vertices[7].z = -10; -// -// tmp2 = (vertices[1].x - vertices[3].x) / 8; -// tmp1 = (vertices[2].y - vertices[0].y) / 8; -// -// vertices[4].x = vertices[0].x; -// vertices[4].y = vertices[0].y + tmp1; -// vertices[5].x = vertices[1].x - tmp2; -// vertices[5].y = vertices[1].y; -// vertices[6].x = vertices[2].x; -// vertices[6].y = vertices[2].y - tmp1; -// vertices[7].x = vertices[3].x + tmp2; -// vertices[7].y = vertices[3].y; -// -// vertices[0].colour = 0; -// vertices[1].colour = 0; -// vertices[2].colour = 0; -// vertices[3].colour = 0; -// vertices[4].colour = 4; -// vertices[5].colour = 4; -// vertices[6].colour = 4; -// vertices[7].colour = 4; -// -// colours[0] = 0x22222200; -// colours[1] = 0x0000004f; -// -// gDPSetColorArray(gdl++, osVirtualToPhysical(colours), 2); -// gDPSetVerticeArray(gdl++, osVirtualToPhysical(vertices), 8); -// -// gDPTri2(gdl++, 4, 5, 6, 6, 7, 4); -// gDPTri4(gdl++, 0, 4, 7, 7, 3, 0, 0, 1, 5, 5, 4, 0); -// gDPTri4(gdl++, 1, 2, 6, 6, 5, 1, 6, 2, 3, 3, 7, 6); -// -// gdl = func0f0d49c8(gdl); -// -// // Draw slots -// for (column = 0; column < 3; column++) { -// for (row = 0; row < 3; row++) { -// // 06c -// mode = AMSLOTMODE_DEFAULT; -// amCalculateSlotPosition(column, row, &xa, &ya); -// flags = 0; -// -// // 0a0 -// if (column + row * 3 == g_AmMenus[g_AmIndex].slotnum) { -// mode = AMSLOTMODE_FOCUSED; -// } -// -// // 0b0 -// if (g_MissionConfig.iscoop -// && (buddynum = amGetFirstBuddyIndex(), buddynum >= 0)) { -// if (mode == AMSLOTMODE_DEFAULT && g_AmMenus[g_AmIndex].screenindex >= 2) { -// struct chrdata *chr = g_Vars.aibuddies[buddynum]->chr; -// -// if (var800719a0[row][column] == 7) { -// if (chr->hidden & CHRHFLAG_PASSIVE) { -// mode = AMSLOTMODE_CURRENT; -// } -// } else if (var800719a0[row][column] == 1) { -// if ((chr->hidden & CHRHFLAG_PASSIVE) == 0) { -// mode = AMSLOTMODE_CURRENT; -// } -// } -// } -// } else { -// if (g_Vars.normmplayerisrunning -// && mode == AMSLOTMODE_DEFAULT -// && g_AmMenus[g_AmIndex].screenindex >= 2) { -// s32 a = g_AmBotCommands[var800719a0[row][column]]; -// s32 b = g_MpAllChrPtrs[mpchrnum]->aibot->command; -// -// if (a == b) { -// mode = AMSLOTMODE_CURRENT; -// } -// } -// } -// -// colour = 0xffffffff; -// -// if (g_Vars.currentplayer->activemenumode == AMMODE_EDIT) { -// colour = 0x4f4f4f7f; -// } -// -// amGetSlotDetails(column + row * 3, &flags, text1); -// -// if (column == 1 && row == 1) { -// if (!amIsCramped()) { -// gdl = amRenderText(gdl, text1, colour, xa, ya); -// } -// } else { -// gdl = amRenderSlot(gdl, text1, xa, ya, mode, flags); -// } -// } -// } -// -// // Render AI bot name and weapon -// if (!(g_MissionConfig.iscoop && amGetFirstBuddyIndex() >= 0) -// && g_Vars.normmplayerisrunning -// && g_AmMenus[g_AmIndex].screenindex >= 2) { -// gdl = amRenderAibotInfo(gdl, g_AmMenus[g_AmIndex].screenindex - 2); -// } -// -// // 131c -// // Note: the column and row values will never be 1 here, so this -// // condition always passes. Looks like they intended to skip drawing the -// // selection box on the simulants screen if the middle box was selected. -// if (g_AmMenus[g_AmIndex].screenindex < 2 || column != 1 || row != 1) { -// // Render selection -// s32 halfwidth; -// s32 above = 6; -// s32 below = 6; -// u32 tmp; -// -// if (PLAYERCOUNT() >= 2) { -// above = 5; -// below = 3; -// } -// -// tmp = (sinf(g_AmMenus[g_AmIndex].selpulse) + 1) * 127; -// colour = 0xff0000ff | tmp << 8 | tmp << 16; -// -// if (g_Vars.currentplayer->activemenumode == AMMODE_EDIT) { -// colour = 0x4f4f4f7f; -// } -// -// gdl = textSetPrimColour(gdl, colour); -// -// halfwidth = g_AmMenus[g_AmIndex].slotwidth / 2; -// -// if (g_AmMenus[g_AmIndex].slotnum == 4) { -// if (amIsCramped()) { -// halfwidth = 1; -// above = 2; -// below = 0; -// } else if (PLAYERCOUNT() >= 2) { -// amGetSlotDetails(4, &flags2, text2); -// textMeasure(&textheight, &textwidth, text2, g_AmFont1, g_AmFont2, 0); -// -// halfwidth = textwidth / 2 + 2; -// } -// } -// -// // Top -// gDPFillRectangleScaled(gdl++, -// g_AmMenus[g_AmIndex].selx - halfwidth, -// g_AmMenus[g_AmIndex].sely - above, -// g_AmMenus[g_AmIndex].selx + halfwidth + 1, -// g_AmMenus[g_AmIndex].sely - above + 1); -// -// // Bottom -// gDPFillRectangleScaled(gdl++, -// g_AmMenus[g_AmIndex].selx - halfwidth, -// g_AmMenus[g_AmIndex].sely + below, -// g_AmMenus[g_AmIndex].selx + halfwidth + 1, -// g_AmMenus[g_AmIndex].sely + below + 1); -// -// // Left -// gDPFillRectangleScaled(gdl++, -// g_AmMenus[g_AmIndex].selx - halfwidth, -// g_AmMenus[g_AmIndex].sely - above + 1, -// g_AmMenus[g_AmIndex].selx - halfwidth + 1, -// g_AmMenus[g_AmIndex].sely + below); -// -// // Right -// gDPFillRectangleScaled(gdl++, -// g_AmMenus[g_AmIndex].selx + halfwidth, -// g_AmMenus[g_AmIndex].sely - above + 1, -// g_AmMenus[g_AmIndex].selx + halfwidth + 1, -// g_AmMenus[g_AmIndex].sely + below); -// -// gdl = text0f153838(gdl); -// } -// -// gdl = text0f153780(gdl); -// } -// -// // 18a4 -// chr = g_Vars.currentplayer->commandingaibot; -// -// if (chr) { -// // Render health bar -// f32 healthfrac = (chr->maxdamage - chr->damage) / chr->maxdamage; -// f32 shieldfrac = chr->cshield * 0.125f; -// bool redhealth = false; -// s32 xoffset; -// s32 width; -// s32 healthheight; -// s32 part1width; -// s32 part1left; -// s16 y; -// s32 part2left; -// -// // 18e0 -// if (healthfrac < 0.25f) { -// redhealth = true; // s8 -// } -// -// width = PLAYERCOUNT() >= 2 ? 48 : 64; // s7 -// healthheight = PLAYERCOUNT() >= 2 ? 7 : 11; // s5 -// xoffset = 0; // s2 -// -// if ((PLAYERCOUNT() == 2 && (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL || IS4MB())) -// || PLAYERCOUNT() >= 3) { -// xoffset = (g_Vars.currentplayernum & 1) == 0 ? 8 : -8; -// } -// -// // 1b0c -// if (PLAYERCOUNT() == 1 && optionsGetEffectiveScreenSize() != SCREENSIZE_FULL) { -// part1left = viGetViewLeft() / g_ScaleX + 32; // s0 -// } else { -// // 1bd0 -// part1left = (s32)((viGetViewWidth() / g_ScaleX) * 0.5f) -// + (s32)(viGetViewLeft() / g_ScaleX) -// - (s32)(width * 0.5f) -// + xoffset; -// } -// -// // 1c90 -// part1width = (s32)(width * 0.25f) - 1; // s2 -// if (part1width); -// part2left = part1left + part1width + 2; // s3 -// -// if (healthfrac < 0) { -// healthfrac = 0; -// } -// -// gDPPipeSync(gdl++); -// gDPSetCycleType(gdl++, G_CYC_1CYCLE); -// gDPSetRenderMode(gdl++, G_RM_XLU_SURF, G_RM_XLU_SURF2); -// gDPSetCombineMode(gdl++, G_CC_PRIMITIVE, G_CC_PRIMITIVE); -// -// // 1d40 -// y = viGetViewTop() + viGetViewHeight() - (PLAYERCOUNT() >= 2 ? 19 : 34); -// -// // 1df4 -// if (redhealth) { -// gDPSetPrimColorViaWord(gdl++, 0, 0, 0xff000060); -// -// // Part 1 red -// gDPFillRectangleScaled(gdl++, -// (part1left + part1width - 1) - (s32)(part1width * 0.25f - healthfrac * 4), -// y, -// part1left + part1width - 1, -// y + healthheight); -// -// gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00000080); -// -// // Part 1 black -// gDPFillRectangleScaled(gdl++, -// part1left, -// y, -// part1left + part1width - 1 - (s32)(part1width * 0.25f - healthfrac * 4), -// y + healthheight); -// -// // Part 2 black -// gDPFillRectangleScaled(gdl++, -// part2left, -// y, -// part1left + width, -// y + healthheight); -// } else { -// // 1f70 -// gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00c00060); -// -// // Part 1 green -// gDPFillRectangleScaled(gdl++, -// part1left, -// y, -// part1left + part1width - 1, -// y + healthheight); -// -// // Part 2 green -// gDPFillRectangleScaled(gdl++, -// part2left, -// y, -// part1left + (s32)(width * healthfrac), -// y + healthheight); -// -// gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00000080); -// -// // Part 2 black -// gDPFillRectangleScaled(gdl++, -// part1left + (s32)(width * healthfrac), -// y, -// part1left + width, -// y + healthheight); -// } -// -// // Render shield bar -// // 20d0 -// gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00c00060); -// -// gDPFillRectangleScaled(gdl++, -// part1left, -// y + healthheight + 2, -// part1left + (s32)(width * shieldfrac), -// y + healthheight + 2 + (s32)(healthheight * 0.75f)); -// -// gDPSetPrimColorViaWord(gdl++, 0, 0, 0x00000080); -// -// gDPFillRectangleScaled(gdl++, -// part1left + (s32)(width * shieldfrac), -// y + healthheight + 2, -// part1left + width, -// y + healthheight + 2 + (s32)(healthheight * 0.75f)); -// } -// -// g_ScaleX = 1; -// -// return gdl; -//}