//
// cocos2d::CCLayer::init from 0x1001485f4 to 0x100148650 (92 bytes)
//
// 78 xrefs:
// > LevelInfoLayer::init @ 0x100024384
// > GJGroundLayer::init @ 0x10002ba38
// > GJMGLayer::init @ 0x10002c8f0
// > LevelSearchLayer::init @ 0x10005142c
// > SecretLayer5::init @ 0x100073fec
// > CreatorLayer::init @ 0x1000b50a8
// > EditLevelLayer::init @ 0x1000e8dec
// > OptionsCell::OptionsCell @ 0x100110710
// > BoomScrollLayer::init @ 0x10012b090
// > ExtendedLayer::create @ 0x10012b348
// > ExtendedLayer::init @ 0x10012c9b0
// > cocos2d::CCLayerRGBA::init @ 0x100149424
// > cocos2d::CCLayerColor::initWithColor_1 @ 0x100149afc
// > GJShopLayer::init @ 0x10014a6a4
// > ListButtonPage::init @ 0x1001682ec
// > CCTextInputNode::init @ 0x10016c8b8
// > cocos2d::extension::CCControl::init @ 0x1001a5884
// > GauntletSelectLayer::init @ 0x1001be694
// > BoomListView::init @ 0x1001cfec0
// > LoadingLayer::init @ 0x1001d6018
// > cocos2d::CCMenu::initWithArray @ 0x1001d8028
// > GJBaseGameLayer::init @ 0x1001daa10
// > GJGameLoadingLayer::init @ 0x1002093c4
// > GauntletLayer::init @ 0x100232358
// > MenuLayer::init @ 0x10026652c
// > ShaderLayer::init @ 0x10026dbd4
// > SecretRewardsLayer::init @ 0x1002e7ff0
// > Slider::init @ 0x1002ef5c8
// > GJGarageLayer::init @ 0x100301b78
// > SecretLayer2::init @ 0x100309780
// > SecretNumberLayer::create @ 0x10030c9a8
// > SecretNumberLayer::init @ 0x10030dc20
// > SecretLayer3::init @ 0x10030dd98
// > CurrencyRewardLayer::init @ 0x10031e840
// > LevelAreaLayer::init @ 0x100343ba4
// > LevelAreaInnerLayer::init @ 0x100345750
// > SecretLayer4::init @ 0x100353e44
// > DrawGridLayer::init @ 0x100369624
// > MenuGameLayer::init @ 0x10039a5a0
// > LeaderboardsLayer::init @ 0x1003b05a8
// > SecretLayer::init @ 0x1003bd108
// > EditorUI::init @ 0x1003c4ea8
// > GJRotationControl::init @ 0x1003fa85c
// > GJScaleControl::init @ 0x1003fac9c
// > GJTransformControl::init @ 0x1003fb8e8
// > LevelSelectLayer::init @ 0x10040197c
// > LevelPage::init @ 0x100403f10
// > ButtonPage::init @ 0x10042158c
// > ??> @ 0x1007645c0
// > ??> @ 0x100764e70
// > ??> @ 0x100765410
// > ??> @ 0x100768be0
// > ??> @ 0x100771fc0
// > ??> @ 0x100782068
// > ??> @ 0x10078aad8
// > ??> @ 0x10078edc8
// > ??> @ 0x100791968
// > ??> @ 0x100796e48
// > ??> @ 0x1007988f8
// > ??> @ 0x10079d168
// > ??> @ 0x10079f640
// > ??> @ 0x1007b65a8
// > ??> @ 0x1007bb9d0
// > ??> @ 0x1007bebf8
// > ??> @ 0x1007c0e40
// > ??> @ 0x1007c69c0
// > ??> @ 0x1007e5fa0
// > ??> @ 0x1007e65b0
// > ??> @ 0x1007eb038
// > ??> @ 0x1007eb668
// > ??> @ 0x1007ef0e8
// > ??> @ 0x1007f18e8
// > ??> @ 0x1007f4680
// > ??> @ 0x10080e120
// > ??> @ 0x100813b98
// > ??> @ 0x100816fa0
// > ??> @ 0x100817530
// > ??> @ 0x100824900
//
// 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 cocos2d::CCLayer::init(cocos2d::CCLayer *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x20
_BYTE v5[8]; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCSize WinSize; // 0:kr00_8.8
v2 = cocos2d::CCDirector::sharedDirector();
v3 = v2;
if ( v2 )
{
WinSize = cocos2d::CCDirector::getWinSize(v2);
((void (__fastcall *)(cocos2d::CCLayer *, _BYTE *, float, float))a1->setContentSize)(
a1,
v5,
WinSize.width,
WinSize.height);
*(_WORD *)&a1->m_bTouchEnabled = 0;
}
return v3 != nullptr;
}