//
// ShaderLayer::init from 0x10026dbc4 to 0x10026dc64 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d35d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall ShaderLayer::init(ShaderLayer *a1)
{
_BOOL4 v2; // w20
GameManager *v3; // x0
double v4; // d0
v2 = cocos2d::CCLayer::init(a1);
if ( v2 )
{
v3 = GameManager::sharedState();
ShaderLayer::setupShader(a1, v3->m_shouldResetShader);
v4 = (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 100.0) + 10000.0);
a1->m_state.m_startTime = v4;
a1->m_state.m_time = v4;
if ( a1->m_state.m_minBlendingLayer != 1 )
a1->m_state.m_minBlendingLayer = 1;
if ( a1->m_state.m_maxBlendingLayer != 15 )
a1->m_state.m_maxBlendingLayer = 15;
if ( a1->m_state.m_noPlayerParticles )
a1->m_state.m_noPlayerParticles = 0;
a1->m_state.m_zLayerDirty = 1;
}
return v2;
}