//
// sub_10030FE08 from 0x10030fe08 to 0x10030feec (228 bytes)
//
// 1 xrefs:
// > ShaderLayer::performCalculations @ 0x100310fc0
//
// 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 11:03:12 +0000
//
void __fastcall sub_10030FE08(__int64 a1)
{
float v2; // s0
__int64 v3; // x0
GLint v4; // w1
GLfloat v5; // s0
GLfloat v6; // s8
__int64 v7; // x0
float v8; // s0
float v9; // s2
float v10; // s8
if ( *(float *)(a1 + 828) != 0.0 || cocos2d::CCNode::getActionByTag(a1, 16) )
*(_BYTE *)(a1 + 1078) = 1;
v2 = *(float *)(a1 + 828);
if ( v2 == 0.0 )
{
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
v4 = *(_DWORD *)(a1 + 1472);
v5 = 0.0;
}
else
{
v6 = v2 * 0.111111111 * 0.200000003;
v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
cocos2d::CCGLProgram::setUniformLocationWith1f(v7, *(_DWORD *)(a1 + 1472), v6);
v8 = *(float *)(a1 + 832) * 0.2;
v9 = fmaxf(v8, 0.0);
if ( v8 <= 0.2 )
v10 = v9;
else
v10 = 0.2;
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 656LL))(*(_QWORD *)(a1 + 1104));
v4 = *(_DWORD *)(a1 + 1476);
v5 = v10;
}
cocos2d::CCGLProgram::setUniformLocationWith1f(v3, v4, v5);
}