//
// CCSpriteWithHue::updateColorMatrix from 0x1001a3a28 to 0x1001a3a98 (112 bytes)
//
// 2 xrefs:
// > CCSpriteWithHue::updateColor @ 0x1001a3a24
// > CCSpriteWithHue::setHueDegrees @ 0x1001a3c10
//
// 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
//
void __fastcall CCSpriteWithHue::updateColorMatrix(CCSpriteWithHue *a1)
{
std::array, 3> *p_m_colorMatrix; // x19
__n128 v3; // q0
__int64 v4; // x8
float v5; // s0
__int64 i; // x9
p_m_colorMatrix = &a1->m_colorMatrix;
v3 = sub_1001A3A98(&a1->m_colorMatrix, a1->m_hue);
v4 = 0;
v3.n128_u8[0] = a1->_displayedOpacity;
v5 = (float)v3.n128_u32[0] / 255.0;
do
{
for ( i = 0; i != 3; ++i )
p_m_colorMatrix->__elems_[0].__elems_[i] = v5 * p_m_colorMatrix->__elems_[0].__elems_[i];
++v4;
p_m_colorMatrix = (std::array, 3> *)((char *)p_m_colorMatrix + 12);
}
while ( v4 != 3 );
}