//
// ShaderLayer::preSepiaShader from 0xb2d648 to 0xb2d6a4 (92 bytes)
//
// 2 xrefs:
// > ShaderLayer::performCalculations @ 0xb2e66c
// > ??> @ 0xc1c30
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:42 +0000
//
__int64 __fastcall ShaderLayer::preSepiaShader(ShaderLayer *this)
{
cocos2d::CCGLProgram *v2; // x0
if ( *((float *)this + 249) > 0.0 || cocos2d::CCNode::getActionByTag(this, 33) )
*((_BYTE *)this + 1078) = 1;
v2 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138));
return cocos2d::CCGLProgram::setUniformLocationWith1f(v2, *((_DWORD *)this + 384), *((float *)this + 249));
}