//
// ShaderLayer::preHueShiftShader from 0x1003d1220 to 0x1003d12d3 (179 bytes)
//
// 0 xrefs:
//
// 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)
{
cocos2d::CCGLProgram *v1; // r14
int m_hueShiftCosAUniform; // r15d
__m128 v3; // xmm0
cocos2d::CCGLProgram *v4; // rax
float v5; // [rsp+0h] [rbp-30h]
if ( a1->m_state.m_hueShiftDegrees != 0.0 || cocos2d::CCNode::getActionByTag(a1, 38) )
a1->m_state.m_usesShaders = 1;
v5 = a1->m_state.m_hueShiftDegrees * 0.017453292;
v1 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
m_hueShiftCosAUniform = a1->m_hueShiftCosAUniform;
v3 = (__m128)LODWORD(v5);
*(__float2 *)v3.f32 = __sincosf_stret(v5);
cocos2d::CCGLProgram::setUniformLocationWith1f(v1, m_hueShiftCosAUniform, _mm_movehdup_ps(v3).f32[0]);
v4 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sprite->getShaderProgram)(a1->m_sprite);
cocos2d::CCGLProgram::setUniformLocationWith1f(v4, a1->m_hueShiftSinAUniform, v3.f32[0]);
}