; ; sub_18006A3C0 from 0x18006a3c0 to 0x18006a558 (408 bytes) ; ; 2 xrefs: ; > sub_18006A810 @ 0x18006a93b ; > @ 0x1801acc48 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; movaps xmm0, xmm1 ; +0x0, 0x18006a3c0 movaps xmm4, xmm1 ; +0x3, 0x18006a3c3 mulss xmm0, cs:dword_180166F10 ; +0x6, 0x18006a3c6 mov r8, rcx ; +0xe, 0x18006a3ce cvttss2si edx, xmm0 ; +0x11, 0x18006a3d1 test edx, edx ; +0x15, 0x18006a3d5 jns short loc_18006A3DB ; +0x17, 0x18006a3d7 neg edx ; +0x19, 0x18006a3d9 movss xmm5, dword ptr cs:xmmword_180144610 ; +0x1b, 0x18006a3db and edx, 7FFFh ; +0x23, 0x18006a3e3 mov ecx, edx ; +0x29, 0x18006a3e9 mov r9d, 8134h ; +0x2b, 0x18006a3eb shr ecx, 0Dh ; +0x31, 0x18006a3f1 xorps xmm1, xmm1 ; +0x34, 0x18006a3f4 mov r10d, 4134h ; +0x37, 0x18006a3f7 test ecx, ecx ; +0x3d, 0x18006a3fd jz short loc_18006A447 ; +0x3f, 0x18006a3ff sub ecx, 1 ; +0x41, 0x18006a401 jz short loc_18006A434 ; +0x44, 0x18006a404 sub ecx, 1 ; +0x46, 0x18006a406 jz short loc_18006A425 ; +0x49, 0x18006a409 cmp ecx, 1 ; +0x4b, 0x18006a40b jz short loc_18006A415 ; +0x4e, 0x18006a40e xorps xmm3, xmm3 ; +0x50, 0x18006a410 jmp short loc_18006A451 ; +0x53, 0x18006a413 mov eax, edx ; +0x55, 0x18006a415 mov rcx, r9 ; +0x57, 0x18006a417 sub rcx, rax ; +0x5a, 0x18006a41a movss xmm3, dword ptr [r8+rcx*4] ; +0x5d, 0x18006a41d jmp short loc_18006A451 ; +0x63, 0x18006a423 movss xmm3, dword ptr [r8+rdx*4-0FB2Ch] ; +0x65, 0x18006a425 xorps xmm3, xmm5 ; +0x6f, 0x18006a42f jmp short loc_18006A451 ; +0x72, 0x18006a432 mov eax, edx ; +0x74, 0x18006a434 mov rcx, r10 ; +0x76, 0x18006a436 sub rcx, rax ; +0x79, 0x18006a439 movss xmm3, dword ptr [r8+rcx*4] ; +0x7c, 0x18006a43c xorps xmm3, xmm5 ; +0x82, 0x18006a442 jmp short loc_18006A451 ; +0x85, 0x18006a445 movss xmm3, dword ptr [r8+rdx*4+4D4h] ; +0x87, 0x18006a447 movaps xmm0, xmm4 ; +0x91, 0x18006a451 mulss xmm0, cs:dword_180167F58 ; +0x94, 0x18006a454 cvttss2si ecx, xmm0 ; +0x9c, 0x18006a45c test ecx, ecx ; +0xa0, 0x18006a460 jns short loc_18006A466 ; +0xa2, 0x18006a462 neg ecx ; +0xa4, 0x18006a464 and ecx, 7FFFh ; +0xa6, 0x18006a466 mov edx, ecx ; +0xac, 0x18006a46c shr edx, 0Dh ; +0xae, 0x18006a46e test edx, edx ; +0xb1, 0x18006a471 jz short loc_18006A4BB ; +0xb3, 0x18006a473 sub edx, 1 ; +0xb5, 0x18006a475 jz short loc_18006A4A8 ; +0xb8, 0x18006a478 sub edx, 1 ; +0xba, 0x18006a47a jz short loc_18006A499 ; +0xbd, 0x18006a47d cmp edx, 1 ; +0xbf, 0x18006a47f jz short loc_18006A489 ; +0xc2, 0x18006a482 xorps xmm2, xmm2 ; +0xc4, 0x18006a484 jmp short loc_18006A4C5 ; +0xc7, 0x18006a487 mov eax, ecx ; +0xc9, 0x18006a489 mov rcx, r9 ; +0xcb, 0x18006a48b sub rcx, rax ; +0xce, 0x18006a48e movss xmm2, dword ptr [r8+rcx*4] ; +0xd1, 0x18006a491 jmp short loc_18006A4C5 ; +0xd7, 0x18006a497 movss xmm2, dword ptr [r8+rcx*4-0FB2Ch] ; +0xd9, 0x18006a499 xorps xmm2, xmm5 ; +0xe3, 0x18006a4a3 jmp short loc_18006A4C5 ; +0xe6, 0x18006a4a6 mov eax, ecx ; +0xe8, 0x18006a4a8 mov rcx, r10 ; +0xea, 0x18006a4aa sub rcx, rax ; +0xed, 0x18006a4ad movss xmm2, dword ptr [r8+rcx*4] ; +0xf0, 0x18006a4b0 xorps xmm2, xmm5 ; +0xf6, 0x18006a4b6 jmp short loc_18006A4C5 ; +0xf9, 0x18006a4b9 movss xmm2, dword ptr [r8+rcx*4+4D4h] ; +0xfb, 0x18006a4bb mulss xmm4, cs:dword_180167F5C ; +0x105, 0x18006a4c5 cvttss2si ecx, xmm4 ; +0x10d, 0x18006a4cd test ecx, ecx ; +0x111, 0x18006a4d1 jns short loc_18006A4D7 ; +0x113, 0x18006a4d3 neg ecx ; +0x115, 0x18006a4d5 and ecx, 7FFFh ; +0x117, 0x18006a4d7 mov edx, ecx ; +0x11d, 0x18006a4dd shr edx, 0Dh ; +0x11f, 0x18006a4df test edx, edx ; +0x122, 0x18006a4e2 jz short loc_18006A521 ; +0x124, 0x18006a4e4 sub edx, 1 ; +0x126, 0x18006a4e6 jz short loc_18006A511 ; +0x129, 0x18006a4e9 sub edx, 1 ; +0x12b, 0x18006a4eb jz short loc_18006A502 ; +0x12e, 0x18006a4ee cmp edx, 1 ; +0x130, 0x18006a4f0 jnz short loc_18006A52B ; +0x133, 0x18006a4f3 mov eax, ecx ; +0x135, 0x18006a4f5 sub r9, rax ; +0x137, 0x18006a4f7 movss xmm1, dword ptr [r8+r9*4] ; +0x13a, 0x18006a4fa jmp short loc_18006A52B ; +0x140, 0x18006a500 movss xmm1, dword ptr [r8+rcx*4-0FB2Ch] ; +0x142, 0x18006a502 xorps xmm1, xmm5 ; +0x14c, 0x18006a50c jmp short loc_18006A52B ; +0x14f, 0x18006a50f mov eax, ecx ; +0x151, 0x18006a511 sub r10, rax ; +0x153, 0x18006a513 movss xmm1, dword ptr [r8+r10*4] ; +0x156, 0x18006a516 xorps xmm1, xmm5 ; +0x15c, 0x18006a51c jmp short loc_18006A52B ; +0x15f, 0x18006a51f movss xmm1, dword ptr [r8+rcx*4+4D4h] ; +0x161, 0x18006a521 mulss xmm3, cs:dword_180167F50 ; +0x16b, 0x18006a52b movss xmm0, cs:dword_180167F44 ; +0x173, 0x18006a533 mulss xmm2, cs:dword_180167F40 ; +0x17b, 0x18006a53b mulss xmm1, cs:dword_180167F38 ; +0x183, 0x18006a543 subss xmm0, xmm3 ; +0x18b, 0x18006a54b addss xmm0, xmm2 ; +0x18f, 0x18006a54f subss xmm0, xmm1 ; +0x193, 0x18006a553 retn ; +0x197, 0x18006a557