//
// cocos2d::CCLayer::init from 0x5cec88 to 0x5cecd2 (74 bytes)
//
// 58 xrefs:
// > BoomListView::init @ 0x2e14f4
// > ExtendedLayer::init @ 0x2e1b02
// > BoomScrollLayer::init @ 0x2e2c4e
// > cocos2d::CCScrollLayer::initWithLayers @ 0x2e7d22
// > Slider::init @ 0x2f57aa
// > CCTextInputNode::init @ 0x2fa1ba
// > ListButtonPage::init @ 0x2fd4b0
// > MenuLayer::init @ 0x30a750
// > LoadingLayer::init @ 0x30c1a2
// > OptionsCell::OptionsCell @ 0x335694
// > DrawGridLayer::init @ 0x36a4d2
// > GJScaleControl::init @ 0x37bc52
// > GJRotationControl::init @ 0x3867d8
// > GJTransformControl::init @ 0x387732
// > EditorUI::init @ 0x3a106c
// > MenuGameLayer::init @ 0x3aa136
// > CreatorLayer::init @ 0x3ab2f0
// > LevelSearchLayer::init @ 0x3adc3a
// > LevelInfoLayer::init @ 0x3b3bda
// > EditLevelLayer::init @ 0x3b6abe
// > ButtonPage::init @ 0x3d9154
// > GJGarageLayer::init @ 0x406e94
// > LevelPage::init @ 0x4095ae
// > LevelSelectLayer::init @ 0x409eb6
// > GraphicsReloadLayer::init @ 0x427294
// > GJFlyGroundLayer::init @ 0x4341fe
// > GJGroundLayer::init @ 0x434612
// > GJMGLayer::init @ 0x43501c
// > LeaderboardsLayer::init @ 0x45230c
// > GJGameLoadingLayer::init @ 0x47cbae
// > GJBaseGameLayer::init @ 0x490a1e
// > SecretLayer::init @ 0x4cb1f4
// > CurrencyRewardLayer::init @ 0x4d2200
// > GauntletSelectLayer::init @ 0x4d942e
// > GauntletLayer::init @ 0x4db0aa
// > GJShopLayer::init @ 0x4e305a
// > SecretLayer2::init @ 0x4ee624
// > SecretNumberLayer::init @ 0x4ef008
// > SecretLayer3::init @ 0x4ef02c
// > SecretLayer4::init @ 0x4f19d2
// > WorldSelectLayer::init @ 0x4fe22a
// > MapSelectLayer::init @ 0x50f6ca
// > MultiplayerLayer::init @ 0x5290da
// > MPLobbyLayer::init @ 0x535458
// > ShaderLayer::init @ 0x5508bc
// > LevelAreaLayer::init @ 0x56c80a
// > LevelAreaInnerLayer::init @ 0x56d0ce
// > SecretRewardsLayer::init @ 0x585e92
// > SecretLayer5::init @ 0x59eda6
// > SecretLayer6::init @ 0x59f7b0
// > SecretGame01Layer::init @ 0x59fa46
// > cocos2d::extension::CCControl::init @ 0x5a101c
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0x5a94ce
// > cocos2d::CCLayerRGBA::init @ 0x5cf274
// > cocos2d::CCLayerColor::initWithColor @ 0x5cf748
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0x5d0136
// > cocos2d::CCLayerMultiplex::initWithArray @ 0x5d01f0
// > cocos2d::CCMenu::initWithArray @ 0x5d498c
//
// 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 cocos2d::CCLayer::init(cocos2d::CCLayer *a1)
{
cocos2d::CCDirector *v2; // r0
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r7
cocos2d::CCSize v5; // [sp+4h] [bp-10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
if ( v2 )
{
setContentSize = a1->setContentSize;
cocos2d::CCDirector::getWinSize(&v5, v2);
setContentSize(a1, &v5);
a1->m_bTouchEnabled = 0;
a1->m_bAccelerometerEnabled = 0;
LOBYTE(v2) = 1;
}
return (char)v2;
}