; ; sub_18006A2A0 from 0x18006a2a0 to 0x18006a3b8 (280 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, 0x18006a2a0 movaps xmm3, xmm1 ; +0x3, 0x18006a2a3 mulss xmm0, cs:dword_180166F10 ; +0x6, 0x18006a2a6 mov r8, rcx ; +0xe, 0x18006a2ae cvttss2si edx, xmm0 ; +0x11, 0x18006a2b1 test edx, edx ; +0x15, 0x18006a2b5 jns short loc_18006A2BB ; +0x17, 0x18006a2b7 neg edx ; +0x19, 0x18006a2b9 movss xmm0, dword ptr cs:xmmword_180144610 ; +0x1b, 0x18006a2bb and edx, 7FFFh ; +0x23, 0x18006a2c3 mov ecx, edx ; +0x29, 0x18006a2c9 mov r9d, 8134h ; +0x2b, 0x18006a2cb shr ecx, 0Dh ; +0x31, 0x18006a2d1 xorps xmm1, xmm1 ; +0x34, 0x18006a2d4 mov r10d, 4134h ; +0x37, 0x18006a2d7 test ecx, ecx ; +0x3d, 0x18006a2dd jz short loc_18006A327 ; +0x3f, 0x18006a2df sub ecx, 1 ; +0x41, 0x18006a2e1 jz short loc_18006A314 ; +0x44, 0x18006a2e4 sub ecx, 1 ; +0x46, 0x18006a2e6 jz short loc_18006A305 ; +0x49, 0x18006a2e9 cmp ecx, 1 ; +0x4b, 0x18006a2eb jz short loc_18006A2F5 ; +0x4e, 0x18006a2ee xorps xmm2, xmm2 ; +0x50, 0x18006a2f0 jmp short loc_18006A331 ; +0x53, 0x18006a2f3 mov eax, edx ; +0x55, 0x18006a2f5 mov rcx, r9 ; +0x57, 0x18006a2f7 sub rcx, rax ; +0x5a, 0x18006a2fa movss xmm2, dword ptr [r8+rcx*4] ; +0x5d, 0x18006a2fd jmp short loc_18006A331 ; +0x63, 0x18006a303 movss xmm2, dword ptr [r8+rdx*4-0FB2Ch] ; +0x65, 0x18006a305 xorps xmm2, xmm0 ; +0x6f, 0x18006a30f jmp short loc_18006A331 ; +0x72, 0x18006a312 mov eax, edx ; +0x74, 0x18006a314 mov rcx, r10 ; +0x76, 0x18006a316 sub rcx, rax ; +0x79, 0x18006a319 movss xmm2, dword ptr [r8+rcx*4] ; +0x7c, 0x18006a31c xorps xmm2, xmm0 ; +0x82, 0x18006a322 jmp short loc_18006A331 ; +0x85, 0x18006a325 movss xmm2, dword ptr [r8+rdx*4+4D4h] ; +0x87, 0x18006a327 mulss xmm3, cs:dword_180167F58 ; +0x91, 0x18006a331 cvttss2si ecx, xmm3 ; +0x99, 0x18006a339 test ecx, ecx ; +0x9d, 0x18006a33d jns short loc_18006A343 ; +0x9f, 0x18006a33f neg ecx ; +0xa1, 0x18006a341 and ecx, 7FFFh ; +0xa3, 0x18006a343 mov edx, ecx ; +0xa9, 0x18006a349 shr edx, 0Dh ; +0xab, 0x18006a34b test edx, edx ; +0xae, 0x18006a34e jz short loc_18006A38D ; +0xb0, 0x18006a350 sub edx, 1 ; +0xb2, 0x18006a352 jz short loc_18006A37D ; +0xb5, 0x18006a355 sub edx, 1 ; +0xb7, 0x18006a357 jz short loc_18006A36E ; +0xba, 0x18006a35a cmp edx, 1 ; +0xbc, 0x18006a35c jnz short loc_18006A397 ; +0xbf, 0x18006a35f mov eax, ecx ; +0xc1, 0x18006a361 sub r9, rax ; +0xc3, 0x18006a363 movss xmm1, dword ptr [r8+r9*4] ; +0xc6, 0x18006a366 jmp short loc_18006A397 ; +0xcc, 0x18006a36c movss xmm1, dword ptr [r8+rcx*4-0FB2Ch] ; +0xce, 0x18006a36e xorps xmm1, xmm0 ; +0xd8, 0x18006a378 jmp short loc_18006A397 ; +0xdb, 0x18006a37b mov eax, ecx ; +0xdd, 0x18006a37d sub r10, rax ; +0xdf, 0x18006a37f movss xmm1, dword ptr [r8+r10*4] ; +0xe2, 0x18006a382 xorps xmm1, xmm0 ; +0xe8, 0x18006a388 jmp short loc_18006A397 ; +0xeb, 0x18006a38b movss xmm1, dword ptr [r8+rcx*4+4D4h] ; +0xed, 0x18006a38d mulss xmm2, cs:dword_18014573C ; +0xf7, 0x18006a397 movss xmm0, cs:dword_180167F48 ; +0xff, 0x18006a39f mulss xmm1, cs:dword_180167F3C ; +0x107, 0x18006a3a7 subss xmm0, xmm2 ; +0x10f, 0x18006a3af addss xmm0, xmm1 ; +0x113, 0x18006a3b3 retn ; +0x117, 0x18006a3b7