//
// ShaderLayer::preSepiaShader from 0x1003ba510 to 0x1003ba56e (94 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:29:30 +0000
//
__int64 __fastcall ShaderLayer::preSepiaShader(__int64 a1)
{
__int64 v1; // rax
if ( *(float *)(a1 + 996) > 0.0 || cocos2d::CCNode::getActionByTag(a1, 33) )
*(_BYTE *)(a1 + 1078) = 1;
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
return cocos2d::CCGLProgram::setUniformLocationWith1f(v1, *(unsigned int *)(a1 + 1536), *(float *)(a1 + 996));
}