//
// sub_180060EA0 from 0x180060ea0 to 0x180060f3e (158 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801ac4f8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:23 +0000
//
__int64 __fastcall sub_180060EA0(__m128 *a1, __m128 *a2, unsigned int a3, float *a4, int a5, int a6, int a7)
{
float v7; // xmm1_4
__int64 result; // rax
__m128 v9; // xmm2
__m128 v10; // xmm0
bool v11; // zf
int v12; // r8d
signed __int64 v13; // rcx
__m128 v14; // xmm0
int i; // r8d
float v16; // xmm0_4
v7 = *a4;
result = a3 >> 2;
v9 = _mm_shuffle_ps((__m128)*(unsigned int *)a4, (__m128)*(unsigned int *)a4, 0);
if ( a7 )
{
if ( (_DWORD)result )
{
do
{
v10 = _mm_mul_ps(v9, *a1++);
*a2++ = v10;
v11 = (_DWORD)result == 1;
result = (unsigned int)(result - 1);
}
while ( !v11 );
}
v12 = a3 & 3;
if ( v12 )
{
v13 = (char *)a1 - (char *)a2;
do
{
a2 = (__m128 *)((char *)a2 + 4);
a2[-1].m128_f32[3] = v7 * *(float *)((char *)&a2->m128_f32[-1] + v13);
--v12;
}
while ( v12 );
}
}
else
{
if ( (_DWORD)result )
{
do
{
v14 = _mm_mul_ps(v9, *a1++);
*a2 = _mm_add_ps(v14, *a2);
++a2;
v11 = (_DWORD)result == 1;
result = (unsigned int)(result - 1);
}
while ( !v11 );
}
for ( i = a3 & 3; i; --i )
{
v16 = v7 * a1->m128_f32[0];
a1 = (__m128 *)((char *)a1 + 4);
a2->m128_f32[0] = v16 + a2->m128_f32[0];
a2 = (__m128 *)((char *)a2 + 4);
}
}
return result;
}