2020-09-24 05:16:13 +02:00
|
|
|
.set noat # allow manual use of $at
|
|
|
|
.set noreorder # don't insert nops after branches
|
|
|
|
|
|
|
|
glabel func_8003D0C4
|
|
|
|
/* 184C4 8003D0C4 27BDFFB8 */ addiu $sp, $sp, -0x48
|
|
|
|
/* 184C8 8003D0C8 F7BA0040 */ sdc1 $f26, 0x40($sp)
|
|
|
|
/* 184CC 8003D0CC 4486D000 */ mtc1 $a2, $f26
|
|
|
|
/* 184D0 8003D0D0 F7B80038 */ sdc1 $f24, 0x38($sp)
|
|
|
|
/* 184D4 8003D0D4 46006606 */ mov.s $f24, $f12
|
|
|
|
/* 184D8 8003D0D8 AFB20018 */ sw $s2, 0x18($sp)
|
|
|
|
/* 184DC 8003D0DC 0000902D */ daddu $s2, $zero, $zero
|
|
|
|
/* 184E0 8003D0E0 AFB10014 */ sw $s1, 0x14($sp)
|
|
|
|
/* 184E4 8003D0E4 0240882D */ daddu $s1, $s2, $zero
|
|
|
|
/* 184E8 8003D0E8 AFB40020 */ sw $s4, 0x20($sp)
|
|
|
|
/* 184EC 8003D0EC 3C140400 */ lui $s4, 0x400
|
|
|
|
/* 184F0 8003D0F0 AFB3001C */ sw $s3, 0x1c($sp)
|
|
|
|
/* 184F4 8003D0F4 3C138000 */ lui $s3, 0x8000
|
|
|
|
/* 184F8 8003D0F8 F7B40028 */ sdc1 $f20, 0x28($sp)
|
|
|
|
/* 184FC 8003D0FC 4487A000 */ mtc1 $a3, $f20
|
|
|
|
/* 18500 8003D100 36730004 */ ori $s3, $s3, 4
|
|
|
|
/* 18504 8003D104 AFBF0024 */ sw $ra, 0x24($sp)
|
|
|
|
/* 18508 8003D108 AFB00010 */ sw $s0, 0x10($sp)
|
|
|
|
/* 1850C 8003D10C F7B60030 */ sdc1 $f22, 0x30($sp)
|
|
|
|
/* 18510 8003D110 4600A586 */ mov.s $f22, $f20
|
|
|
|
.L8003D114:
|
2020-09-28 03:13:56 +02:00
|
|
|
/* 18514 8003D114 3C03800A */ lui $v1, %hi(gCurrentNpcListPtr)
|
|
|
|
/* 18518 8003D118 8C630B90 */ lw $v1, %lo(gCurrentNpcListPtr)($v1)
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 1851C 8003D11C 00111080 */ sll $v0, $s1, 2
|
|
|
|
/* 18520 8003D120 00431021 */ addu $v0, $v0, $v1
|
|
|
|
/* 18524 8003D124 8C500000 */ lw $s0, ($v0)
|
|
|
|
/* 18528 8003D128 5200001B */ beql $s0, $zero, .L8003D198
|
|
|
|
/* 1852C 8003D12C 26310001 */ addiu $s1, $s1, 1
|
|
|
|
/* 18530 8003D130 8E030000 */ lw $v1, ($s0)
|
|
|
|
/* 18534 8003D134 50600018 */ beql $v1, $zero, .L8003D198
|
|
|
|
/* 18538 8003D138 26310001 */ addiu $s1, $s1, 1
|
|
|
|
/* 1853C 8003D13C 00741024 */ and $v0, $v1, $s4
|
|
|
|
/* 18540 8003D140 50400015 */ beql $v0, $zero, .L8003D198
|
|
|
|
/* 18544 8003D144 26310001 */ addiu $s1, $s1, 1
|
|
|
|
/* 18548 8003D148 00731024 */ and $v0, $v1, $s3
|
|
|
|
/* 1854C 8003D14C 54400012 */ bnel $v0, $zero, .L8003D198
|
|
|
|
/* 18550 8003D150 26310001 */ addiu $s1, $s1, 1
|
|
|
|
/* 18554 8003D154 C60C0038 */ lwc1 $f12, 0x38($s0)
|
|
|
|
/* 18558 8003D158 C60E0040 */ lwc1 $f14, 0x40($s0)
|
|
|
|
/* 1855C 8003D15C 4406C000 */ mfc1 $a2, $f24
|
|
|
|
/* 18560 8003D160 4407D000 */ mfc1 $a3, $f26
|
|
|
|
/* 18564 8003D164 0C00A7B5 */ jal dist2D
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 18568 8003D168 00000000 */ nop
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 1856C 8003D16C 46000005 */ abs.s $f0, $f0
|
|
|
|
/* 18570 8003D170 4616003E */ c.le.s $f0, $f22
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 18574 8003D174 00000000 */ nop
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 18578 8003D178 45000007 */ bc1f .L8003D198
|
|
|
|
/* 1857C 8003D17C 26310001 */ addiu $s1, $s1, 1
|
|
|
|
/* 18580 8003D180 4614003C */ c.lt.s $f0, $f20
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 18584 8003D184 00000000 */ nop
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 18588 8003D188 45000003 */ bc1f .L8003D198
|
2021-01-11 13:40:52 +01:00
|
|
|
/* 1858C 8003D18C 00000000 */ nop
|
2020-09-24 05:16:13 +02:00
|
|
|
/* 18590 8003D190 46000506 */ mov.s $f20, $f0
|
|
|
|
/* 18594 8003D194 0200902D */ daddu $s2, $s0, $zero
|
|
|
|
.L8003D198:
|
|
|
|
/* 18598 8003D198 2A220040 */ slti $v0, $s1, 0x40
|
|
|
|
/* 1859C 8003D19C 1440FFDD */ bnez $v0, .L8003D114
|
|
|
|
/* 185A0 8003D1A0 0240102D */ daddu $v0, $s2, $zero
|
|
|
|
/* 185A4 8003D1A4 8FBF0024 */ lw $ra, 0x24($sp)
|
|
|
|
/* 185A8 8003D1A8 8FB40020 */ lw $s4, 0x20($sp)
|
|
|
|
/* 185AC 8003D1AC 8FB3001C */ lw $s3, 0x1c($sp)
|
|
|
|
/* 185B0 8003D1B0 8FB20018 */ lw $s2, 0x18($sp)
|
|
|
|
/* 185B4 8003D1B4 8FB10014 */ lw $s1, 0x14($sp)
|
|
|
|
/* 185B8 8003D1B8 8FB00010 */ lw $s0, 0x10($sp)
|
|
|
|
/* 185BC 8003D1BC D7BA0040 */ ldc1 $f26, 0x40($sp)
|
|
|
|
/* 185C0 8003D1C0 D7B80038 */ ldc1 $f24, 0x38($sp)
|
|
|
|
/* 185C4 8003D1C4 D7B60030 */ ldc1 $f22, 0x30($sp)
|
|
|
|
/* 185C8 8003D1C8 D7B40028 */ ldc1 $f20, 0x28($sp)
|
|
|
|
/* 185CC 8003D1CC 03E00008 */ jr $ra
|
|
|
|
/* 185D0 8003D1D0 27BD0048 */ addiu $sp, $sp, 0x48
|