//
// hueMatrix from 0x306f14 to 0x306fa0 (140 bytes)
//
// 1 xrefs:
// > CCSpriteWithHue::updateColorMatrix @ 0x306ffa
//
// 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 hueMatrix(float (*a1)[3], float a2)
{
float v4; // r8
float v5; // r0
float v7[9]; // [sp+0h] [bp-28h] BYREF
xRotateMat((int)a1, 0.70711, 0.70711);
yRotateMat((int)v7, -0.57735, 0.8165);
matrixMult((float (*)[3])v7, a1, a1);
v4 = sinf(a2);
v5 = cosf(a2);
zRotateMat((int)v7, v4, v5);
matrixMult((float (*)[3])v7, a1, a1);
yRotateMat((int)v7, 0.57735, 0.8165);
matrixMult((float (*)[3])v7, a1, a1);
xRotateMat((int)v7, -0.70711, 0.70711);
return matrixMult((float (*)[3])v7, a1, a1);
}