//
// premultiplyAlpha from 0x306fb8 to 0x306fec (52 bytes)
//
// 1 xrefs:
// > CCSpriteWithHue::updateColorMatrix @ 0x30700c
//
// 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 *result, float a2)
{
float *v2; // r3
float v3; // s15
v2 = result + 9;
do
{
v3 = *result;
result += 3;
*(result - 3) = v3 * a2;
*(result - 2) = *(result - 2) * a2;
*(result - 1) = *(result - 1) * a2;
}
while ( result != v2 );
return result;
}