//
// ShaderLayer::preSepiaShader from 0x6849d0 to 0x684a0e (62 bytes)
//
// 1 xrefs:
// > ShaderLayer::performCalculations @ 0x685608
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:56:04 +0000
//
int __fastcall ShaderLayer::preSepiaShader(ShaderLayer *this)
{
cocos2d::CCGLProgram *v2; // r0
if ( *((float *)this + 217) > 0.0 || cocos2d::CCNode::getActionByTag(this, 33) )
*((_BYTE *)this + 950) = 1;
v2 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241));
return cocos2d::CCGLProgram::setUniformLocationWith1f(v2, *((_DWORD *)this + 345), *((float *)this + 217));
}