//
// ShaderLayer::init from 0x686da0 to 0x686df4 (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:05 +0000
//
GameManager *__fastcall ShaderLayer::init(ShaderLayer *this)
{
GameManager *v2; // r0
GameManager *v3; // r5
int v4; // r0
double v5; // d7
v2 = (GameManager *)cocos2d::CCLayer::init(this);
v3 = v2;
if ( v2 )
{
v4 = GameManager::sharedState(v2);
ShaderLayer::setupShader(this, *(unsigned __int8 *)(v4 + 1304));
v5 = (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 100.0) + 10000.0);
*((double *)this + 47) = v5;
*((double *)this + 45) = v5;
ShaderLayer::updateZLayer((int)this, 0, 0, 0);
*((_BYTE *)this + 948) = 1;
}
return v3;
}