//
// ShaderLayer::preBulgeShader from 0xb2d304 to 0xb2d378 (116 bytes)
//
// 2 xrefs:
// > ShaderLayer::performCalculations @ 0xb2e64c
// > ??> @ 0x818b0
//
// 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:41 +0000
//
__int64 __fastcall ShaderLayer::preBulgeShader(ShaderLayer *this)
{
float v2; // s0
__int64 result; // x0
cocos2d::CCGLProgram *v4; // x0
v2 = *((float *)this + 224);
if ( v2 > 0.0 || (result = cocos2d::CCNode::getActionByTag(this, 21), v2 = *((float *)this + 224), result) )
{
result = 1;
*((_BYTE *)this + 1078) = 1;
}
if ( v2 <= 0.0 )
{
v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138));
return cocos2d::CCGLProgram::setUniformLocationWith1f(v4, *((_DWORD *)this + 373), 0.0);
}
return result;
}