//
// ShaderLayer::preHueShiftShader from 0x54e808 to 0x54e886 (126 bytes)
//
// 1 xrefs:
// > ShaderLayer::performCalculations @ 0x54f2e4
//
// 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 ShaderLayer::preHueShiftShader(ShaderLayer *a1)
{
float m_hueShiftDegrees; // s15
cocos2d::CCGLProgram *v3; // r5
float v4; // r0
cocos2d::CCGLProgram *v5; // r5
float v6; // r0
if ( a1->m_state.m_hueShiftDegrees != 0.0 || cocos2d::CCNode::getActionByTag(a1, 38) )
a1->m_state.m_usesShaders = 1;
m_hueShiftDegrees = a1->m_state.m_hueShiftDegrees;
v3 = a1->m_sprite->getShaderProgram(a1->m_sprite);
v4 = cosf(m_hueShiftDegrees * 0.017453);
cocos2d::CCGLProgram::setUniformLocationWith1f(v3, a1->m_hueShiftCosAUniform, v4);
v5 = a1->m_sprite->getShaderProgram(a1->m_sprite);
v6 = sinf(m_hueShiftDegrees * 0.017453);
cocos2d::CCGLProgram::setUniformLocationWith1f(v5, a1->m_hueShiftSinAUniform, v6);
}