//
// ShaderLayer::preRadialBlurShader from 0xb2cd30 to 0xb2ce24 (244 bytes)
//
// 2 xrefs:
// > ShaderLayer::performCalculations @ 0xb2e644
// > ??> @ 0x47d88
//
// 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::preRadialBlurShader(ShaderLayer *this)
{
float v2; // s8
__int64 (*v3)(void); // x1
cocos2d::CCGLProgram *v4; // x0
float v5; // s0
float v6; // s0
cocos2d::CCGLProgram *v7; // x0
float v8; // s0
int v9; // w1
__int64 ActionByTag; // x0
float v12; // [xsp+20h] [xbp+20h]
v2 = *((float *)this + 207);
if ( v2 != 0.0 || (ActionByTag = cocos2d::CCNode::getActionByTag(this, 16), v2 = *((float *)this + 207), ActionByTag) )
*((_BYTE *)this + 1078) = 1;
v3 = *(__int64 (**)(void))(**((_QWORD **)this + 138) + 656LL);
if ( v2 == 0.0 )
{
v7 = (cocos2d::CCGLProgram *)v3();
v9 = *((_DWORD *)this + 368);
v8 = 0.0;
return cocos2d::CCGLProgram::setUniformLocationWith1f(v7, v9, v8);
}
v4 = (cocos2d::CCGLProgram *)v3();
v5 = v2 * 0.111111111 * 0.200000003;
cocos2d::CCGLProgram::setUniformLocationWith1f(v4, *((_DWORD *)this + 368), v5);
v6 = *((float *)this + 208) * 0.2;
if ( v6 > 0.2 )
goto LABEL_10;
if ( v6 > 0.0 )
{
if ( v6 <= 0.2 )
goto LABEL_7;
LABEL_10:
v6 = 0.2;
goto LABEL_7;
}
v6 = 0.0;
LABEL_7:
v12 = v6;
v7 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 656LL))(*((_QWORD *)this + 138));
v8 = v12;
v9 = *((_DWORD *)this + 369);
return cocos2d::CCGLProgram::setUniformLocationWith1f(v7, v9, v8);
}