//
// sub_D464C from 0xd464c to 0xd46cc (128 bytes)
//
// 0 xrefs:
//
// 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
//
float32x4_t *__fastcall sub_D464C(
float32x4_t *result,
float32x4_t *a2,
unsigned int a3,
unsigned __int32 *a4,
int a5,
int a6,
int a7)
{
int32x2_t v7; // d0
unsigned int v8; // r3
int32x4_t v9; // q8
int v10; // r2
int v11; // r3
float *v12; // r4
float *v13; // r5
int v14; // r2
int v15; // r3
float *v16; // r4
float *v17; // r5
float32x4_t v18; // 0:q9.16
float32x4_t v19; // 0:q9.16
v7.n64_u32[0] = *a4;
v8 = a3 >> 2;
v9 = vdupq_lane_s32(v7, 0);
if ( a7 )
{
while ( v8 )
{
v18 = *result++;
--v8;
*a2++ = vmulq_f32(v18, v9);
}
v14 = a3 & 3;
v15 = 0;
while ( v14 )
{
v16 = (float *)((char *)result + v15);
v17 = (float *)((char *)a2 + v15);
v15 += 4;
--v14;
*v17 = *v16 * v7.n64_f32[0];
}
}
else
{
while ( v8 )
{
v19 = *result++;
--v8;
*a2 = vmlaq_f32(*a2, v19, v9);
++a2;
}
v10 = a3 & 3;
v11 = 0;
while ( v10 )
{
v12 = (float *)((char *)result + v11);
v13 = (float *)((char *)a2 + v11);
v11 += 4;
--v10;
*v13 = *v13 + (float)(*v12 * v7.n64_f32[0]);
}
}
return result;
}