2020-09-24 05:16:13 +02:00
|
|
|
.set noat # allow manual use of $at
|
2020-08-04 08:49:11 +02:00
|
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
|
|
glabel test_ray_zones
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38524 8005D124 27BDFFC8 */ addiu $sp, $sp, -0x38
|
|
|
|
/* 38528 8005D128 C7A00048 */ lwc1 $f0, 0x48($sp)
|
|
|
|
/* 3852C 8005D12C C7A2004C */ lwc1 $f2, 0x4c($sp)
|
|
|
|
/* 38530 8005D130 AFBE0030 */ sw $fp, 0x30($sp)
|
|
|
|
/* 38534 8005D134 8FBE005C */ lw $fp, 0x5c($sp)
|
|
|
|
/* 38538 8005D138 AFB50024 */ sw $s5, 0x24($sp)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3853C 8005D13C 3C15800E */ lui $s5, %hi(D_800D91D0)
|
|
|
|
/* 38540 8005D140 26B591D0 */ addiu $s5, $s5, %lo(D_800D91D0)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38544 8005D144 AFBF0034 */ sw $ra, 0x34($sp)
|
|
|
|
/* 38548 8005D148 AFB7002C */ sw $s7, 0x2c($sp)
|
|
|
|
/* 3854C 8005D14C AFB60028 */ sw $s6, 0x28($sp)
|
|
|
|
/* 38550 8005D150 AFB40020 */ sw $s4, 0x20($sp)
|
|
|
|
/* 38554 8005D154 AFB3001C */ sw $s3, 0x1c($sp)
|
|
|
|
/* 38558 8005D158 AFB20018 */ sw $s2, 0x18($sp)
|
|
|
|
/* 3855C 8005D15C AFB10014 */ sw $s1, 0x14($sp)
|
|
|
|
/* 38560 8005D160 AFB00010 */ sw $s0, 0x10($sp)
|
|
|
|
/* 38564 8005D164 86A2000C */ lh $v0, 0xc($s5)
|
|
|
|
/* 38568 8005D168 2416FFFF */ addiu $s6, $zero, -1
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3856C 8005D16C 3C01800A */ lui $at, %hi(D_800A423C)
|
|
|
|
/* 38570 8005D170 AC27423C */ sw $a3, %lo(D_800A423C)($at)
|
|
|
|
/* 38574 8005D174 3C01800A */ lui $at, %hi(D_800A4230)
|
|
|
|
/* 38578 8005D178 E42C4230 */ swc1 $f12, %lo(D_800A4230)($at)
|
|
|
|
/* 3857C 8005D17C 3C01800A */ lui $at, %hi(D_800A4234)
|
|
|
|
/* 38580 8005D180 E42E4234 */ swc1 $f14, %lo(D_800A4234)($at)
|
|
|
|
/* 38584 8005D184 3C01800A */ lui $at, %hi(D_800A4238)
|
|
|
|
/* 38588 8005D188 AC264238 */ sw $a2, %lo(D_800A4238)($at)
|
|
|
|
/* 3858C 8005D18C 3C01800A */ lui $at, %hi(D_800A4240)
|
|
|
|
/* 38590 8005D190 E4204240 */ swc1 $f0, %lo(D_800A4240)($at)
|
|
|
|
/* 38594 8005D194 3C01800A */ lui $at, %hi(D_800A4244)
|
|
|
|
/* 38598 8005D198 E4224244 */ swc1 $f2, %lo(D_800A4244)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3859C 8005D19C C7C00000 */ lwc1 $f0, ($fp)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 385A0 8005D1A0 3C01800A */ lui $at, %hi(D_800A4254)
|
|
|
|
/* 385A4 8005D1A4 E4204254 */ swc1 $f0, %lo(D_800A4254)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 385A8 8005D1A8 18400022 */ blez $v0, .L8005D234
|
|
|
|
/* 385AC 8005D1AC 0000982D */ daddu $s3, $zero, $zero
|
|
|
|
/* 385B0 8005D1B0 3C170001 */ lui $s7, 1
|
|
|
|
/* 385B4 8005D1B4 0260A02D */ daddu $s4, $s3, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L8005D1B8:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 385B8 8005D1B8 8EA20004 */ lw $v0, 4($s5)
|
|
|
|
/* 385BC 8005D1BC 00549021 */ addu $s2, $v0, $s4
|
|
|
|
/* 385C0 8005D1C0 8E420000 */ lw $v0, ($s2)
|
|
|
|
/* 385C4 8005D1C4 00571024 */ and $v0, $v0, $s7
|
|
|
|
/* 385C8 8005D1C8 14400015 */ bnez $v0, .L8005D220
|
|
|
|
/* 385CC 8005D1CC 00000000 */ nop
|
|
|
|
/* 385D0 8005D1D0 8643000A */ lh $v1, 0xa($s2)
|
|
|
|
/* 385D4 8005D1D4 10600012 */ beqz $v1, .L8005D220
|
|
|
|
/* 385D8 8005D1D8 00000000 */ nop
|
|
|
|
/* 385DC 8005D1DC 8E420010 */ lw $v0, 0x10($s2)
|
|
|
|
/* 385E0 8005D1E0 1040000F */ beqz $v0, .L8005D220
|
|
|
|
/* 385E4 8005D1E4 00000000 */ nop
|
|
|
|
/* 385E8 8005D1E8 8E51000C */ lw $s1, 0xc($s2)
|
|
|
|
/* 385EC 8005D1EC 1860000C */ blez $v1, .L8005D220
|
|
|
|
/* 385F0 8005D1F0 0000802D */ daddu $s0, $zero, $zero
|
|
|
|
/* 385F4 8005D1F4 0220202D */ daddu $a0, $s1, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L8005D1F8:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 385F8 8005D1F8 8EA50000 */ lw $a1, ($s5)
|
|
|
|
/* 385FC 8005D1FC 0C017127 */ jal test_down_ray_triangle
|
|
|
|
/* 38600 8005D200 26310040 */ addiu $s1, $s1, 0x40
|
|
|
|
/* 38604 8005D204 54400001 */ bnel $v0, $zero, .L8005D20C
|
|
|
|
/* 38608 8005D208 0260B02D */ daddu $s6, $s3, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L8005D20C:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 3860C 8005D20C 8642000A */ lh $v0, 0xa($s2)
|
|
|
|
/* 38610 8005D210 26100001 */ addiu $s0, $s0, 1
|
|
|
|
/* 38614 8005D214 0202102A */ slt $v0, $s0, $v0
|
|
|
|
/* 38618 8005D218 1440FFF7 */ bnez $v0, .L8005D1F8
|
|
|
|
/* 3861C 8005D21C 0220202D */ daddu $a0, $s1, $zero
|
2020-08-04 08:49:11 +02:00
|
|
|
.L8005D220:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38620 8005D220 86A2000C */ lh $v0, 0xc($s5)
|
|
|
|
/* 38624 8005D224 26730001 */ addiu $s3, $s3, 1
|
|
|
|
/* 38628 8005D228 0262102A */ slt $v0, $s3, $v0
|
|
|
|
/* 3862C 8005D22C 1440FFE2 */ bnez $v0, .L8005D1B8
|
|
|
|
/* 38630 8005D230 2694001C */ addiu $s4, $s4, 0x1c
|
2020-08-04 08:49:11 +02:00
|
|
|
.L8005D234:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38634 8005D234 06C0001D */ bltz $s6, .L8005D2AC
|
|
|
|
/* 38638 8005D238 02C0102D */ daddu $v0, $s6, $zero
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3863C 8005D23C 3C01800A */ lui $at, %hi(D_800A4248)
|
|
|
|
/* 38640 8005D240 C4204248 */ lwc1 $f0, %lo(D_800A4248)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38644 8005D244 8FA20050 */ lw $v0, 0x50($sp)
|
|
|
|
/* 38648 8005D248 E4400000 */ swc1 $f0, ($v0)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3864C 8005D24C 3C01800A */ lui $at, %hi(D_800A424C)
|
|
|
|
/* 38650 8005D250 C420424C */ lwc1 $f0, %lo(D_800A424C)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38654 8005D254 8FA20054 */ lw $v0, 0x54($sp)
|
|
|
|
/* 38658 8005D258 E4400000 */ swc1 $f0, ($v0)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3865C 8005D25C 3C01800A */ lui $at, %hi(D_800A4250)
|
|
|
|
/* 38660 8005D260 C4204250 */ lwc1 $f0, %lo(D_800A4250)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38664 8005D264 8FA20058 */ lw $v0, 0x58($sp)
|
|
|
|
/* 38668 8005D268 E4400000 */ swc1 $f0, ($v0)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 3866C 8005D26C 3C01800A */ lui $at, %hi(D_800A4254)
|
|
|
|
/* 38670 8005D270 C4204254 */ lwc1 $f0, %lo(D_800A4254)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38674 8005D274 E7C00000 */ swc1 $f0, ($fp)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 38678 8005D278 3C01800A */ lui $at, %hi(D_800A4258)
|
|
|
|
/* 3867C 8005D27C C4204258 */ lwc1 $f0, %lo(D_800A4258)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38680 8005D280 8FA20060 */ lw $v0, 0x60($sp)
|
|
|
|
/* 38684 8005D284 E4400000 */ swc1 $f0, ($v0)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 38688 8005D288 3C01800A */ lui $at, %hi(D_800A425C)
|
|
|
|
/* 3868C 8005D28C C420425C */ lwc1 $f0, %lo(D_800A425C)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 38690 8005D290 8FA20064 */ lw $v0, 0x64($sp)
|
|
|
|
/* 38694 8005D294 E4400000 */ swc1 $f0, ($v0)
|
2020-11-29 08:13:07 +01:00
|
|
|
/* 38698 8005D298 3C01800A */ lui $at, %hi(D_800A4260)
|
|
|
|
/* 3869C 8005D29C C4204260 */ lwc1 $f0, %lo(D_800A4260)($at)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 386A0 8005D2A0 8FA30068 */ lw $v1, 0x68($sp)
|
|
|
|
/* 386A4 8005D2A4 02C0102D */ daddu $v0, $s6, $zero
|
|
|
|
/* 386A8 8005D2A8 E4600000 */ swc1 $f0, ($v1)
|
2020-08-04 08:49:11 +02:00
|
|
|
.L8005D2AC:
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 386AC 8005D2AC 8FBF0034 */ lw $ra, 0x34($sp)
|
|
|
|
/* 386B0 8005D2B0 8FBE0030 */ lw $fp, 0x30($sp)
|
|
|
|
/* 386B4 8005D2B4 8FB7002C */ lw $s7, 0x2c($sp)
|
|
|
|
/* 386B8 8005D2B8 8FB60028 */ lw $s6, 0x28($sp)
|
|
|
|
/* 386BC 8005D2BC 8FB50024 */ lw $s5, 0x24($sp)
|
|
|
|
/* 386C0 8005D2C0 8FB40020 */ lw $s4, 0x20($sp)
|
|
|
|
/* 386C4 8005D2C4 8FB3001C */ lw $s3, 0x1c($sp)
|
|
|
|
/* 386C8 8005D2C8 8FB20018 */ lw $s2, 0x18($sp)
|
|
|
|
/* 386CC 8005D2CC 8FB10014 */ lw $s1, 0x14($sp)
|
|
|
|
/* 386D0 8005D2D0 8FB00010 */ lw $s0, 0x10($sp)
|
|
|
|
/* 386D4 8005D2D4 03E00008 */ jr $ra
|
|
|
|
/* 386D8 8005D2D8 27BD0038 */ addiu $sp, $sp, 0x38
|