//
// premultiplyAlpha from 0x5bcf38 to 0x5bcf90 (88 bytes)
//
// 2 xrefs:
// > CCSpriteWithHue::updateColorMatrix @ 0x5bcfc4
// > ??> @ 0x45f90
//
// 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
//
float __fastcall premultiplyAlpha(float (*a1)[3], double a2)
{
float32x2_t v2; // d3
unsigned __int64 v3; // d1
float v4; // s2
float32x2_t v5; // d1
float result; // s0
unsigned __int64 v7; // d1
v2.n64_u64[0] = vdup_lane_s32(*(int32x2_t *)&a2, 0).n64_u64[0];
v3 = vmul_f32(*(float32x2_t *)&(*a1)[0], v2).n64_u64[0];
(*a1)[2] = (*a1)[2] * *(float *)&a2;
v4 = (*a1)[5];
*(_QWORD *)&(*a1)[0] = v3;
v5.n64_u64[0] = *(unsigned __int64 *)&(*a1)[3];
(*a1)[5] = v4 * *(float *)&a2;
*(float32x2_t *)&(*a1)[3] = vmul_f32(v5, v2);
result = (*a1)[8] * *(float *)&a2;
v7 = vmul_f32(*(float32x2_t *)&(*a1)[6], v2).n64_u64[0];
(*a1)[8] = result;
*(_QWORD *)&(*a1)[6] = v7;
return result;
}