diff --git a/src/game/sight.c b/src/game/sight.c index 4f1ce589b..1761a4ccb 100644 --- a/src/game/sight.c +++ b/src/game/sight.c @@ -431,11 +431,6 @@ Gfx *sightDrawTargetBox(Gfx *gdl, struct trackedprop *trackedprop, s32 textid, s return gdl; } -u32 var80070f84 = 0x43200000; -u32 var80070f88 = 0x42f00000; -u32 var80070f8c = 0x00000000; -u32 var80070f90 = 0x00000000; - Gfx *sightDrawAimer(Gfx *gdl, s32 x, s32 y, s32 radius, s32 cornergap, u32 colour) { s32 viewleft = viGetViewLeft() / g_ScaleX; @@ -484,1623 +479,144 @@ Gfx *sightDrawAimer(Gfx *gdl, s32 x, s32 y, s32 radius, s32 cornergap, u32 colou return gdl; } -#if VERSION == VERSION_PAL_FINAL -GLOBAL_ASM( -glabel sightDrawDelayedAimer -.late_rodata -glabel var7f1adde0 -.word 0xc019999a -glabel var7f1adde4 -.word 0x4019999a -glabel var7f1adde8 -.word 0x3d4ccccd -glabel var7f1af0bcpf -.word 0x3d75c290 -glabel var7f1af0c0pf -.word 0xbd75c290 -glabel var7f1af0c4pf -.word 0x3d4ccccd -glabel var7f1af0c8pf -.word 0x3d75c290 -glabel var7f1af0ccpf -.word 0xbd75c290 -.text -/* f0d8d48: 27bdff30 */ addiu $sp,$sp,-208 -/* f0d8d4c: 3c03800a */ lui $v1,0x800a -/* f0d8d50: 8c63a548 */ lw $v1,-0x5ab8($v1) -/* f0d8d54: afb00048 */ sw $s0,0x48($sp) -/* f0d8d58: 00808025 */ move $s0,$a0 -/* f0d8d5c: afbf004c */ sw $ra,0x4c($sp) -/* f0d8d60: f7be0040 */ sdc1 $f30,0x40($sp) -/* f0d8d64: f7bc0038 */ sdc1 $f28,0x38($sp) -/* f0d8d68: f7ba0030 */ sdc1 $f26,0x30($sp) -/* f0d8d6c: f7b80028 */ sdc1 $f24,0x28($sp) -/* f0d8d70: f7b60020 */ sdc1 $f22,0x20($sp) -/* f0d8d74: f7b40018 */ sdc1 $f20,0x18($sp) -/* f0d8d78: afa500d4 */ sw $a1,0xd4($sp) -/* f0d8d7c: afa600d8 */ sw $a2,0xd8($sp) -/* f0d8d80: afa700dc */ sw $a3,0xdc($sp) -/* f0d8d84: 1860008c */ blez $v1,.PF0f0d8fb8 -/* f0d8d88: 00001025 */ move $v0,$zero -/* f0d8d8c: 3c01bf00 */ lui $at,0xbf00 -/* f0d8d90: 4481f000 */ mtc1 $at,$f30 -/* f0d8d94: 3c013f00 */ lui $at,0x3f00 -/* f0d8d98: 4481e000 */ mtc1 $at,$f28 -/* f0d8d9c: 3c018007 */ lui $at,0x8007 -/* f0d8da0: c43a1268 */ lwc1 $f26,0x1268($at) -/* f0d8da4: 44852000 */ mtc1 $a1,$f4 -/* f0d8da8: 44864000 */ mtc1 $a2,$f8 -/* f0d8dac: 3c018007 */ lui $at,0x8007 -/* f0d8db0: c4381264 */ lwc1 $f24,0x1264($at) -/* f0d8db4: 3c017f1b */ lui $at,0x7f1b -/* f0d8db8: 468021a0 */ cvt.s.w $f6,$f4 -/* f0d8dbc: c434f0b0 */ lwc1 $f20,-0xf50($at) -/* f0d8dc0: 3c017f1b */ lui $at,0x7f1b -/* f0d8dc4: c432f0b4 */ lwc1 $f18,-0xf4c($at) -/* f0d8dc8: 3c018007 */ lui $at,0x8007 -/* f0d8dcc: 468042a0 */ cvt.s.w $f10,$f8 -/* f0d8dd0: c4301270 */ lwc1 $f16,0x1270($at) -/* f0d8dd4: 3c018007 */ lui $at,0x8007 -/* f0d8dd8: 4480b000 */ mtc1 $zero,$f22 -/* f0d8ddc: c42e126c */ lwc1 $f14,0x126c($at) -/* f0d8de0: e7a60074 */ swc1 $f6,0x74($sp) -/* f0d8de4: e7aa006c */ swc1 $f10,0x6c($sp) -/* f0d8de8: c7a40074 */ lwc1 $f4,0x74($sp) -.PF0f0d8dec: -/* f0d8dec: 24420001 */ addiu $v0,$v0,0x1 -/* f0d8df0: 3c017f1b */ lui $at,0x7f1b -/* f0d8df4: 46182301 */ sub.s $f12,$f4,$f24 -/* f0d8df8: c7a8006c */ lwc1 $f8,0x6c($sp) -/* f0d8dfc: 460ce03c */ c.lt.s $f28,$f12 -/* f0d8e00: 00000000 */ nop -/* f0d8e04: 45010005 */ bc1t .PF0f0d8e1c -/* f0d8e08: 00000000 */ nop -/* f0d8e0c: 461e603c */ c.lt.s $f12,$f30 -/* f0d8e10: 00000000 */ nop -/* f0d8e14: 45020029 */ bc1fl .PF0f0d8ebc -/* f0d8e18: c7b80074 */ lwc1 $f24,0x74($sp) -.PF0f0d8e1c: -/* f0d8e1c: c426f0b8 */ lwc1 $f6,-0xf48($at) -/* f0d8e20: 3c017f1b */ lui $at,0x7f1b -/* f0d8e24: 46066002 */ mul.s $f0,$f12,$f6 -/* f0d8e28: 4600903c */ c.lt.s $f18,$f0 -/* f0d8e2c: 00000000 */ nop -/* f0d8e30: 45020003 */ bc1fl .PF0f0d8e40 -/* f0d8e34: 4614003c */ c.lt.s $f0,$f20 -/* f0d8e38: 46009006 */ mov.s $f0,$f18 -/* f0d8e3c: 4614003c */ c.lt.s $f0,$f20 -.PF0f0d8e40: -/* f0d8e40: 00000000 */ nop -/* f0d8e44: 45020003 */ bc1fl .PF0f0d8e54 -/* f0d8e48: 4600703c */ c.lt.s $f14,$f0 -/* f0d8e4c: 4600a006 */ mov.s $f0,$f20 -/* f0d8e50: 4600703c */ c.lt.s $f14,$f0 -.PF0f0d8e54: -/* f0d8e54: 00000000 */ nop -/* f0d8e58: 45020004 */ bc1fl .PF0f0d8e6c -/* f0d8e5c: 460e003c */ c.lt.s $f0,$f14 -/* f0d8e60: 10000008 */ b .PF0f0d8e84 -/* f0d8e64: c420f0bc */ lwc1 $f0,-0xf44($at) -/* f0d8e68: 460e003c */ c.lt.s $f0,$f14 -.PF0f0d8e6c: -/* f0d8e6c: 3c017f1b */ lui $at,0x7f1b -/* f0d8e70: 45020004 */ bc1fl .PF0f0d8e84 -/* f0d8e74: 4600b006 */ mov.s $f0,$f22 -/* f0d8e78: 10000002 */ b .PF0f0d8e84 -/* f0d8e7c: c420f0c0 */ lwc1 $f0,-0xf40($at) -/* f0d8e80: 4600b006 */ mov.s $f0,$f22 -.PF0f0d8e84: -/* f0d8e84: 46007380 */ add.s $f14,$f14,$f0 -/* f0d8e88: 460e903c */ c.lt.s $f18,$f14 -/* f0d8e8c: 00000000 */ nop -/* f0d8e90: 45020003 */ bc1fl .PF0f0d8ea0 -/* f0d8e94: 4614703c */ c.lt.s $f14,$f20 -/* f0d8e98: 46009386 */ mov.s $f14,$f18 -/* f0d8e9c: 4614703c */ c.lt.s $f14,$f20 -.PF0f0d8ea0: -/* f0d8ea0: 00000000 */ nop -/* f0d8ea4: 45000002 */ bc1f .PF0f0d8eb0 -/* f0d8ea8: 00000000 */ nop -/* f0d8eac: 4600a386 */ mov.s $f14,$f20 -.PF0f0d8eb0: -/* f0d8eb0: 10000003 */ b .PF0f0d8ec0 -/* f0d8eb4: 460ec600 */ add.s $f24,$f24,$f14 -/* f0d8eb8: c7b80074 */ lwc1 $f24,0x74($sp) -.PF0f0d8ebc: -/* f0d8ebc: 4600b386 */ mov.s $f14,$f22 -.PF0f0d8ec0: -/* f0d8ec0: 461a4301 */ sub.s $f12,$f8,$f26 -/* f0d8ec4: 3c017f1b */ lui $at,0x7f1b -/* f0d8ec8: 460ce03c */ c.lt.s $f28,$f12 -/* f0d8ecc: 00000000 */ nop -/* f0d8ed0: 45010005 */ bc1t .PF0f0d8ee8 -/* f0d8ed4: 00000000 */ nop -/* f0d8ed8: 461e603c */ c.lt.s $f12,$f30 -/* f0d8edc: 00000000 */ nop -/* f0d8ee0: 45020029 */ bc1fl .PF0f0d8f88 -/* f0d8ee4: c7ba006c */ lwc1 $f26,0x6c($sp) -.PF0f0d8ee8: -/* f0d8ee8: c42af0c4 */ lwc1 $f10,-0xf3c($at) -/* f0d8eec: 3c017f1b */ lui $at,0x7f1b -/* f0d8ef0: 460a6002 */ mul.s $f0,$f12,$f10 -/* f0d8ef4: 4600903c */ c.lt.s $f18,$f0 -/* f0d8ef8: 00000000 */ nop -/* f0d8efc: 45020003 */ bc1fl .PF0f0d8f0c -/* f0d8f00: 4614003c */ c.lt.s $f0,$f20 -/* f0d8f04: 46009006 */ mov.s $f0,$f18 -/* f0d8f08: 4614003c */ c.lt.s $f0,$f20 -.PF0f0d8f0c: -/* f0d8f0c: 00000000 */ nop -/* f0d8f10: 45020003 */ bc1fl .PF0f0d8f20 -/* f0d8f14: 4600803c */ c.lt.s $f16,$f0 -/* f0d8f18: 4600a006 */ mov.s $f0,$f20 -/* f0d8f1c: 4600803c */ c.lt.s $f16,$f0 -.PF0f0d8f20: -/* f0d8f20: 00000000 */ nop -/* f0d8f24: 45020004 */ bc1fl .PF0f0d8f38 -/* f0d8f28: 4610003c */ c.lt.s $f0,$f16 -/* f0d8f2c: 10000008 */ b .PF0f0d8f50 -/* f0d8f30: c420f0c8 */ lwc1 $f0,-0xf38($at) -/* f0d8f34: 4610003c */ c.lt.s $f0,$f16 -.PF0f0d8f38: -/* f0d8f38: 3c017f1b */ lui $at,0x7f1b -/* f0d8f3c: 45020004 */ bc1fl .PF0f0d8f50 -/* f0d8f40: 4600b006 */ mov.s $f0,$f22 -/* f0d8f44: 10000002 */ b .PF0f0d8f50 -/* f0d8f48: c420f0cc */ lwc1 $f0,-0xf34($at) -/* f0d8f4c: 4600b006 */ mov.s $f0,$f22 -.PF0f0d8f50: -/* f0d8f50: 46008400 */ add.s $f16,$f16,$f0 -/* f0d8f54: 4610903c */ c.lt.s $f18,$f16 -/* f0d8f58: 00000000 */ nop -/* f0d8f5c: 45020003 */ bc1fl .PF0f0d8f6c -/* f0d8f60: 4614803c */ c.lt.s $f16,$f20 -/* f0d8f64: 46009406 */ mov.s $f16,$f18 -/* f0d8f68: 4614803c */ c.lt.s $f16,$f20 -.PF0f0d8f6c: -/* f0d8f6c: 00000000 */ nop -/* f0d8f70: 45000002 */ bc1f .PF0f0d8f7c -/* f0d8f74: 00000000 */ nop -/* f0d8f78: 4600a406 */ mov.s $f16,$f20 -.PF0f0d8f7c: -/* f0d8f7c: 10000003 */ b .PF0f0d8f8c -/* f0d8f80: 4610d680 */ add.s $f26,$f26,$f16 -/* f0d8f84: c7ba006c */ lwc1 $f26,0x6c($sp) -.PF0f0d8f88: -/* f0d8f88: 4600b406 */ mov.s $f16,$f22 -.PF0f0d8f8c: -/* f0d8f8c: 0043082a */ slt $at,$v0,$v1 -/* f0d8f90: 5420ff96 */ bnezl $at,.PF0f0d8dec -/* f0d8f94: c7a40074 */ lwc1 $f4,0x74($sp) -/* f0d8f98: 3c018007 */ lui $at,0x8007 -/* f0d8f9c: e4301270 */ swc1 $f16,0x1270($at) -/* f0d8fa0: 3c018007 */ lui $at,0x8007 -/* f0d8fa4: e42e126c */ swc1 $f14,0x126c($at) -/* f0d8fa8: 3c018007 */ lui $at,0x8007 -/* f0d8fac: e4381264 */ swc1 $f24,0x1264($at) -/* f0d8fb0: 3c018007 */ lui $at,0x8007 -/* f0d8fb4: e43a1268 */ swc1 $f26,0x1268($at) -.PF0f0d8fb8: -/* f0d8fb8: 3c018007 */ lui $at,0x8007 -/* f0d8fbc: c4381264 */ lwc1 $f24,0x1264($at) -/* f0d8fc0: 3c018007 */ lui $at,0x8007 -/* f0d8fc4: c43a1268 */ lwc1 $f26,0x1268($at) -/* f0d8fc8: 4600c10d */ trunc.w.s $f4,$f24 -/* f0d8fcc: 3c0500ff */ lui $a1,0xff -/* f0d8fd0: 34a50028 */ ori $a1,$a1,0x28 -/* f0d8fd4: 4600d18d */ trunc.w.s $f6,$f26 -/* f0d8fd8: 44192000 */ mfc1 $t9,$f4 -/* f0d8fdc: 02002025 */ move $a0,$s0 -/* f0d8fe0: 440f3000 */ mfc1 $t7,$f6 -/* f0d8fe4: afb900cc */ sw $t9,0xcc($sp) -/* f0d8fe8: 0fc5513c */ jal gfxSetPrimColour -/* f0d8fec: afaf00c8 */ sw $t7,0xc8($sp) -/* f0d8ff0: 3c038008 */ lui $v1,0x8008 -/* f0d8ff4: 8fab00d4 */ lw $t3,0xd4($sp) -/* f0d8ff8: 24630020 */ addiu $v1,$v1,0x20 -/* f0d8ffc: 8c790000 */ lw $t9,0x0($v1) -/* f0d9000: 25650002 */ addiu $a1,$t3,0x2 -/* f0d9004: 8faa00d8 */ lw $t2,0xd8($sp) -/* f0d9008: 00b90019 */ multu $a1,$t9 -/* f0d900c: 3c06f600 */ lui $a2,0xf600 -/* f0d9010: 314803ff */ andi $t0,$t2,0x3ff -/* f0d9014: 0008c080 */ sll $t8,$t0,0x2 -/* f0d9018: 03004025 */ move $t0,$t8 -/* f0d901c: 2567ffff */ addiu $a3,$t3,-1 -/* f0d9020: 25490001 */ addiu $t1,$t2,0x1 -/* f0d9024: 24440018 */ addiu $a0,$v0,0x18 -/* f0d9028: 00007012 */ mflo $t6 -/* f0d902c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f0d9030: 000fc380 */ sll $t8,$t7,0xe -/* f0d9034: 0306c825 */ or $t9,$t8,$a2 -/* f0d9038: 03287025 */ or $t6,$t9,$t0 -/* f0d903c: ac4e0000 */ sw $t6,0x0($v0) -/* f0d9040: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d9044: 00ef0019 */ multu $a3,$t7 -/* f0d9048: 254fffff */ addiu $t7,$t2,-1 -/* f0d904c: 0000c012 */ mflo $t8 -/* f0d9050: 331903ff */ andi $t9,$t8,0x3ff -/* f0d9054: 00197380 */ sll $t6,$t9,0xe -/* f0d9058: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d905c: 0018c880 */ sll $t9,$t8,0x2 -/* f0d9060: 01d97825 */ or $t7,$t6,$t9 -/* f0d9064: ac4f0004 */ sw $t7,0x4($v0) -/* f0d9068: 8c790000 */ lw $t9,0x0($v1) -/* f0d906c: 313803ff */ andi $t8,$t1,0x3ff -/* f0d9070: 00184880 */ sll $t1,$t8,0x2 -/* f0d9074: 00b90019 */ multu $a1,$t9 -/* f0d9078: 00007812 */ mflo $t7 -/* f0d907c: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d9080: 00187380 */ sll $t6,$t8,0xe -/* f0d9084: 01c6c825 */ or $t9,$t6,$a2 -/* f0d9088: 03297825 */ or $t7,$t9,$t1 -/* f0d908c: ac4f0008 */ sw $t7,0x8($v0) -/* f0d9090: 8c780000 */ lw $t8,0x0($v1) -/* f0d9094: 00f80019 */ multu $a3,$t8 -/* f0d9098: 00007012 */ mflo $t6 -/* f0d909c: 31d903ff */ andi $t9,$t6,0x3ff -/* f0d90a0: 00197b80 */ sll $t7,$t9,0xe -/* f0d90a4: 01e8c025 */ or $t8,$t7,$t0 -/* f0d90a8: ac58000c */ sw $t8,0xc($v0) -/* f0d90ac: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d90b0: 00ae0019 */ multu $a1,$t6 -/* f0d90b4: 0000c812 */ mflo $t9 -/* f0d90b8: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d90bc: 000fc380 */ sll $t8,$t7,0xe -/* f0d90c0: 25590002 */ addiu $t9,$t2,0x2 -/* f0d90c4: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d90c8: 03067025 */ or $t6,$t8,$a2 -/* f0d90cc: 000fc080 */ sll $t8,$t7,0x2 -/* f0d90d0: 01d8c825 */ or $t9,$t6,$t8 -/* f0d90d4: ac590010 */ sw $t9,0x10($v0) -/* f0d90d8: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d90dc: 00ef0019 */ multu $a3,$t7 -/* f0d90e0: 00007012 */ mflo $t6 -/* f0d90e4: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d90e8: 0018cb80 */ sll $t9,$t8,0xe -/* f0d90ec: 03297825 */ or $t7,$t9,$t1 -/* f0d90f0: 0fc55153 */ jal func0f153838 -/* f0d90f4: ac4f0014 */ sw $t7,0x14($v0) -/* f0d90f8: 00402025 */ move $a0,$v0 -/* f0d90fc: 0fc5513c */ jal gfxSetPrimColour -/* f0d9100: 8fa500e4 */ lw $a1,0xe4($sp) -/* f0d9104: 8fb800dc */ lw $t8,0xdc($sp) -/* f0d9108: 8fb900c8 */ lw $t9,0xc8($sp) -/* f0d910c: 8fae00cc */ lw $t6,0xcc($sp) -/* f0d9110: 3c038008 */ lui $v1,0x8008 -/* f0d9114: 24630020 */ addiu $v1,$v1,0x20 -/* f0d9118: 0338f821 */ addu $ra,$t9,$t8 -/* f0d911c: 8c790000 */ lw $t9,0x0($v1) -/* f0d9120: 01d82823 */ subu $a1,$t6,$t8 -/* f0d9124: 24ac0001 */ addiu $t4,$a1,0x1 -/* f0d9128: 01990019 */ multu $t4,$t9 -/* f0d912c: 27e80001 */ addiu $t0,$ra,0x1 -/* f0d9130: 310f03ff */ andi $t7,$t0,0x3ff -/* f0d9134: 000f4080 */ sll $t0,$t7,0x2 -/* f0d9138: 3c06f600 */ lui $a2,0xf600 -/* f0d913c: 244b0018 */ addiu $t3,$v0,0x18 -/* f0d9140: 25700008 */ addiu $s0,$t3,0x8 -/* f0d9144: 0000c012 */ mflo $t8 -/* f0d9148: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d914c: 000f7380 */ sll $t6,$t7,0xe -/* f0d9150: 01c6c825 */ or $t9,$t6,$a2 -/* f0d9154: 0328c025 */ or $t8,$t9,$t0 -/* f0d9158: ac580000 */ sw $t8,0x0($v0) -/* f0d915c: 8c780000 */ lw $t8,0x0($v1) -/* f0d9160: 8faf00c8 */ lw $t7,0xc8($sp) -/* f0d9164: 8fae00dc */ lw $t6,0xdc($sp) -/* f0d9168: 00b80019 */ multu $a1,$t8 -/* f0d916c: 01ee3823 */ subu $a3,$t7,$t6 -/* f0d9170: 30e403ff */ andi $a0,$a3,0x3ff -/* f0d9174: 0004c880 */ sll $t9,$a0,0x2 -/* f0d9178: 03202025 */ move $a0,$t9 -/* f0d917c: 24ed0001 */ addiu $t5,$a3,0x1 -/* f0d9180: 00007812 */ mflo $t7 -/* f0d9184: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d9188: 000ecb80 */ sll $t9,$t6,0xe -/* f0d918c: 0324c025 */ or $t8,$t9,$a0 -/* f0d9190: ac580004 */ sw $t8,0x4($v0) -/* f0d9194: 8faf00cc */ lw $t7,0xcc($sp) -/* f0d9198: 8fae00dc */ lw $t6,0xdc($sp) -/* f0d919c: 8c790000 */ lw $t9,0x0($v1) -/* f0d91a0: 01ee5021 */ addu $t2,$t7,$t6 -/* f0d91a4: 25490001 */ addiu $t1,$t2,0x1 -/* f0d91a8: 01390019 */ multu $t1,$t9 -/* f0d91ac: 0000c012 */ mflo $t8 -/* f0d91b0: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d91b4: 000f7380 */ sll $t6,$t7,0xe -/* f0d91b8: 01c6c825 */ or $t9,$t6,$a2 -/* f0d91bc: 0328c025 */ or $t8,$t9,$t0 -/* f0d91c0: ac580008 */ sw $t8,0x8($v0) -/* f0d91c4: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d91c8: 014f0019 */ multu $t2,$t7 -/* f0d91cc: 00007012 */ mflo $t6 -/* f0d91d0: 31d903ff */ andi $t9,$t6,0x3ff -/* f0d91d4: 0019c380 */ sll $t8,$t9,0xe -/* f0d91d8: 03047825 */ or $t7,$t8,$a0 -/* f0d91dc: ac4f000c */ sw $t7,0xc($v0) -/* f0d91e0: 8c780000 */ lw $t8,0x0($v1) -/* f0d91e4: 31ae03ff */ andi $t6,$t5,0x3ff -/* f0d91e8: 000e6880 */ sll $t5,$t6,0x2 -/* f0d91ec: 01380019 */ multu $t1,$t8 -/* f0d91f0: 00007812 */ mflo $t7 -/* f0d91f4: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d91f8: 000ecb80 */ sll $t9,$t6,0xe -/* f0d91fc: 0326c025 */ or $t8,$t9,$a2 -/* f0d9200: 030d7825 */ or $t7,$t8,$t5 -/* f0d9204: ac4f0010 */ sw $t7,0x10($v0) -/* f0d9208: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d920c: afbf006c */ sw $ra,0x6c($sp) -/* f0d9210: 00ae0019 */ multu $a1,$t6 -/* f0d9214: 0000c812 */ mflo $t9 -/* f0d9218: 333803ff */ andi $t8,$t9,0x3ff -/* f0d921c: 00187b80 */ sll $t7,$t8,0xe -/* f0d9220: 01e47025 */ or $t6,$t7,$a0 -/* f0d9224: ac4e0014 */ sw $t6,0x14($v0) -/* f0d9228: 8c790000 */ lw $t9,0x0($v1) -/* f0d922c: 01390019 */ multu $t1,$t9 -/* f0d9230: 0000c012 */ mflo $t8 -/* f0d9234: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d9238: 000f7380 */ sll $t6,$t7,0xe -/* f0d923c: 01c6c825 */ or $t9,$t6,$a2 -/* f0d9240: 0328c025 */ or $t8,$t9,$t0 -/* f0d9244: ad780000 */ sw $t8,0x0($t3) -/* f0d9248: 8c790000 */ lw $t9,0x0($v1) -/* f0d924c: 8fbf006c */ lw $ra,0x6c($sp) -/* f0d9250: 00b90019 */ multu $a1,$t9 -/* f0d9254: 33ef03ff */ andi $t7,$ra,0x3ff -/* f0d9258: 000ff880 */ sll $ra,$t7,0x2 -/* f0d925c: 0000c012 */ mflo $t8 -/* f0d9260: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d9264: 000f7380 */ sll $t6,$t7,0xe -/* f0d9268: 01dfc825 */ or $t9,$t6,$ra -/* f0d926c: ad790004 */ sw $t9,0x4($t3) -/* f0d9270: 8faf00e0 */ lw $t7,0xe0($sp) -/* f0d9274: 8fb800c8 */ lw $t8,0xc8($sp) -/* f0d9278: afb00098 */ sw $s0,0x98($sp) -/* f0d927c: 26100008 */ addiu $s0,$s0,0x8 -/* f0d9280: 030f7023 */ subu $t6,$t8,$t7 -/* f0d9284: 25d90001 */ addiu $t9,$t6,0x1 -/* f0d9288: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d928c: 333803ff */ andi $t8,$t9,0x3ff -/* f0d9290: 00187880 */ sll $t7,$t8,0x2 -/* f0d9294: 018e0019 */ multu $t4,$t6 -/* f0d9298: afaf0050 */ sw $t7,0x50($sp) -/* f0d929c: 02001025 */ move $v0,$s0 -/* f0d92a0: 26100008 */ addiu $s0,$s0,0x8 -/* f0d92a4: 02005825 */ move $t3,$s0 -/* f0d92a8: 26100008 */ addiu $s0,$s0,0x8 -/* f0d92ac: 0000c812 */ mflo $t9 -/* f0d92b0: 333803ff */ andi $t8,$t9,0x3ff -/* f0d92b4: 00187380 */ sll $t6,$t8,0xe -/* f0d92b8: 01c6c825 */ or $t9,$t6,$a2 -/* f0d92bc: 8fae0098 */ lw $t6,0x98($sp) -/* f0d92c0: 032fc025 */ or $t8,$t9,$t7 -/* f0d92c4: add80000 */ sw $t8,0x0($t6) -/* f0d92c8: 8c790000 */ lw $t9,0x0($v1) -/* f0d92cc: 00b90019 */ multu $a1,$t9 -/* f0d92d0: 00007812 */ mflo $t7 -/* f0d92d4: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d92d8: 0018cb80 */ sll $t9,$t8,0xe -/* f0d92dc: 03247825 */ or $t7,$t9,$a0 -/* f0d92e0: adcf0004 */ sw $t7,0x4($t6) -/* f0d92e4: 8c780000 */ lw $t8,0x0($v1) -/* f0d92e8: 01980019 */ multu $t4,$t8 -/* f0d92ec: 0000c812 */ mflo $t9 -/* f0d92f0: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d92f4: 000f7380 */ sll $t6,$t7,0xe -/* f0d92f8: 01c6c025 */ or $t8,$t6,$a2 -/* f0d92fc: 0308c825 */ or $t9,$t8,$t0 -/* f0d9300: ac590000 */ sw $t9,0x0($v0) -/* f0d9304: 8fae00e0 */ lw $t6,0xe0($sp) -/* f0d9308: 8faf00c8 */ lw $t7,0xc8($sp) -/* f0d930c: 01ee3821 */ addu $a3,$t7,$t6 -/* f0d9310: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d9314: 30f803ff */ andi $t8,$a3,0x3ff -/* f0d9318: 00183880 */ sll $a3,$t8,0x2 -/* f0d931c: 00af0019 */ multu $a1,$t7 -/* f0d9320: 00007012 */ mflo $t6 -/* f0d9324: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d9328: 0018cb80 */ sll $t9,$t8,0xe -/* f0d932c: 03277825 */ or $t7,$t9,$a3 -/* f0d9330: ac4f0004 */ sw $t7,0x4($v0) -/* f0d9334: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d9338: 02001025 */ move $v0,$s0 -/* f0d933c: 26100008 */ addiu $s0,$s0,0x8 -/* f0d9340: 012e0019 */ multu $t1,$t6 -/* f0d9344: 02006025 */ move $t4,$s0 -/* f0d9348: 26100008 */ addiu $s0,$s0,0x8 -/* f0d934c: 0000c012 */ mflo $t8 -/* f0d9350: 331903ff */ andi $t9,$t8,0x3ff -/* f0d9354: 8fb80050 */ lw $t8,0x50($sp) -/* f0d9358: 00197b80 */ sll $t7,$t9,0xe -/* f0d935c: 01e67025 */ or $t6,$t7,$a2 -/* f0d9360: 01d8c825 */ or $t9,$t6,$t8 -/* f0d9364: ad790000 */ sw $t9,0x0($t3) -/* f0d9368: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d936c: 014f0019 */ multu $t2,$t7 -/* f0d9370: 00007012 */ mflo $t6 -/* f0d9374: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d9378: 0018cb80 */ sll $t9,$t8,0xe -/* f0d937c: 03247825 */ or $t7,$t9,$a0 -/* f0d9380: ad6f0004 */ sw $t7,0x4($t3) -/* f0d9384: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d9388: 012e0019 */ multu $t1,$t6 -/* f0d938c: 0000c012 */ mflo $t8 -/* f0d9390: 331903ff */ andi $t9,$t8,0x3ff -/* f0d9394: 00197b80 */ sll $t7,$t9,0xe -/* f0d9398: 01e67025 */ or $t6,$t7,$a2 -/* f0d939c: 01c8c025 */ or $t8,$t6,$t0 -/* f0d93a0: ac580000 */ sw $t8,0x0($v0) -/* f0d93a4: 8c790000 */ lw $t9,0x0($v1) -/* f0d93a8: 01590019 */ multu $t2,$t9 -/* f0d93ac: 00007812 */ mflo $t7 -/* f0d93b0: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d93b4: 000ec380 */ sll $t8,$t6,0xe -/* f0d93b8: 0307c825 */ or $t9,$t8,$a3 -/* f0d93bc: ac590004 */ sw $t9,0x4($v0) -/* f0d93c0: 8fae00e0 */ lw $t6,0xe0($sp) -/* f0d93c4: 8faf00cc */ lw $t7,0xcc($sp) -/* f0d93c8: 02001025 */ move $v0,$s0 -/* f0d93cc: 26100008 */ addiu $s0,$s0,0x8 -/* f0d93d0: 01eec023 */ subu $t8,$t7,$t6 -/* f0d93d4: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d93d8: 27190001 */ addiu $t9,$t8,0x1 -/* f0d93dc: afb90070 */ sw $t9,0x70($sp) -/* f0d93e0: 032f0019 */ multu $t9,$t7 -/* f0d93e4: 02005025 */ move $t2,$s0 -/* f0d93e8: 26100008 */ addiu $s0,$s0,0x8 -/* f0d93ec: 00007012 */ mflo $t6 -/* f0d93f0: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d93f4: 0018cb80 */ sll $t9,$t8,0xe -/* f0d93f8: 03267825 */ or $t7,$t9,$a2 -/* f0d93fc: 01ed7025 */ or $t6,$t7,$t5 -/* f0d9400: ad8e0000 */ sw $t6,0x0($t4) -/* f0d9404: 8c780000 */ lw $t8,0x0($v1) -/* f0d9408: 00b80019 */ multu $a1,$t8 -/* f0d940c: 0000c812 */ mflo $t9 -/* f0d9410: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d9414: 000f7380 */ sll $t6,$t7,0xe -/* f0d9418: 01c4c025 */ or $t8,$t6,$a0 -/* f0d941c: ad980004 */ sw $t8,0x4($t4) -/* f0d9420: 8c790000 */ lw $t9,0x0($v1) -/* f0d9424: 01390019 */ multu $t1,$t9 -/* f0d9428: 00007812 */ mflo $t7 -/* f0d942c: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d9430: 000ec380 */ sll $t8,$t6,0xe -/* f0d9434: 0306c825 */ or $t9,$t8,$a2 -/* f0d9438: 032d7825 */ or $t7,$t9,$t5 -/* f0d943c: ac4f0000 */ sw $t7,0x0($v0) -/* f0d9440: 8fb800e0 */ lw $t8,0xe0($sp) -/* f0d9444: 8fae00cc */ lw $t6,0xcc($sp) -/* f0d9448: 8c790000 */ lw $t9,0x0($v1) -/* f0d944c: 01d83821 */ addu $a3,$t6,$t8 -/* f0d9450: 00f90019 */ multu $a3,$t9 -/* f0d9454: 00007812 */ mflo $t7 -/* f0d9458: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d945c: 000ec380 */ sll $t8,$t6,0xe -/* f0d9460: 0304c825 */ or $t9,$t8,$a0 -/* f0d9464: ac590004 */ sw $t9,0x4($v0) -/* f0d9468: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d946c: 8faf0070 */ lw $t7,0x70($sp) -/* f0d9470: 01ee0019 */ multu $t7,$t6 -/* f0d9474: 0000c012 */ mflo $t8 -/* f0d9478: 331903ff */ andi $t9,$t8,0x3ff -/* f0d947c: 00197b80 */ sll $t7,$t9,0xe -/* f0d9480: 01e67025 */ or $t6,$t7,$a2 -/* f0d9484: 01c8c025 */ or $t8,$t6,$t0 -/* f0d9488: ad580000 */ sw $t8,0x0($t2) -/* f0d948c: 8c790000 */ lw $t9,0x0($v1) -/* f0d9490: 00b90019 */ multu $a1,$t9 -/* f0d9494: 00007812 */ mflo $t7 -/* f0d9498: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d949c: 000ec380 */ sll $t8,$t6,0xe -/* f0d94a0: 031fc825 */ or $t9,$t8,$ra -/* f0d94a4: ad590004 */ sw $t9,0x4($t2) -/* f0d94a8: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d94ac: 02001025 */ move $v0,$s0 -/* f0d94b0: 26040008 */ addiu $a0,$s0,0x8 -/* f0d94b4: 012f0019 */ multu $t1,$t7 -/* f0d94b8: 00007012 */ mflo $t6 -/* f0d94bc: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d94c0: 0018cb80 */ sll $t9,$t8,0xe -/* f0d94c4: 03267825 */ or $t7,$t9,$a2 -/* f0d94c8: 01e87025 */ or $t6,$t7,$t0 -/* f0d94cc: ac4e0000 */ sw $t6,0x0($v0) -/* f0d94d0: 8c780000 */ lw $t8,0x0($v1) -/* f0d94d4: 00f80019 */ multu $a3,$t8 -/* f0d94d8: 0000c812 */ mflo $t9 -/* f0d94dc: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d94e0: 000f7380 */ sll $t6,$t7,0xe -/* f0d94e4: 01dfc025 */ or $t8,$t6,$ra -/* f0d94e8: 0fc55153 */ jal func0f153838 -/* f0d94ec: ac580004 */ sw $t8,0x4($v0) -/* f0d94f0: 8fbf004c */ lw $ra,0x4c($sp) -/* f0d94f4: d7b40018 */ ldc1 $f20,0x18($sp) -/* f0d94f8: d7b60020 */ ldc1 $f22,0x20($sp) -/* f0d94fc: d7b80028 */ ldc1 $f24,0x28($sp) -/* f0d9500: d7ba0030 */ ldc1 $f26,0x30($sp) -/* f0d9504: d7bc0038 */ ldc1 $f28,0x38($sp) -/* f0d9508: d7be0040 */ ldc1 $f30,0x40($sp) -/* f0d950c: 8fb00048 */ lw $s0,0x48($sp) -/* f0d9510: 03e00008 */ jr $ra -/* f0d9514: 27bd00d0 */ addiu $sp,$sp,0xd0 -); -#elif VERSION == VERSION_PAL_BETA -GLOBAL_ASM( -glabel sightDrawDelayedAimer -.late_rodata -glabel var7f1adde0 -.word 0xc019999a -glabel var7f1adde4 -.word 0x4019999a -glabel var7f1adde8 -.word 0x3d4ccccd -glabel var7f1af0bcpf -.word 0x3d75c290 -glabel var7f1af0c0pf -.word 0xbd75c290 -glabel var7f1af0c4pf -.word 0x3d4ccccd -glabel var7f1af0c8pf -.word 0x3d75c290 -glabel var7f1af0ccpf -.word 0xbd75c290 -.text -/* f0d8c48: 27bdff30 */ addiu $sp,$sp,-208 -/* f0d8c4c: 3c03800a */ lui $v1,0x800a -/* f0d8c50: 8c63e508 */ lw $v1,-0x1af8($v1) -/* f0d8c54: afb00048 */ sw $s0,0x48($sp) -/* f0d8c58: 00808025 */ move $s0,$a0 -/* f0d8c5c: afbf004c */ sw $ra,0x4c($sp) -/* f0d8c60: f7be0040 */ sdc1 $f30,0x40($sp) -/* f0d8c64: f7bc0038 */ sdc1 $f28,0x38($sp) -/* f0d8c68: f7ba0030 */ sdc1 $f26,0x30($sp) -/* f0d8c6c: f7b80028 */ sdc1 $f24,0x28($sp) -/* f0d8c70: f7b60020 */ sdc1 $f22,0x20($sp) -/* f0d8c74: f7b40018 */ sdc1 $f20,0x18($sp) -/* f0d8c78: afa500d4 */ sw $a1,0xd4($sp) -/* f0d8c7c: afa600d8 */ sw $a2,0xd8($sp) -/* f0d8c80: afa700dc */ sw $a3,0xdc($sp) -/* f0d8c84: 1860008c */ blez $v1,.PB0f0d8eb8 -/* f0d8c88: 00001025 */ move $v0,$zero -/* f0d8c8c: 3c01bf00 */ lui $at,0xbf00 -/* f0d8c90: 4481f000 */ mtc1 $at,$f30 -/* f0d8c94: 3c013f00 */ lui $at,0x3f00 -/* f0d8c98: 4481e000 */ mtc1 $at,$f28 -/* f0d8c9c: 3c018007 */ lui $at,0x8007 -/* f0d8ca0: c43a2c58 */ lwc1 $f26,0x2c58($at) -/* f0d8ca4: 44852000 */ mtc1 $a1,$f4 -/* f0d8ca8: 44864000 */ mtc1 $a2,$f8 -/* f0d8cac: 3c018007 */ lui $at,0x8007 -/* f0d8cb0: c4382c54 */ lwc1 $f24,0x2c54($at) -/* f0d8cb4: 3c017f1b */ lui $at,0x7f1b -/* f0d8cb8: 468021a0 */ cvt.s.w $f6,$f4 -/* f0d8cbc: c434fb00 */ lwc1 $f20,-0x500($at) -/* f0d8cc0: 3c017f1b */ lui $at,0x7f1b -/* f0d8cc4: c432fb04 */ lwc1 $f18,-0x4fc($at) -/* f0d8cc8: 3c018007 */ lui $at,0x8007 -/* f0d8ccc: 468042a0 */ cvt.s.w $f10,$f8 -/* f0d8cd0: c4302c60 */ lwc1 $f16,0x2c60($at) -/* f0d8cd4: 3c018007 */ lui $at,0x8007 -/* f0d8cd8: 4480b000 */ mtc1 $zero,$f22 -/* f0d8cdc: c42e2c5c */ lwc1 $f14,0x2c5c($at) -/* f0d8ce0: e7a60074 */ swc1 $f6,0x74($sp) -/* f0d8ce4: e7aa006c */ swc1 $f10,0x6c($sp) -/* f0d8ce8: c7a40074 */ lwc1 $f4,0x74($sp) -.PB0f0d8cec: -/* f0d8cec: 24420001 */ addiu $v0,$v0,0x1 -/* f0d8cf0: 3c017f1b */ lui $at,0x7f1b -/* f0d8cf4: 46182301 */ sub.s $f12,$f4,$f24 -/* f0d8cf8: c7a8006c */ lwc1 $f8,0x6c($sp) -/* f0d8cfc: 460ce03c */ c.lt.s $f28,$f12 -/* f0d8d00: 00000000 */ nop -/* f0d8d04: 45010005 */ bc1t .PB0f0d8d1c -/* f0d8d08: 00000000 */ nop -/* f0d8d0c: 461e603c */ c.lt.s $f12,$f30 -/* f0d8d10: 00000000 */ nop -/* f0d8d14: 45020029 */ bc1fl .PB0f0d8dbc -/* f0d8d18: c7b80074 */ lwc1 $f24,0x74($sp) -.PB0f0d8d1c: -/* f0d8d1c: c426fb08 */ lwc1 $f6,-0x4f8($at) -/* f0d8d20: 3c017f1b */ lui $at,0x7f1b -/* f0d8d24: 46066002 */ mul.s $f0,$f12,$f6 -/* f0d8d28: 4600903c */ c.lt.s $f18,$f0 -/* f0d8d2c: 00000000 */ nop -/* f0d8d30: 45020003 */ bc1fl .PB0f0d8d40 -/* f0d8d34: 4614003c */ c.lt.s $f0,$f20 -/* f0d8d38: 46009006 */ mov.s $f0,$f18 -/* f0d8d3c: 4614003c */ c.lt.s $f0,$f20 -.PB0f0d8d40: -/* f0d8d40: 00000000 */ nop -/* f0d8d44: 45020003 */ bc1fl .PB0f0d8d54 -/* f0d8d48: 4600703c */ c.lt.s $f14,$f0 -/* f0d8d4c: 4600a006 */ mov.s $f0,$f20 -/* f0d8d50: 4600703c */ c.lt.s $f14,$f0 -.PB0f0d8d54: -/* f0d8d54: 00000000 */ nop -/* f0d8d58: 45020004 */ bc1fl .PB0f0d8d6c -/* f0d8d5c: 460e003c */ c.lt.s $f0,$f14 -/* f0d8d60: 10000008 */ b .PB0f0d8d84 -/* f0d8d64: c420fb0c */ lwc1 $f0,-0x4f4($at) -/* f0d8d68: 460e003c */ c.lt.s $f0,$f14 -.PB0f0d8d6c: -/* f0d8d6c: 3c017f1b */ lui $at,0x7f1b -/* f0d8d70: 45020004 */ bc1fl .PB0f0d8d84 -/* f0d8d74: 4600b006 */ mov.s $f0,$f22 -/* f0d8d78: 10000002 */ b .PB0f0d8d84 -/* f0d8d7c: c420fb10 */ lwc1 $f0,-0x4f0($at) -/* f0d8d80: 4600b006 */ mov.s $f0,$f22 -.PB0f0d8d84: -/* f0d8d84: 46007380 */ add.s $f14,$f14,$f0 -/* f0d8d88: 460e903c */ c.lt.s $f18,$f14 -/* f0d8d8c: 00000000 */ nop -/* f0d8d90: 45020003 */ bc1fl .PB0f0d8da0 -/* f0d8d94: 4614703c */ c.lt.s $f14,$f20 -/* f0d8d98: 46009386 */ mov.s $f14,$f18 -/* f0d8d9c: 4614703c */ c.lt.s $f14,$f20 -.PB0f0d8da0: -/* f0d8da0: 00000000 */ nop -/* f0d8da4: 45000002 */ bc1f .PB0f0d8db0 -/* f0d8da8: 00000000 */ nop -/* f0d8dac: 4600a386 */ mov.s $f14,$f20 -.PB0f0d8db0: -/* f0d8db0: 10000003 */ b .PB0f0d8dc0 -/* f0d8db4: 460ec600 */ add.s $f24,$f24,$f14 -/* f0d8db8: c7b80074 */ lwc1 $f24,0x74($sp) -.PB0f0d8dbc: -/* f0d8dbc: 4600b386 */ mov.s $f14,$f22 -.PB0f0d8dc0: -/* f0d8dc0: 461a4301 */ sub.s $f12,$f8,$f26 -/* f0d8dc4: 3c017f1b */ lui $at,0x7f1b -/* f0d8dc8: 460ce03c */ c.lt.s $f28,$f12 -/* f0d8dcc: 00000000 */ nop -/* f0d8dd0: 45010005 */ bc1t .PB0f0d8de8 -/* f0d8dd4: 00000000 */ nop -/* f0d8dd8: 461e603c */ c.lt.s $f12,$f30 -/* f0d8ddc: 00000000 */ nop -/* f0d8de0: 45020029 */ bc1fl .PB0f0d8e88 -/* f0d8de4: c7ba006c */ lwc1 $f26,0x6c($sp) -.PB0f0d8de8: -/* f0d8de8: c42afb14 */ lwc1 $f10,-0x4ec($at) -/* f0d8dec: 3c017f1b */ lui $at,0x7f1b -/* f0d8df0: 460a6002 */ mul.s $f0,$f12,$f10 -/* f0d8df4: 4600903c */ c.lt.s $f18,$f0 -/* f0d8df8: 00000000 */ nop -/* f0d8dfc: 45020003 */ bc1fl .PB0f0d8e0c -/* f0d8e00: 4614003c */ c.lt.s $f0,$f20 -/* f0d8e04: 46009006 */ mov.s $f0,$f18 -/* f0d8e08: 4614003c */ c.lt.s $f0,$f20 -.PB0f0d8e0c: -/* f0d8e0c: 00000000 */ nop -/* f0d8e10: 45020003 */ bc1fl .PB0f0d8e20 -/* f0d8e14: 4600803c */ c.lt.s $f16,$f0 -/* f0d8e18: 4600a006 */ mov.s $f0,$f20 -/* f0d8e1c: 4600803c */ c.lt.s $f16,$f0 -.PB0f0d8e20: -/* f0d8e20: 00000000 */ nop -/* f0d8e24: 45020004 */ bc1fl .PB0f0d8e38 -/* f0d8e28: 4610003c */ c.lt.s $f0,$f16 -/* f0d8e2c: 10000008 */ b .PB0f0d8e50 -/* f0d8e30: c420fb18 */ lwc1 $f0,-0x4e8($at) -/* f0d8e34: 4610003c */ c.lt.s $f0,$f16 -.PB0f0d8e38: -/* f0d8e38: 3c017f1b */ lui $at,0x7f1b -/* f0d8e3c: 45020004 */ bc1fl .PB0f0d8e50 -/* f0d8e40: 4600b006 */ mov.s $f0,$f22 -/* f0d8e44: 10000002 */ b .PB0f0d8e50 -/* f0d8e48: c420fb1c */ lwc1 $f0,-0x4e4($at) -/* f0d8e4c: 4600b006 */ mov.s $f0,$f22 -.PB0f0d8e50: -/* f0d8e50: 46008400 */ add.s $f16,$f16,$f0 -/* f0d8e54: 4610903c */ c.lt.s $f18,$f16 -/* f0d8e58: 00000000 */ nop -/* f0d8e5c: 45020003 */ bc1fl .PB0f0d8e6c -/* f0d8e60: 4614803c */ c.lt.s $f16,$f20 -/* f0d8e64: 46009406 */ mov.s $f16,$f18 -/* f0d8e68: 4614803c */ c.lt.s $f16,$f20 -.PB0f0d8e6c: -/* f0d8e6c: 00000000 */ nop -/* f0d8e70: 45000002 */ bc1f .PB0f0d8e7c -/* f0d8e74: 00000000 */ nop -/* f0d8e78: 4600a406 */ mov.s $f16,$f20 -.PB0f0d8e7c: -/* f0d8e7c: 10000003 */ b .PB0f0d8e8c -/* f0d8e80: 4610d680 */ add.s $f26,$f26,$f16 -/* f0d8e84: c7ba006c */ lwc1 $f26,0x6c($sp) -.PB0f0d8e88: -/* f0d8e88: 4600b406 */ mov.s $f16,$f22 -.PB0f0d8e8c: -/* f0d8e8c: 0043082a */ slt $at,$v0,$v1 -/* f0d8e90: 5420ff96 */ bnezl $at,.PB0f0d8cec -/* f0d8e94: c7a40074 */ lwc1 $f4,0x74($sp) -/* f0d8e98: 3c018007 */ lui $at,0x8007 -/* f0d8e9c: e4302c60 */ swc1 $f16,0x2c60($at) -/* f0d8ea0: 3c018007 */ lui $at,0x8007 -/* f0d8ea4: e42e2c5c */ swc1 $f14,0x2c5c($at) -/* f0d8ea8: 3c018007 */ lui $at,0x8007 -/* f0d8eac: e4382c54 */ swc1 $f24,0x2c54($at) -/* f0d8eb0: 3c018007 */ lui $at,0x8007 -/* f0d8eb4: e43a2c58 */ swc1 $f26,0x2c58($at) -.PB0f0d8eb8: -/* f0d8eb8: 3c018007 */ lui $at,0x8007 -/* f0d8ebc: c4382c54 */ lwc1 $f24,0x2c54($at) -/* f0d8ec0: 3c018007 */ lui $at,0x8007 -/* f0d8ec4: c43a2c58 */ lwc1 $f26,0x2c58($at) -/* f0d8ec8: 4600c10d */ trunc.w.s $f4,$f24 -/* f0d8ecc: 3c0500ff */ lui $a1,0xff -/* f0d8ed0: 34a50028 */ ori $a1,$a1,0x28 -/* f0d8ed4: 4600d18d */ trunc.w.s $f6,$f26 -/* f0d8ed8: 44192000 */ mfc1 $t9,$f4 -/* f0d8edc: 02002025 */ move $a0,$s0 -/* f0d8ee0: 440f3000 */ mfc1 $t7,$f6 -/* f0d8ee4: afb900cc */ sw $t9,0xcc($sp) -/* f0d8ee8: 0fc552fc */ jal gfxSetPrimColour -/* f0d8eec: afaf00c8 */ sw $t7,0xc8($sp) -/* f0d8ef0: 3c038008 */ lui $v1,0x8008 -/* f0d8ef4: 8fab00d4 */ lw $t3,0xd4($sp) -/* f0d8ef8: 24631f90 */ addiu $v1,$v1,0x1f90 -/* f0d8efc: 8c790000 */ lw $t9,0x0($v1) -/* f0d8f00: 25650002 */ addiu $a1,$t3,0x2 -/* f0d8f04: 8faa00d8 */ lw $t2,0xd8($sp) -/* f0d8f08: 00b90019 */ multu $a1,$t9 -/* f0d8f0c: 3c06f600 */ lui $a2,0xf600 -/* f0d8f10: 314803ff */ andi $t0,$t2,0x3ff -/* f0d8f14: 0008c080 */ sll $t8,$t0,0x2 -/* f0d8f18: 03004025 */ move $t0,$t8 -/* f0d8f1c: 2567ffff */ addiu $a3,$t3,-1 -/* f0d8f20: 25490001 */ addiu $t1,$t2,0x1 -/* f0d8f24: 24440018 */ addiu $a0,$v0,0x18 -/* f0d8f28: 00007012 */ mflo $t6 -/* f0d8f2c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f0d8f30: 000fc380 */ sll $t8,$t7,0xe -/* f0d8f34: 0306c825 */ or $t9,$t8,$a2 -/* f0d8f38: 03287025 */ or $t6,$t9,$t0 -/* f0d8f3c: ac4e0000 */ sw $t6,0x0($v0) -/* f0d8f40: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8f44: 00ef0019 */ multu $a3,$t7 -/* f0d8f48: 254fffff */ addiu $t7,$t2,-1 -/* f0d8f4c: 0000c012 */ mflo $t8 -/* f0d8f50: 331903ff */ andi $t9,$t8,0x3ff -/* f0d8f54: 00197380 */ sll $t6,$t9,0xe -/* f0d8f58: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d8f5c: 0018c880 */ sll $t9,$t8,0x2 -/* f0d8f60: 01d97825 */ or $t7,$t6,$t9 -/* f0d8f64: ac4f0004 */ sw $t7,0x4($v0) -/* f0d8f68: 8c790000 */ lw $t9,0x0($v1) -/* f0d8f6c: 313803ff */ andi $t8,$t1,0x3ff -/* f0d8f70: 00184880 */ sll $t1,$t8,0x2 -/* f0d8f74: 00b90019 */ multu $a1,$t9 -/* f0d8f78: 00007812 */ mflo $t7 -/* f0d8f7c: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d8f80: 00187380 */ sll $t6,$t8,0xe -/* f0d8f84: 01c6c825 */ or $t9,$t6,$a2 -/* f0d8f88: 03297825 */ or $t7,$t9,$t1 -/* f0d8f8c: ac4f0008 */ sw $t7,0x8($v0) -/* f0d8f90: 8c780000 */ lw $t8,0x0($v1) -/* f0d8f94: 00f80019 */ multu $a3,$t8 -/* f0d8f98: 00007012 */ mflo $t6 -/* f0d8f9c: 31d903ff */ andi $t9,$t6,0x3ff -/* f0d8fa0: 00197b80 */ sll $t7,$t9,0xe -/* f0d8fa4: 01e8c025 */ or $t8,$t7,$t0 -/* f0d8fa8: ac58000c */ sw $t8,0xc($v0) -/* f0d8fac: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8fb0: 00ae0019 */ multu $a1,$t6 -/* f0d8fb4: 0000c812 */ mflo $t9 -/* f0d8fb8: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8fbc: 000fc380 */ sll $t8,$t7,0xe -/* f0d8fc0: 25590002 */ addiu $t9,$t2,0x2 -/* f0d8fc4: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8fc8: 03067025 */ or $t6,$t8,$a2 -/* f0d8fcc: 000fc080 */ sll $t8,$t7,0x2 -/* f0d8fd0: 01d8c825 */ or $t9,$t6,$t8 -/* f0d8fd4: ac590010 */ sw $t9,0x10($v0) -/* f0d8fd8: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8fdc: 00ef0019 */ multu $a3,$t7 -/* f0d8fe0: 00007012 */ mflo $t6 -/* f0d8fe4: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d8fe8: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8fec: 03297825 */ or $t7,$t9,$t1 -/* f0d8ff0: 0fc55313 */ jal func0f153838 -/* f0d8ff4: ac4f0014 */ sw $t7,0x14($v0) -/* f0d8ff8: 00402025 */ move $a0,$v0 -/* f0d8ffc: 0fc552fc */ jal gfxSetPrimColour -/* f0d9000: 8fa500e4 */ lw $a1,0xe4($sp) -/* f0d9004: 8fb800dc */ lw $t8,0xdc($sp) -/* f0d9008: 8fb900c8 */ lw $t9,0xc8($sp) -/* f0d900c: 8fae00cc */ lw $t6,0xcc($sp) -/* f0d9010: 3c038008 */ lui $v1,0x8008 -/* f0d9014: 24631f90 */ addiu $v1,$v1,0x1f90 -/* f0d9018: 0338f821 */ addu $ra,$t9,$t8 -/* f0d901c: 8c790000 */ lw $t9,0x0($v1) -/* f0d9020: 01d82823 */ subu $a1,$t6,$t8 -/* f0d9024: 24ac0001 */ addiu $t4,$a1,0x1 -/* f0d9028: 01990019 */ multu $t4,$t9 -/* f0d902c: 27e80001 */ addiu $t0,$ra,0x1 -/* f0d9030: 310f03ff */ andi $t7,$t0,0x3ff -/* f0d9034: 000f4080 */ sll $t0,$t7,0x2 -/* f0d9038: 3c06f600 */ lui $a2,0xf600 -/* f0d903c: 244b0018 */ addiu $t3,$v0,0x18 -/* f0d9040: 25700008 */ addiu $s0,$t3,0x8 -/* f0d9044: 0000c012 */ mflo $t8 -/* f0d9048: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d904c: 000f7380 */ sll $t6,$t7,0xe -/* f0d9050: 01c6c825 */ or $t9,$t6,$a2 -/* f0d9054: 0328c025 */ or $t8,$t9,$t0 -/* f0d9058: ac580000 */ sw $t8,0x0($v0) -/* f0d905c: 8c780000 */ lw $t8,0x0($v1) -/* f0d9060: 8faf00c8 */ lw $t7,0xc8($sp) -/* f0d9064: 8fae00dc */ lw $t6,0xdc($sp) -/* f0d9068: 00b80019 */ multu $a1,$t8 -/* f0d906c: 01ee3823 */ subu $a3,$t7,$t6 -/* f0d9070: 30e403ff */ andi $a0,$a3,0x3ff -/* f0d9074: 0004c880 */ sll $t9,$a0,0x2 -/* f0d9078: 03202025 */ move $a0,$t9 -/* f0d907c: 24ed0001 */ addiu $t5,$a3,0x1 -/* f0d9080: 00007812 */ mflo $t7 -/* f0d9084: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d9088: 000ecb80 */ sll $t9,$t6,0xe -/* f0d908c: 0324c025 */ or $t8,$t9,$a0 -/* f0d9090: ac580004 */ sw $t8,0x4($v0) -/* f0d9094: 8faf00cc */ lw $t7,0xcc($sp) -/* f0d9098: 8fae00dc */ lw $t6,0xdc($sp) -/* f0d909c: 8c790000 */ lw $t9,0x0($v1) -/* f0d90a0: 01ee5021 */ addu $t2,$t7,$t6 -/* f0d90a4: 25490001 */ addiu $t1,$t2,0x1 -/* f0d90a8: 01390019 */ multu $t1,$t9 -/* f0d90ac: 0000c012 */ mflo $t8 -/* f0d90b0: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d90b4: 000f7380 */ sll $t6,$t7,0xe -/* f0d90b8: 01c6c825 */ or $t9,$t6,$a2 -/* f0d90bc: 0328c025 */ or $t8,$t9,$t0 -/* f0d90c0: ac580008 */ sw $t8,0x8($v0) -/* f0d90c4: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d90c8: 014f0019 */ multu $t2,$t7 -/* f0d90cc: 00007012 */ mflo $t6 -/* f0d90d0: 31d903ff */ andi $t9,$t6,0x3ff -/* f0d90d4: 0019c380 */ sll $t8,$t9,0xe -/* f0d90d8: 03047825 */ or $t7,$t8,$a0 -/* f0d90dc: ac4f000c */ sw $t7,0xc($v0) -/* f0d90e0: 8c780000 */ lw $t8,0x0($v1) -/* f0d90e4: 31ae03ff */ andi $t6,$t5,0x3ff -/* f0d90e8: 000e6880 */ sll $t5,$t6,0x2 -/* f0d90ec: 01380019 */ multu $t1,$t8 -/* f0d90f0: 00007812 */ mflo $t7 -/* f0d90f4: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d90f8: 000ecb80 */ sll $t9,$t6,0xe -/* f0d90fc: 0326c025 */ or $t8,$t9,$a2 -/* f0d9100: 030d7825 */ or $t7,$t8,$t5 -/* f0d9104: ac4f0010 */ sw $t7,0x10($v0) -/* f0d9108: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d910c: afbf006c */ sw $ra,0x6c($sp) -/* f0d9110: 00ae0019 */ multu $a1,$t6 -/* f0d9114: 0000c812 */ mflo $t9 -/* f0d9118: 333803ff */ andi $t8,$t9,0x3ff -/* f0d911c: 00187b80 */ sll $t7,$t8,0xe -/* f0d9120: 01e47025 */ or $t6,$t7,$a0 -/* f0d9124: ac4e0014 */ sw $t6,0x14($v0) -/* f0d9128: 8c790000 */ lw $t9,0x0($v1) -/* f0d912c: 01390019 */ multu $t1,$t9 -/* f0d9130: 0000c012 */ mflo $t8 -/* f0d9134: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d9138: 000f7380 */ sll $t6,$t7,0xe -/* f0d913c: 01c6c825 */ or $t9,$t6,$a2 -/* f0d9140: 0328c025 */ or $t8,$t9,$t0 -/* f0d9144: ad780000 */ sw $t8,0x0($t3) -/* f0d9148: 8c790000 */ lw $t9,0x0($v1) -/* f0d914c: 8fbf006c */ lw $ra,0x6c($sp) -/* f0d9150: 00b90019 */ multu $a1,$t9 -/* f0d9154: 33ef03ff */ andi $t7,$ra,0x3ff -/* f0d9158: 000ff880 */ sll $ra,$t7,0x2 -/* f0d915c: 0000c012 */ mflo $t8 -/* f0d9160: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d9164: 000f7380 */ sll $t6,$t7,0xe -/* f0d9168: 01dfc825 */ or $t9,$t6,$ra -/* f0d916c: ad790004 */ sw $t9,0x4($t3) -/* f0d9170: 8faf00e0 */ lw $t7,0xe0($sp) -/* f0d9174: 8fb800c8 */ lw $t8,0xc8($sp) -/* f0d9178: afb00098 */ sw $s0,0x98($sp) -/* f0d917c: 26100008 */ addiu $s0,$s0,0x8 -/* f0d9180: 030f7023 */ subu $t6,$t8,$t7 -/* f0d9184: 25d90001 */ addiu $t9,$t6,0x1 -/* f0d9188: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d918c: 333803ff */ andi $t8,$t9,0x3ff -/* f0d9190: 00187880 */ sll $t7,$t8,0x2 -/* f0d9194: 018e0019 */ multu $t4,$t6 -/* f0d9198: afaf0050 */ sw $t7,0x50($sp) -/* f0d919c: 02001025 */ move $v0,$s0 -/* f0d91a0: 26100008 */ addiu $s0,$s0,0x8 -/* f0d91a4: 02005825 */ move $t3,$s0 -/* f0d91a8: 26100008 */ addiu $s0,$s0,0x8 -/* f0d91ac: 0000c812 */ mflo $t9 -/* f0d91b0: 333803ff */ andi $t8,$t9,0x3ff -/* f0d91b4: 00187380 */ sll $t6,$t8,0xe -/* f0d91b8: 01c6c825 */ or $t9,$t6,$a2 -/* f0d91bc: 8fae0098 */ lw $t6,0x98($sp) -/* f0d91c0: 032fc025 */ or $t8,$t9,$t7 -/* f0d91c4: add80000 */ sw $t8,0x0($t6) -/* f0d91c8: 8c790000 */ lw $t9,0x0($v1) -/* f0d91cc: 00b90019 */ multu $a1,$t9 -/* f0d91d0: 00007812 */ mflo $t7 -/* f0d91d4: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d91d8: 0018cb80 */ sll $t9,$t8,0xe -/* f0d91dc: 03247825 */ or $t7,$t9,$a0 -/* f0d91e0: adcf0004 */ sw $t7,0x4($t6) -/* f0d91e4: 8c780000 */ lw $t8,0x0($v1) -/* f0d91e8: 01980019 */ multu $t4,$t8 -/* f0d91ec: 0000c812 */ mflo $t9 -/* f0d91f0: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d91f4: 000f7380 */ sll $t6,$t7,0xe -/* f0d91f8: 01c6c025 */ or $t8,$t6,$a2 -/* f0d91fc: 0308c825 */ or $t9,$t8,$t0 -/* f0d9200: ac590000 */ sw $t9,0x0($v0) -/* f0d9204: 8fae00e0 */ lw $t6,0xe0($sp) -/* f0d9208: 8faf00c8 */ lw $t7,0xc8($sp) -/* f0d920c: 01ee3821 */ addu $a3,$t7,$t6 -/* f0d9210: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d9214: 30f803ff */ andi $t8,$a3,0x3ff -/* f0d9218: 00183880 */ sll $a3,$t8,0x2 -/* f0d921c: 00af0019 */ multu $a1,$t7 -/* f0d9220: 00007012 */ mflo $t6 -/* f0d9224: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d9228: 0018cb80 */ sll $t9,$t8,0xe -/* f0d922c: 03277825 */ or $t7,$t9,$a3 -/* f0d9230: ac4f0004 */ sw $t7,0x4($v0) -/* f0d9234: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d9238: 02001025 */ move $v0,$s0 -/* f0d923c: 26100008 */ addiu $s0,$s0,0x8 -/* f0d9240: 012e0019 */ multu $t1,$t6 -/* f0d9244: 02006025 */ move $t4,$s0 -/* f0d9248: 26100008 */ addiu $s0,$s0,0x8 -/* f0d924c: 0000c012 */ mflo $t8 -/* f0d9250: 331903ff */ andi $t9,$t8,0x3ff -/* f0d9254: 8fb80050 */ lw $t8,0x50($sp) -/* f0d9258: 00197b80 */ sll $t7,$t9,0xe -/* f0d925c: 01e67025 */ or $t6,$t7,$a2 -/* f0d9260: 01d8c825 */ or $t9,$t6,$t8 -/* f0d9264: ad790000 */ sw $t9,0x0($t3) -/* f0d9268: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d926c: 014f0019 */ multu $t2,$t7 -/* f0d9270: 00007012 */ mflo $t6 -/* f0d9274: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d9278: 0018cb80 */ sll $t9,$t8,0xe -/* f0d927c: 03247825 */ or $t7,$t9,$a0 -/* f0d9280: ad6f0004 */ sw $t7,0x4($t3) -/* f0d9284: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d9288: 012e0019 */ multu $t1,$t6 -/* f0d928c: 0000c012 */ mflo $t8 -/* f0d9290: 331903ff */ andi $t9,$t8,0x3ff -/* f0d9294: 00197b80 */ sll $t7,$t9,0xe -/* f0d9298: 01e67025 */ or $t6,$t7,$a2 -/* f0d929c: 01c8c025 */ or $t8,$t6,$t0 -/* f0d92a0: ac580000 */ sw $t8,0x0($v0) -/* f0d92a4: 8c790000 */ lw $t9,0x0($v1) -/* f0d92a8: 01590019 */ multu $t2,$t9 -/* f0d92ac: 00007812 */ mflo $t7 -/* f0d92b0: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d92b4: 000ec380 */ sll $t8,$t6,0xe -/* f0d92b8: 0307c825 */ or $t9,$t8,$a3 -/* f0d92bc: ac590004 */ sw $t9,0x4($v0) -/* f0d92c0: 8fae00e0 */ lw $t6,0xe0($sp) -/* f0d92c4: 8faf00cc */ lw $t7,0xcc($sp) -/* f0d92c8: 02001025 */ move $v0,$s0 -/* f0d92cc: 26100008 */ addiu $s0,$s0,0x8 -/* f0d92d0: 01eec023 */ subu $t8,$t7,$t6 -/* f0d92d4: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d92d8: 27190001 */ addiu $t9,$t8,0x1 -/* f0d92dc: afb90070 */ sw $t9,0x70($sp) -/* f0d92e0: 032f0019 */ multu $t9,$t7 -/* f0d92e4: 02005025 */ move $t2,$s0 -/* f0d92e8: 26100008 */ addiu $s0,$s0,0x8 -/* f0d92ec: 00007012 */ mflo $t6 -/* f0d92f0: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d92f4: 0018cb80 */ sll $t9,$t8,0xe -/* f0d92f8: 03267825 */ or $t7,$t9,$a2 -/* f0d92fc: 01ed7025 */ or $t6,$t7,$t5 -/* f0d9300: ad8e0000 */ sw $t6,0x0($t4) -/* f0d9304: 8c780000 */ lw $t8,0x0($v1) -/* f0d9308: 00b80019 */ multu $a1,$t8 -/* f0d930c: 0000c812 */ mflo $t9 -/* f0d9310: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d9314: 000f7380 */ sll $t6,$t7,0xe -/* f0d9318: 01c4c025 */ or $t8,$t6,$a0 -/* f0d931c: ad980004 */ sw $t8,0x4($t4) -/* f0d9320: 8c790000 */ lw $t9,0x0($v1) -/* f0d9324: 01390019 */ multu $t1,$t9 -/* f0d9328: 00007812 */ mflo $t7 -/* f0d932c: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d9330: 000ec380 */ sll $t8,$t6,0xe -/* f0d9334: 0306c825 */ or $t9,$t8,$a2 -/* f0d9338: 032d7825 */ or $t7,$t9,$t5 -/* f0d933c: ac4f0000 */ sw $t7,0x0($v0) -/* f0d9340: 8fb800e0 */ lw $t8,0xe0($sp) -/* f0d9344: 8fae00cc */ lw $t6,0xcc($sp) -/* f0d9348: 8c790000 */ lw $t9,0x0($v1) -/* f0d934c: 01d83821 */ addu $a3,$t6,$t8 -/* f0d9350: 00f90019 */ multu $a3,$t9 -/* f0d9354: 00007812 */ mflo $t7 -/* f0d9358: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d935c: 000ec380 */ sll $t8,$t6,0xe -/* f0d9360: 0304c825 */ or $t9,$t8,$a0 -/* f0d9364: ac590004 */ sw $t9,0x4($v0) -/* f0d9368: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d936c: 8faf0070 */ lw $t7,0x70($sp) -/* f0d9370: 01ee0019 */ multu $t7,$t6 -/* f0d9374: 0000c012 */ mflo $t8 -/* f0d9378: 331903ff */ andi $t9,$t8,0x3ff -/* f0d937c: 00197b80 */ sll $t7,$t9,0xe -/* f0d9380: 01e67025 */ or $t6,$t7,$a2 -/* f0d9384: 01c8c025 */ or $t8,$t6,$t0 -/* f0d9388: ad580000 */ sw $t8,0x0($t2) -/* f0d938c: 8c790000 */ lw $t9,0x0($v1) -/* f0d9390: 00b90019 */ multu $a1,$t9 -/* f0d9394: 00007812 */ mflo $t7 -/* f0d9398: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d939c: 000ec380 */ sll $t8,$t6,0xe -/* f0d93a0: 031fc825 */ or $t9,$t8,$ra -/* f0d93a4: ad590004 */ sw $t9,0x4($t2) -/* f0d93a8: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d93ac: 02001025 */ move $v0,$s0 -/* f0d93b0: 26040008 */ addiu $a0,$s0,0x8 -/* f0d93b4: 012f0019 */ multu $t1,$t7 -/* f0d93b8: 00007012 */ mflo $t6 -/* f0d93bc: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d93c0: 0018cb80 */ sll $t9,$t8,0xe -/* f0d93c4: 03267825 */ or $t7,$t9,$a2 -/* f0d93c8: 01e87025 */ or $t6,$t7,$t0 -/* f0d93cc: ac4e0000 */ sw $t6,0x0($v0) -/* f0d93d0: 8c780000 */ lw $t8,0x0($v1) -/* f0d93d4: 00f80019 */ multu $a3,$t8 -/* f0d93d8: 0000c812 */ mflo $t9 -/* f0d93dc: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d93e0: 000f7380 */ sll $t6,$t7,0xe -/* f0d93e4: 01dfc025 */ or $t8,$t6,$ra -/* f0d93e8: 0fc55313 */ jal func0f153838 -/* f0d93ec: ac580004 */ sw $t8,0x4($v0) -/* f0d93f0: 8fbf004c */ lw $ra,0x4c($sp) -/* f0d93f4: d7b40018 */ ldc1 $f20,0x18($sp) -/* f0d93f8: d7b60020 */ ldc1 $f22,0x20($sp) -/* f0d93fc: d7b80028 */ ldc1 $f24,0x28($sp) -/* f0d9400: d7ba0030 */ ldc1 $f26,0x30($sp) -/* f0d9404: d7bc0038 */ ldc1 $f28,0x38($sp) -/* f0d9408: d7be0040 */ ldc1 $f30,0x40($sp) -/* f0d940c: 8fb00048 */ lw $s0,0x48($sp) -/* f0d9410: 03e00008 */ jr $ra -/* f0d9414: 27bd00d0 */ addiu $sp,$sp,0xd0 -); -#else -GLOBAL_ASM( -glabel sightDrawDelayedAimer -.late_rodata -glabel var7f1adde0 -.word 0x3d4ccccd -glabel var7f1adde4 -.word 0xbd4ccccd -glabel var7f1adde8 -.word 0xbd4ccccd -.text -/* f0d87a8: 27bdff30 */ addiu $sp,$sp,-208 -/* f0d87ac: 3c03800a */ lui $v1,%hi(g_Vars+0x38) -/* f0d87b0: 8c639ff8 */ lw $v1,%lo(g_Vars+0x38)($v1) -/* f0d87b4: afb00048 */ sw $s0,0x48($sp) -/* f0d87b8: 00808025 */ or $s0,$a0,$zero -/* f0d87bc: afbf004c */ sw $ra,0x4c($sp) -/* f0d87c0: f7be0040 */ sdc1 $f30,0x40($sp) -/* f0d87c4: f7bc0038 */ sdc1 $f28,0x38($sp) -/* f0d87c8: f7ba0030 */ sdc1 $f26,0x30($sp) -/* f0d87cc: f7b80028 */ sdc1 $f24,0x28($sp) -/* f0d87d0: f7b60020 */ sdc1 $f22,0x20($sp) -/* f0d87d4: f7b40018 */ sdc1 $f20,0x18($sp) -/* f0d87d8: afa500d4 */ sw $a1,0xd4($sp) -/* f0d87dc: afa600d8 */ sw $a2,0xd8($sp) -/* f0d87e0: afa700dc */ sw $a3,0xdc($sp) -/* f0d87e4: 1860008c */ blez $v1,.L0f0d8a18 -/* f0d87e8: 00001025 */ or $v0,$zero,$zero -/* f0d87ec: 3c013f00 */ lui $at,0x3f00 -/* f0d87f0: 4481f000 */ mtc1 $at,$f30 -/* f0d87f4: 3c018007 */ lui $at,%hi(var80070f88) -/* f0d87f8: c43c0f88 */ lwc1 $f28,%lo(var80070f88)($at) -/* f0d87fc: 3c018007 */ lui $at,%hi(var80070f84) -/* f0d8800: c43a0f84 */ lwc1 $f26,%lo(var80070f84)($at) -/* f0d8804: 44852000 */ mtc1 $a1,$f4 -/* f0d8808: 44864000 */ mtc1 $a2,$f8 -/* f0d880c: 3c017f1b */ lui $at,%hi(var7f1adde0) -/* f0d8810: c436dde0 */ lwc1 $f22,%lo(var7f1adde0)($at) -/* f0d8814: 3c01c000 */ lui $at,0xc000 -/* f0d8818: 468021a0 */ cvt.s.w $f6,$f4 -/* f0d881c: 4481a000 */ mtc1 $at,$f20 -/* f0d8820: 3c014000 */ lui $at,0x4000 -/* f0d8824: 44819000 */ mtc1 $at,$f18 -/* f0d8828: 3c018007 */ lui $at,%hi(var80070f90) -/* f0d882c: 468042a0 */ cvt.s.w $f10,$f8 -/* f0d8830: c4300f90 */ lwc1 $f16,%lo(var80070f90)($at) -/* f0d8834: 3c018007 */ lui $at,%hi(var80070f8c) -/* f0d8838: 4480c000 */ mtc1 $zero,$f24 -/* f0d883c: c42e0f8c */ lwc1 $f14,%lo(var80070f8c)($at) -/* f0d8840: e7a60074 */ swc1 $f6,0x74($sp) -/* f0d8844: e7aa006c */ swc1 $f10,0x6c($sp) -/* f0d8848: c7a40074 */ lwc1 $f4,0x74($sp) -.L0f0d884c: -/* f0d884c: 24420001 */ addiu $v0,$v0,0x1 -/* f0d8850: 3c01bf00 */ lui $at,0xbf00 -/* f0d8854: 461a2301 */ sub.s $f12,$f4,$f26 -/* f0d8858: c7a8006c */ lwc1 $f8,0x6c($sp) -/* f0d885c: 460cf03c */ c.lt.s $f30,$f12 -/* f0d8860: 00000000 */ nop -/* f0d8864: 45010007 */ bc1t .L0f0d8884 -/* f0d8868: 00000000 */ nop -/* f0d886c: 44813000 */ mtc1 $at,$f6 -/* f0d8870: 00000000 */ nop -/* f0d8874: 4606603c */ c.lt.s $f12,$f6 -/* f0d8878: 00000000 */ nop -/* f0d887c: 45020027 */ bc1fl .L0f0d891c -/* f0d8880: c7ba0074 */ lwc1 $f26,0x74($sp) -.L0f0d8884: -/* f0d8884: 46166002 */ mul.s $f0,$f12,$f22 -/* f0d8888: 4600903c */ c.lt.s $f18,$f0 -/* f0d888c: 00000000 */ nop -/* f0d8890: 45020003 */ bc1fl .L0f0d88a0 -/* f0d8894: 4614003c */ c.lt.s $f0,$f20 -/* f0d8898: 46009006 */ mov.s $f0,$f18 -/* f0d889c: 4614003c */ c.lt.s $f0,$f20 -.L0f0d88a0: -/* f0d88a0: 00000000 */ nop -/* f0d88a4: 45020003 */ bc1fl .L0f0d88b4 -/* f0d88a8: 4600703c */ c.lt.s $f14,$f0 -/* f0d88ac: 4600a006 */ mov.s $f0,$f20 -/* f0d88b0: 4600703c */ c.lt.s $f14,$f0 -.L0f0d88b4: -/* f0d88b4: 00000000 */ nop -/* f0d88b8: 45020004 */ bc1fl .L0f0d88cc -/* f0d88bc: 460e003c */ c.lt.s $f0,$f14 -/* f0d88c0: 10000008 */ b .L0f0d88e4 -/* f0d88c4: 4600b006 */ mov.s $f0,$f22 -/* f0d88c8: 460e003c */ c.lt.s $f0,$f14 -.L0f0d88cc: -/* f0d88cc: 3c017f1b */ lui $at,%hi(var7f1adde4) -/* f0d88d0: 45020004 */ bc1fl .L0f0d88e4 -/* f0d88d4: 4600c006 */ mov.s $f0,$f24 -/* f0d88d8: 10000002 */ b .L0f0d88e4 -/* f0d88dc: c420dde4 */ lwc1 $f0,%lo(var7f1adde4)($at) -/* f0d88e0: 4600c006 */ mov.s $f0,$f24 -.L0f0d88e4: -/* f0d88e4: 46007380 */ add.s $f14,$f14,$f0 -/* f0d88e8: 460e903c */ c.lt.s $f18,$f14 -/* f0d88ec: 00000000 */ nop -/* f0d88f0: 45020003 */ bc1fl .L0f0d8900 -/* f0d88f4: 4614703c */ c.lt.s $f14,$f20 -/* f0d88f8: 46009386 */ mov.s $f14,$f18 -/* f0d88fc: 4614703c */ c.lt.s $f14,$f20 -.L0f0d8900: -/* f0d8900: 00000000 */ nop -/* f0d8904: 45000002 */ bc1f .L0f0d8910 -/* f0d8908: 00000000 */ nop -/* f0d890c: 4600a386 */ mov.s $f14,$f20 -.L0f0d8910: -/* f0d8910: 10000003 */ b .L0f0d8920 -/* f0d8914: 460ed680 */ add.s $f26,$f26,$f14 -/* f0d8918: c7ba0074 */ lwc1 $f26,0x74($sp) -.L0f0d891c: -/* f0d891c: 4600c386 */ mov.s $f14,$f24 -.L0f0d8920: -/* f0d8920: 461c4301 */ sub.s $f12,$f8,$f28 -/* f0d8924: 3c01bf00 */ lui $at,0xbf00 -/* f0d8928: 460cf03c */ c.lt.s $f30,$f12 -/* f0d892c: 00000000 */ nop -/* f0d8930: 45010007 */ bc1t .L0f0d8950 -/* f0d8934: 00000000 */ nop -/* f0d8938: 44815000 */ mtc1 $at,$f10 -/* f0d893c: 00000000 */ nop -/* f0d8940: 460a603c */ c.lt.s $f12,$f10 -/* f0d8944: 00000000 */ nop -/* f0d8948: 45020027 */ bc1fl .L0f0d89e8 -/* f0d894c: c7bc006c */ lwc1 $f28,0x6c($sp) -.L0f0d8950: -/* f0d8950: 46166002 */ mul.s $f0,$f12,$f22 -/* f0d8954: 4600903c */ c.lt.s $f18,$f0 -/* f0d8958: 00000000 */ nop -/* f0d895c: 45020003 */ bc1fl .L0f0d896c -/* f0d8960: 4614003c */ c.lt.s $f0,$f20 -/* f0d8964: 46009006 */ mov.s $f0,$f18 -/* f0d8968: 4614003c */ c.lt.s $f0,$f20 -.L0f0d896c: -/* f0d896c: 00000000 */ nop -/* f0d8970: 45020003 */ bc1fl .L0f0d8980 -/* f0d8974: 4600803c */ c.lt.s $f16,$f0 -/* f0d8978: 4600a006 */ mov.s $f0,$f20 -/* f0d897c: 4600803c */ c.lt.s $f16,$f0 -.L0f0d8980: -/* f0d8980: 00000000 */ nop -/* f0d8984: 45020004 */ bc1fl .L0f0d8998 -/* f0d8988: 4610003c */ c.lt.s $f0,$f16 -/* f0d898c: 10000008 */ b .L0f0d89b0 -/* f0d8990: 4600b006 */ mov.s $f0,$f22 -/* f0d8994: 4610003c */ c.lt.s $f0,$f16 -.L0f0d8998: -/* f0d8998: 3c017f1b */ lui $at,%hi(var7f1adde8) -/* f0d899c: 45020004 */ bc1fl .L0f0d89b0 -/* f0d89a0: 4600c006 */ mov.s $f0,$f24 -/* f0d89a4: 10000002 */ b .L0f0d89b0 -/* f0d89a8: c420dde8 */ lwc1 $f0,%lo(var7f1adde8)($at) -/* f0d89ac: 4600c006 */ mov.s $f0,$f24 -.L0f0d89b0: -/* f0d89b0: 46008400 */ add.s $f16,$f16,$f0 -/* f0d89b4: 4610903c */ c.lt.s $f18,$f16 -/* f0d89b8: 00000000 */ nop -/* f0d89bc: 45020003 */ bc1fl .L0f0d89cc -/* f0d89c0: 4614803c */ c.lt.s $f16,$f20 -/* f0d89c4: 46009406 */ mov.s $f16,$f18 -/* f0d89c8: 4614803c */ c.lt.s $f16,$f20 -.L0f0d89cc: -/* f0d89cc: 00000000 */ nop -/* f0d89d0: 45000002 */ bc1f .L0f0d89dc -/* f0d89d4: 00000000 */ nop -/* f0d89d8: 4600a406 */ mov.s $f16,$f20 -.L0f0d89dc: -/* f0d89dc: 10000003 */ b .L0f0d89ec -/* f0d89e0: 4610e700 */ add.s $f28,$f28,$f16 -/* f0d89e4: c7bc006c */ lwc1 $f28,0x6c($sp) -.L0f0d89e8: -/* f0d89e8: 4600c406 */ mov.s $f16,$f24 -.L0f0d89ec: -/* f0d89ec: 0043082a */ slt $at,$v0,$v1 -/* f0d89f0: 5420ff96 */ bnezl $at,.L0f0d884c -/* f0d89f4: c7a40074 */ lwc1 $f4,0x74($sp) -/* f0d89f8: 3c018007 */ lui $at,%hi(var80070f90) -/* f0d89fc: e4300f90 */ swc1 $f16,%lo(var80070f90)($at) -/* f0d8a00: 3c018007 */ lui $at,%hi(var80070f8c) -/* f0d8a04: e42e0f8c */ swc1 $f14,%lo(var80070f8c)($at) -/* f0d8a08: 3c018007 */ lui $at,%hi(var80070f84) -/* f0d8a0c: e43a0f84 */ swc1 $f26,%lo(var80070f84)($at) -/* f0d8a10: 3c018007 */ lui $at,%hi(var80070f88) -/* f0d8a14: e43c0f88 */ swc1 $f28,%lo(var80070f88)($at) -.L0f0d8a18: -/* f0d8a18: 3c018007 */ lui $at,%hi(var80070f84) -/* f0d8a1c: c43a0f84 */ lwc1 $f26,%lo(var80070f84)($at) -/* f0d8a20: 3c018007 */ lui $at,%hi(var80070f88) -/* f0d8a24: c43c0f88 */ lwc1 $f28,%lo(var80070f88)($at) -/* f0d8a28: 4600d10d */ trunc.w.s $f4,$f26 -/* f0d8a2c: 3c0500ff */ lui $a1,0xff -/* f0d8a30: 34a50028 */ ori $a1,$a1,0x28 -/* f0d8a34: 4600e18d */ trunc.w.s $f6,$f28 -/* f0d8a38: 44192000 */ mfc1 $t9,$f4 -/* f0d8a3c: 02002025 */ or $a0,$s0,$zero -/* f0d8a40: 440f3000 */ mfc1 $t7,$f6 -/* f0d8a44: afb900cc */ sw $t9,0xcc($sp) -/* f0d8a48: 0fc54df7 */ jal gfxSetPrimColour -/* f0d8a4c: afaf00c8 */ sw $t7,0xc8($sp) -/* f0d8a50: 3c038008 */ lui $v1,%hi(g_ScaleX) -/* f0d8a54: 8fab00d4 */ lw $t3,0xd4($sp) -/* f0d8a58: 2463fac0 */ addiu $v1,$v1,%lo(g_ScaleX) -/* f0d8a5c: 8c790000 */ lw $t9,0x0($v1) -/* f0d8a60: 25650002 */ addiu $a1,$t3,0x2 -/* f0d8a64: 8faa00d8 */ lw $t2,0xd8($sp) -/* f0d8a68: 00b90019 */ multu $a1,$t9 -/* f0d8a6c: 3c06f600 */ lui $a2,0xf600 -/* f0d8a70: 314803ff */ andi $t0,$t2,0x3ff -/* f0d8a74: 0008c080 */ sll $t8,$t0,0x2 -/* f0d8a78: 03004025 */ or $t0,$t8,$zero -/* f0d8a7c: 2567ffff */ addiu $a3,$t3,-1 -/* f0d8a80: 25490001 */ addiu $t1,$t2,0x1 -/* f0d8a84: 24440018 */ addiu $a0,$v0,0x18 -/* f0d8a88: 00007012 */ mflo $t6 -/* f0d8a8c: 31cf03ff */ andi $t7,$t6,0x3ff -/* f0d8a90: 000fc380 */ sll $t8,$t7,0xe -/* f0d8a94: 0306c825 */ or $t9,$t8,$a2 -/* f0d8a98: 03287025 */ or $t6,$t9,$t0 -/* f0d8a9c: ac4e0000 */ sw $t6,0x0($v0) -/* f0d8aa0: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8aa4: 00ef0019 */ multu $a3,$t7 -/* f0d8aa8: 254fffff */ addiu $t7,$t2,-1 -/* f0d8aac: 0000c012 */ mflo $t8 -/* f0d8ab0: 331903ff */ andi $t9,$t8,0x3ff -/* f0d8ab4: 00197380 */ sll $t6,$t9,0xe -/* f0d8ab8: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d8abc: 0018c880 */ sll $t9,$t8,0x2 -/* f0d8ac0: 01d97825 */ or $t7,$t6,$t9 -/* f0d8ac4: ac4f0004 */ sw $t7,0x4($v0) -/* f0d8ac8: 8c790000 */ lw $t9,0x0($v1) -/* f0d8acc: 313803ff */ andi $t8,$t1,0x3ff -/* f0d8ad0: 00184880 */ sll $t1,$t8,0x2 -/* f0d8ad4: 00b90019 */ multu $a1,$t9 -/* f0d8ad8: 00007812 */ mflo $t7 -/* f0d8adc: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d8ae0: 00187380 */ sll $t6,$t8,0xe -/* f0d8ae4: 01c6c825 */ or $t9,$t6,$a2 -/* f0d8ae8: 03297825 */ or $t7,$t9,$t1 -/* f0d8aec: ac4f0008 */ sw $t7,0x8($v0) -/* f0d8af0: 8c780000 */ lw $t8,0x0($v1) -/* f0d8af4: 00f80019 */ multu $a3,$t8 -/* f0d8af8: 00007012 */ mflo $t6 -/* f0d8afc: 31d903ff */ andi $t9,$t6,0x3ff -/* f0d8b00: 00197b80 */ sll $t7,$t9,0xe -/* f0d8b04: 01e8c025 */ or $t8,$t7,$t0 -/* f0d8b08: ac58000c */ sw $t8,0xc($v0) -/* f0d8b0c: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8b10: 00ae0019 */ multu $a1,$t6 -/* f0d8b14: 0000c812 */ mflo $t9 -/* f0d8b18: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8b1c: 000fc380 */ sll $t8,$t7,0xe -/* f0d8b20: 25590002 */ addiu $t9,$t2,0x2 -/* f0d8b24: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8b28: 03067025 */ or $t6,$t8,$a2 -/* f0d8b2c: 000fc080 */ sll $t8,$t7,0x2 -/* f0d8b30: 01d8c825 */ or $t9,$t6,$t8 -/* f0d8b34: ac590010 */ sw $t9,0x10($v0) -/* f0d8b38: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8b3c: 00ef0019 */ multu $a3,$t7 -/* f0d8b40: 00007012 */ mflo $t6 -/* f0d8b44: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d8b48: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8b4c: 03297825 */ or $t7,$t9,$t1 -/* f0d8b50: 0fc54e0e */ jal func0f153838 -/* f0d8b54: ac4f0014 */ sw $t7,0x14($v0) -/* f0d8b58: 00402025 */ or $a0,$v0,$zero -/* f0d8b5c: 0fc54df7 */ jal gfxSetPrimColour -/* f0d8b60: 8fa500e4 */ lw $a1,0xe4($sp) -/* f0d8b64: 8fb800dc */ lw $t8,0xdc($sp) -/* f0d8b68: 8fb900c8 */ lw $t9,0xc8($sp) -/* f0d8b6c: 8fae00cc */ lw $t6,0xcc($sp) -/* f0d8b70: 3c038008 */ lui $v1,%hi(g_ScaleX) -/* f0d8b74: 2463fac0 */ addiu $v1,$v1,%lo(g_ScaleX) -/* f0d8b78: 0338f821 */ addu $ra,$t9,$t8 -/* f0d8b7c: 8c790000 */ lw $t9,0x0($v1) -/* f0d8b80: 01d82823 */ subu $a1,$t6,$t8 -/* f0d8b84: 24ac0001 */ addiu $t4,$a1,0x1 -/* f0d8b88: 01990019 */ multu $t4,$t9 -/* f0d8b8c: 27e80001 */ addiu $t0,$ra,0x1 -/* f0d8b90: 310f03ff */ andi $t7,$t0,0x3ff -/* f0d8b94: 000f4080 */ sll $t0,$t7,0x2 -/* f0d8b98: 3c06f600 */ lui $a2,0xf600 -/* f0d8b9c: 244b0018 */ addiu $t3,$v0,0x18 -/* f0d8ba0: 25700008 */ addiu $s0,$t3,0x8 -/* f0d8ba4: 0000c012 */ mflo $t8 -/* f0d8ba8: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d8bac: 000f7380 */ sll $t6,$t7,0xe -/* f0d8bb0: 01c6c825 */ or $t9,$t6,$a2 -/* f0d8bb4: 0328c025 */ or $t8,$t9,$t0 -/* f0d8bb8: ac580000 */ sw $t8,0x0($v0) -/* f0d8bbc: 8c780000 */ lw $t8,0x0($v1) -/* f0d8bc0: 8faf00c8 */ lw $t7,0xc8($sp) -/* f0d8bc4: 8fae00dc */ lw $t6,0xdc($sp) -/* f0d8bc8: 00b80019 */ multu $a1,$t8 -/* f0d8bcc: 01ee3823 */ subu $a3,$t7,$t6 -/* f0d8bd0: 30e403ff */ andi $a0,$a3,0x3ff -/* f0d8bd4: 0004c880 */ sll $t9,$a0,0x2 -/* f0d8bd8: 03202025 */ or $a0,$t9,$zero -/* f0d8bdc: 24ed0001 */ addiu $t5,$a3,0x1 -/* f0d8be0: 00007812 */ mflo $t7 -/* f0d8be4: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d8be8: 000ecb80 */ sll $t9,$t6,0xe -/* f0d8bec: 0324c025 */ or $t8,$t9,$a0 -/* f0d8bf0: ac580004 */ sw $t8,0x4($v0) -/* f0d8bf4: 8faf00cc */ lw $t7,0xcc($sp) -/* f0d8bf8: 8fae00dc */ lw $t6,0xdc($sp) -/* f0d8bfc: 8c790000 */ lw $t9,0x0($v1) -/* f0d8c00: 01ee5021 */ addu $t2,$t7,$t6 -/* f0d8c04: 25490001 */ addiu $t1,$t2,0x1 -/* f0d8c08: 01390019 */ multu $t1,$t9 -/* f0d8c0c: 0000c012 */ mflo $t8 -/* f0d8c10: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d8c14: 000f7380 */ sll $t6,$t7,0xe -/* f0d8c18: 01c6c825 */ or $t9,$t6,$a2 -/* f0d8c1c: 0328c025 */ or $t8,$t9,$t0 -/* f0d8c20: ac580008 */ sw $t8,0x8($v0) -/* f0d8c24: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8c28: 014f0019 */ multu $t2,$t7 -/* f0d8c2c: 00007012 */ mflo $t6 -/* f0d8c30: 31d903ff */ andi $t9,$t6,0x3ff -/* f0d8c34: 0019c380 */ sll $t8,$t9,0xe -/* f0d8c38: 03047825 */ or $t7,$t8,$a0 -/* f0d8c3c: ac4f000c */ sw $t7,0xc($v0) -/* f0d8c40: 8c780000 */ lw $t8,0x0($v1) -/* f0d8c44: 31ae03ff */ andi $t6,$t5,0x3ff -/* f0d8c48: 000e6880 */ sll $t5,$t6,0x2 -/* f0d8c4c: 01380019 */ multu $t1,$t8 -/* f0d8c50: 00007812 */ mflo $t7 -/* f0d8c54: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d8c58: 000ecb80 */ sll $t9,$t6,0xe -/* f0d8c5c: 0326c025 */ or $t8,$t9,$a2 -/* f0d8c60: 030d7825 */ or $t7,$t8,$t5 -/* f0d8c64: ac4f0010 */ sw $t7,0x10($v0) -/* f0d8c68: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8c6c: afbf006c */ sw $ra,0x6c($sp) -/* f0d8c70: 00ae0019 */ multu $a1,$t6 -/* f0d8c74: 0000c812 */ mflo $t9 -/* f0d8c78: 333803ff */ andi $t8,$t9,0x3ff -/* f0d8c7c: 00187b80 */ sll $t7,$t8,0xe -/* f0d8c80: 01e47025 */ or $t6,$t7,$a0 -/* f0d8c84: ac4e0014 */ sw $t6,0x14($v0) -/* f0d8c88: 8c790000 */ lw $t9,0x0($v1) -/* f0d8c8c: 01390019 */ multu $t1,$t9 -/* f0d8c90: 0000c012 */ mflo $t8 -/* f0d8c94: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d8c98: 000f7380 */ sll $t6,$t7,0xe -/* f0d8c9c: 01c6c825 */ or $t9,$t6,$a2 -/* f0d8ca0: 0328c025 */ or $t8,$t9,$t0 -/* f0d8ca4: ad780000 */ sw $t8,0x0($t3) -/* f0d8ca8: 8c790000 */ lw $t9,0x0($v1) -/* f0d8cac: 8fbf006c */ lw $ra,0x6c($sp) -/* f0d8cb0: 00b90019 */ multu $a1,$t9 -/* f0d8cb4: 33ef03ff */ andi $t7,$ra,0x3ff -/* f0d8cb8: 000ff880 */ sll $ra,$t7,0x2 -/* f0d8cbc: 0000c012 */ mflo $t8 -/* f0d8cc0: 330f03ff */ andi $t7,$t8,0x3ff -/* f0d8cc4: 000f7380 */ sll $t6,$t7,0xe -/* f0d8cc8: 01dfc825 */ or $t9,$t6,$ra -/* f0d8ccc: ad790004 */ sw $t9,0x4($t3) -/* f0d8cd0: 8faf00e0 */ lw $t7,0xe0($sp) -/* f0d8cd4: 8fb800c8 */ lw $t8,0xc8($sp) -/* f0d8cd8: afb00098 */ sw $s0,0x98($sp) -/* f0d8cdc: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8ce0: 030f7023 */ subu $t6,$t8,$t7 -/* f0d8ce4: 25d90001 */ addiu $t9,$t6,0x1 -/* f0d8ce8: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8cec: 333803ff */ andi $t8,$t9,0x3ff -/* f0d8cf0: 00187880 */ sll $t7,$t8,0x2 -/* f0d8cf4: 018e0019 */ multu $t4,$t6 -/* f0d8cf8: afaf0050 */ sw $t7,0x50($sp) -/* f0d8cfc: 02001025 */ or $v0,$s0,$zero -/* f0d8d00: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8d04: 02005825 */ or $t3,$s0,$zero -/* f0d8d08: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8d0c: 0000c812 */ mflo $t9 -/* f0d8d10: 333803ff */ andi $t8,$t9,0x3ff -/* f0d8d14: 00187380 */ sll $t6,$t8,0xe -/* f0d8d18: 01c6c825 */ or $t9,$t6,$a2 -/* f0d8d1c: 8fae0098 */ lw $t6,0x98($sp) -/* f0d8d20: 032fc025 */ or $t8,$t9,$t7 -/* f0d8d24: add80000 */ sw $t8,0x0($t6) -/* f0d8d28: 8c790000 */ lw $t9,0x0($v1) -/* f0d8d2c: 00b90019 */ multu $a1,$t9 -/* f0d8d30: 00007812 */ mflo $t7 -/* f0d8d34: 31f803ff */ andi $t8,$t7,0x3ff -/* f0d8d38: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8d3c: 03247825 */ or $t7,$t9,$a0 -/* f0d8d40: adcf0004 */ sw $t7,0x4($t6) -/* f0d8d44: 8c780000 */ lw $t8,0x0($v1) -/* f0d8d48: 01980019 */ multu $t4,$t8 -/* f0d8d4c: 0000c812 */ mflo $t9 -/* f0d8d50: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8d54: 000f7380 */ sll $t6,$t7,0xe -/* f0d8d58: 01c6c025 */ or $t8,$t6,$a2 -/* f0d8d5c: 0308c825 */ or $t9,$t8,$t0 -/* f0d8d60: ac590000 */ sw $t9,0x0($v0) -/* f0d8d64: 8fae00e0 */ lw $t6,0xe0($sp) -/* f0d8d68: 8faf00c8 */ lw $t7,0xc8($sp) -/* f0d8d6c: 01ee3821 */ addu $a3,$t7,$t6 -/* f0d8d70: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8d74: 30f803ff */ andi $t8,$a3,0x3ff -/* f0d8d78: 00183880 */ sll $a3,$t8,0x2 -/* f0d8d7c: 00af0019 */ multu $a1,$t7 -/* f0d8d80: 00007012 */ mflo $t6 -/* f0d8d84: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d8d88: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8d8c: 03277825 */ or $t7,$t9,$a3 -/* f0d8d90: ac4f0004 */ sw $t7,0x4($v0) -/* f0d8d94: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8d98: 02001025 */ or $v0,$s0,$zero -/* f0d8d9c: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8da0: 012e0019 */ multu $t1,$t6 -/* f0d8da4: 02006025 */ or $t4,$s0,$zero -/* f0d8da8: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8dac: 0000c012 */ mflo $t8 -/* f0d8db0: 331903ff */ andi $t9,$t8,0x3ff -/* f0d8db4: 8fb80050 */ lw $t8,0x50($sp) -/* f0d8db8: 00197b80 */ sll $t7,$t9,0xe -/* f0d8dbc: 01e67025 */ or $t6,$t7,$a2 -/* f0d8dc0: 01d8c825 */ or $t9,$t6,$t8 -/* f0d8dc4: ad790000 */ sw $t9,0x0($t3) -/* f0d8dc8: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8dcc: 014f0019 */ multu $t2,$t7 -/* f0d8dd0: 00007012 */ mflo $t6 -/* f0d8dd4: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d8dd8: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8ddc: 03247825 */ or $t7,$t9,$a0 -/* f0d8de0: ad6f0004 */ sw $t7,0x4($t3) -/* f0d8de4: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8de8: 012e0019 */ multu $t1,$t6 -/* f0d8dec: 0000c012 */ mflo $t8 -/* f0d8df0: 331903ff */ andi $t9,$t8,0x3ff -/* f0d8df4: 00197b80 */ sll $t7,$t9,0xe -/* f0d8df8: 01e67025 */ or $t6,$t7,$a2 -/* f0d8dfc: 01c8c025 */ or $t8,$t6,$t0 -/* f0d8e00: ac580000 */ sw $t8,0x0($v0) -/* f0d8e04: 8c790000 */ lw $t9,0x0($v1) -/* f0d8e08: 01590019 */ multu $t2,$t9 -/* f0d8e0c: 00007812 */ mflo $t7 -/* f0d8e10: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d8e14: 000ec380 */ sll $t8,$t6,0xe -/* f0d8e18: 0307c825 */ or $t9,$t8,$a3 -/* f0d8e1c: ac590004 */ sw $t9,0x4($v0) -/* f0d8e20: 8fae00e0 */ lw $t6,0xe0($sp) -/* f0d8e24: 8faf00cc */ lw $t7,0xcc($sp) -/* f0d8e28: 02001025 */ or $v0,$s0,$zero -/* f0d8e2c: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8e30: 01eec023 */ subu $t8,$t7,$t6 -/* f0d8e34: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8e38: 27190001 */ addiu $t9,$t8,0x1 -/* f0d8e3c: afb90070 */ sw $t9,0x70($sp) -/* f0d8e40: 032f0019 */ multu $t9,$t7 -/* f0d8e44: 02005025 */ or $t2,$s0,$zero -/* f0d8e48: 26100008 */ addiu $s0,$s0,0x8 -/* f0d8e4c: 00007012 */ mflo $t6 -/* f0d8e50: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d8e54: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8e58: 03267825 */ or $t7,$t9,$a2 -/* f0d8e5c: 01ed7025 */ or $t6,$t7,$t5 -/* f0d8e60: ad8e0000 */ sw $t6,0x0($t4) -/* f0d8e64: 8c780000 */ lw $t8,0x0($v1) -/* f0d8e68: 00b80019 */ multu $a1,$t8 -/* f0d8e6c: 0000c812 */ mflo $t9 -/* f0d8e70: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8e74: 000f7380 */ sll $t6,$t7,0xe -/* f0d8e78: 01c4c025 */ or $t8,$t6,$a0 -/* f0d8e7c: ad980004 */ sw $t8,0x4($t4) -/* f0d8e80: 8c790000 */ lw $t9,0x0($v1) -/* f0d8e84: 01390019 */ multu $t1,$t9 -/* f0d8e88: 00007812 */ mflo $t7 -/* f0d8e8c: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d8e90: 000ec380 */ sll $t8,$t6,0xe -/* f0d8e94: 0306c825 */ or $t9,$t8,$a2 -/* f0d8e98: 032d7825 */ or $t7,$t9,$t5 -/* f0d8e9c: ac4f0000 */ sw $t7,0x0($v0) -/* f0d8ea0: 8fb800e0 */ lw $t8,0xe0($sp) -/* f0d8ea4: 8fae00cc */ lw $t6,0xcc($sp) -/* f0d8ea8: 8c790000 */ lw $t9,0x0($v1) -/* f0d8eac: 01d83821 */ addu $a3,$t6,$t8 -/* f0d8eb0: 00f90019 */ multu $a3,$t9 -/* f0d8eb4: 00007812 */ mflo $t7 -/* f0d8eb8: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d8ebc: 000ec380 */ sll $t8,$t6,0xe -/* f0d8ec0: 0304c825 */ or $t9,$t8,$a0 -/* f0d8ec4: ac590004 */ sw $t9,0x4($v0) -/* f0d8ec8: 8c6e0000 */ lw $t6,0x0($v1) -/* f0d8ecc: 8faf0070 */ lw $t7,0x70($sp) -/* f0d8ed0: 01ee0019 */ multu $t7,$t6 -/* f0d8ed4: 0000c012 */ mflo $t8 -/* f0d8ed8: 331903ff */ andi $t9,$t8,0x3ff -/* f0d8edc: 00197b80 */ sll $t7,$t9,0xe -/* f0d8ee0: 01e67025 */ or $t6,$t7,$a2 -/* f0d8ee4: 01c8c025 */ or $t8,$t6,$t0 -/* f0d8ee8: ad580000 */ sw $t8,0x0($t2) -/* f0d8eec: 8c790000 */ lw $t9,0x0($v1) -/* f0d8ef0: 00b90019 */ multu $a1,$t9 -/* f0d8ef4: 00007812 */ mflo $t7 -/* f0d8ef8: 31ee03ff */ andi $t6,$t7,0x3ff -/* f0d8efc: 000ec380 */ sll $t8,$t6,0xe -/* f0d8f00: 031fc825 */ or $t9,$t8,$ra -/* f0d8f04: ad590004 */ sw $t9,0x4($t2) -/* f0d8f08: 8c6f0000 */ lw $t7,0x0($v1) -/* f0d8f0c: 02001025 */ or $v0,$s0,$zero -/* f0d8f10: 26040008 */ addiu $a0,$s0,0x8 -/* f0d8f14: 012f0019 */ multu $t1,$t7 -/* f0d8f18: 00007012 */ mflo $t6 -/* f0d8f1c: 31d803ff */ andi $t8,$t6,0x3ff -/* f0d8f20: 0018cb80 */ sll $t9,$t8,0xe -/* f0d8f24: 03267825 */ or $t7,$t9,$a2 -/* f0d8f28: 01e87025 */ or $t6,$t7,$t0 -/* f0d8f2c: ac4e0000 */ sw $t6,0x0($v0) -/* f0d8f30: 8c780000 */ lw $t8,0x0($v1) -/* f0d8f34: 00f80019 */ multu $a3,$t8 -/* f0d8f38: 0000c812 */ mflo $t9 -/* f0d8f3c: 332f03ff */ andi $t7,$t9,0x3ff -/* f0d8f40: 000f7380 */ sll $t6,$t7,0xe -/* f0d8f44: 01dfc025 */ or $t8,$t6,$ra -/* f0d8f48: 0fc54e0e */ jal func0f153838 -/* f0d8f4c: ac580004 */ sw $t8,0x4($v0) -/* f0d8f50: 8fbf004c */ lw $ra,0x4c($sp) -/* f0d8f54: d7b40018 */ ldc1 $f20,0x18($sp) -/* f0d8f58: d7b60020 */ ldc1 $f22,0x20($sp) -/* f0d8f5c: d7b80028 */ ldc1 $f24,0x28($sp) -/* f0d8f60: d7ba0030 */ ldc1 $f26,0x30($sp) -/* f0d8f64: d7bc0038 */ ldc1 $f28,0x38($sp) -/* f0d8f68: d7be0040 */ ldc1 $f30,0x40($sp) -/* f0d8f6c: 8fb00048 */ lw $s0,0x48($sp) -/* f0d8f70: 03e00008 */ jr $ra -/* f0d8f74: 27bd00d0 */ addiu $sp,$sp,0xd0 -); -#endif +/** + * The delayed aimer is an unused aimer box. It's twice as big as the normal one + * and follows the gun's cursor with a very noticeable delay. The lines that + * span the viewport are not used here, and a 3x3 box is filled in with green + * at the live crosshair position. + * + * Because its position and speed properties are static variables, they only get + * updated when the aimer is held. This means releasing and pressing R again + * causes the box to appear where it was last. + * + * The default Y position is not quite centered, is not updated for PAL, + * and is not reset for split screen play. There's also no viewport boundary + * checks. It's likely that this feature was just a concept and was dropped + * pretty early. + */ +Gfx *sightDrawDelayedAimer(Gfx *gdl, s32 x, s32 y, s32 radius, s32 cornergap, u32 colour) +{ + s32 boxx; + s32 boxy; + s32 i; + f32 dist; + f32 accel; + u32 stack; + + static f32 xpos = 160; + static f32 ypos = 120; + static f32 xspeed = 0; + static f32 yspeed = 0; + + for (i = 0; i < g_Vars.lvupdate240_60; i++) { + dist = x - xpos; + + if (dist > 0.5f || dist < -0.5f) { + accel = dist * 0.05f; + + if (accel > PALUPF(2.0f)) { + accel = PALUPF(2.0f); + } + + if (accel < -PALUPF(2.0f)) { + accel = -PALUPF(2.0f); + } + + if (accel > xspeed) { + accel = PALUPF(0.05f); + } else if (accel < xspeed) { + accel = -PALUPF(0.05f); + } else { + accel = 0.0f; + } + + xspeed += accel; + + if (xspeed > PALUPF(2.0f)) { + xspeed = PALUPF(2.0f); + } + + if (xspeed < -PALUPF(2.0f)) { + xspeed = -PALUPF(2.0f); + } + + xpos += xspeed; + } else { + xpos = x; + xspeed = 0.0f; + } + + dist = y - ypos; + + if (dist > 0.5f || dist < -0.5f) { + accel = dist * 0.05f; + + if (accel > PALUPF(2.0f)) { + accel = PALUPF(2.0f); + } + if (accel < -PALUPF(2.0f)) { + accel = -PALUPF(2.0f); + } + + if (yspeed < accel) { + accel = PALUPF(0.05f); + } else if (accel < yspeed) { + accel = -PALUPF(0.05f); + } else { + accel = 0.0f; + } + + yspeed += accel; + + if (yspeed > PALUPF(2.0f)) { + yspeed = PALUPF(2.0f); + } + + if (yspeed < -PALUPF(2.0f)) { + yspeed = -PALUPF(2.0f); + } + + ypos += yspeed; + } else { + ypos = y; + yspeed = 0.0f; + } + } + + boxx = xpos; + boxy = ypos; + + gdl = gfxSetPrimColour(gdl, 0x00ff0028); + + // Fill a 3x3 box at the live crosshair + gDPFillRectangleScaled(gdl++, x - 1, y - 1, x + 2, y); + gDPFillRectangleScaled(gdl++, x - 1, y, x + 2, y + 1); + gDPFillRectangleScaled(gdl++, x - 1, y + 1, x + 2, y + 2); + + gdl = func0f153838(gdl); + + gdl = gfxSetPrimColour(gdl, colour); + + // Draw the box + gDPFillRectangleScaled(gdl++, boxx - radius, boxy - radius, boxx - radius + 1, boxy + radius + 1); + gDPFillRectangleScaled(gdl++, boxx + radius, boxy - radius, boxx + radius + 1, boxy + radius + 1); + gDPFillRectangleScaled(gdl++, boxx - radius, boxy - radius, boxx + radius + 1, boxy - radius + 1); + gDPFillRectangleScaled(gdl++, boxx - radius, boxy + radius, boxx + radius + 1, boxy + radius + 1); + + // Go over the corners a second time + gDPFillRectangleScaled(gdl++, boxx - radius, boxy - radius, boxx - radius + 1, boxy - cornergap + 1); + gDPFillRectangleScaled(gdl++, boxx - radius, boxy + cornergap, boxx - radius + 1, boxy + radius + 1); + gDPFillRectangleScaled(gdl++, boxx + radius, boxy - radius, boxx + radius + 1, boxy - cornergap + 1); + gDPFillRectangleScaled(gdl++, boxx + radius, boxy + cornergap, boxx + radius + 1, boxy + radius + 1); + gDPFillRectangleScaled(gdl++, boxx - radius, boxy - radius, boxx - cornergap + 1, boxy - radius + 1); + gDPFillRectangleScaled(gdl++, boxx + cornergap, boxy - radius, boxx + radius + 1, boxy - radius + 1); + gDPFillRectangleScaled(gdl++, boxx - radius, boxy + radius, boxx - cornergap + 1, boxy + radius + 1); + gDPFillRectangleScaled(gdl++, boxx + cornergap, boxy + radius, boxx + radius + 1, boxy + radius + 1); + + gdl = func0f153838(gdl); + + return gdl; +} #if VERSION >= VERSION_JPN_FINAL GLOBAL_ASM(