//
// ShaderLayer::preHueShiftShader from 0x100272b54 to 0x100272c00 (172 bytes)
//
// 1 xrefs:
// > ShaderLayer::performCalculations @ 0x100273198
//
// 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 ShaderLayer::preHueShiftShader(ShaderLayer *a1)
{
float v2; // s8
cocos2d::CCGLProgram *v3; // x20
int m_hueShiftCosAUniform; // w21
cocos2d::CCGLProgram *v5; // x0
__float2 v6; // 0:kr00_8.8
if ( a1->m_state.m_hueShiftDegrees != 0.0 || cocos2d::CCNode::getActionByTag(a1, 38) )
a1->m_state.m_usesShaders = 1;
v2 = a1->m_state.m_hueShiftDegrees * 0.017453;
v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
m_hueShiftCosAUniform = a1->m_hueShiftCosAUniform;
v6 = __sincosf_stret(v2);
cocos2d::CCGLProgram::setUniformLocationWith1f(v3, m_hueShiftCosAUniform, v6.__cosval);
v5 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
cocos2d::CCGLProgram::setUniformLocationWith1f(v5, a1->m_hueShiftSinAUniform, v6.__sinval);
}