//
// cocos2d::CCLayer::init from 0xae9fbc to 0xaea048 (140 bytes)
//
// 94 xrefs:
// > BoomListView::init @ 0x56c270
// > ExtendedLayer::init @ 0x56cfd4
// > BoomScrollLayer::init @ 0x56e9e0
// > cocos2d::CCScrollLayer::initWithLayers @ 0x578e18
// > Slider::init @ 0x5941c4
// > CCTextInputNode::init @ 0x5a2744
// > ListButtonPage::init @ 0x5a89e8
// > MenuLayer::init @ 0x5c2ebc
// > LoadingLayer::init @ 0x5c5230
// > OptionsCell::OptionsCell @ 0x615dc4
// > DrawGridLayer::init @ 0x664d30
// > GJScaleControl::init @ 0x6861e0
// > GJRotationControl::init @ 0x6950ac
// > GJTransformControl::init @ 0x696654
// > EditorUI::init @ 0x6bbeb4
// > MenuGameLayer::init @ 0x6c9f48
// > CreatorLayer::init @ 0x6cbfb8
// > LevelSearchLayer::init @ 0x6d1398
// > LevelInfoLayer::init @ 0x6db184
// > EditLevelLayer::init @ 0x6e034c
// > ButtonPage::init @ 0x73abdc
// > GJGarageLayer::init @ 0x798eac
// > LevelPage::init @ 0x79cf5c
// > LevelSelectLayer::init @ 0x79dc00
// > GraphicsReloadLayer::init @ 0x7d2c18
// > GJFlyGroundLayer::init @ 0x7eb70c
// > GJGroundLayer::init @ 0x7ebd90
// > GJMGLayer::init @ 0x7ecd40
// > LeaderboardsLayer::init @ 0x81eaf8
// > GJGameLoadingLayer::init @ 0x86c59c
// > GJBaseGameLayer::init @ 0x892ef4
// > SecretLayer::init @ 0x905c58
// > CurrencyRewardLayer::init @ 0x910738
// > GauntletSelectLayer::init @ 0x91c4c8
// > GauntletLayer::init @ 0x91f3c4
// > GJShopLayer::init @ 0x92ddb0
// > SecretLayer2::init @ 0x942240
// > SecretNumberLayer::init @ 0x943094
// > SecretLayer3::init @ 0x944c7c
// > SecretLayer4::init @ 0x94a7b4
// > WorldSelectLayer::init @ 0x9610bc
// > MapSelectLayer::init @ 0x9804cc
// > MultiplayerLayer::init @ 0x9b0a80
// > MPLobbyLayer::init @ 0x9c9da4
// > ShaderLayer::init @ 0x9f9ce8
// > LevelAreaLayer::init @ 0xa2f670
// > LevelAreaInnerLayer::init @ 0xa30550
// > SecretRewardsLayer::init @ 0xa62368
// > SecretLayer5::init @ 0xa95abc
// > SecretGame01Layer::init @ 0xa96b74
// > SecretLayer6::init @ 0xa96e58
// > cocos2d::extension::CCControl::init @ 0xa9a48c
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0xaa6f00
// > cocos2d::CCLayerRGBA::init @ 0xaea7e8
// > cocos2d::CCLayerColor::initWithColor @ 0xaeaf58
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0xaebfb4
// > cocos2d::CCLayerMultiplex::initWithArray @ 0xaec1f4
// > cocos2d::CCMenu::initWithArray @ 0xaf2f14
// > ??> @ 0x4c800
// > ??> @ 0x11342f0
// > ??> @ 0x1135440
// > ??> @ 0x1139f10
// > ??> @ 0x113a4a0
// > ??> @ 0x113ab20
// > ??> @ 0x113b130
// > ??> @ 0x113fe80
// > ??> @ 0x1140f00
// > ??> @ 0x11436b0
// > ??> @ 0x1147340
// > ??> @ 0x114b120
// > ??> @ 0x114e3c0
// > ??> @ 0x1155610
// > ??> @ 0x1156700
// > ??> @ 0x1159d00
// > ??> @ 0x115b280
// > ??> @ 0x115b9e0
// > ??> @ 0x1160370
// > ??> @ 0x117a6a0
// > ??> @ 0x117ac70
// > ??> @ 0x117ca40
// > ??> @ 0x1184ab0
// > ??> @ 0x11855d0
// > ??> @ 0x11866f0
// > ??> @ 0x1191450
// > ??> @ 0x11aa1a0
// > ??> @ 0x11ac060
// > ??> @ 0x11acdd0
// > ??> @ 0x11af440
// > ??> @ 0x11bbc50
// > ??> @ 0x11c9500
// > ??> @ 0x11da6c0
// > ??> @ 0x11ecd60
// > ??> @ 0x12037b0
// > ??> @ 0x1205150
//
// 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; // x0
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x21
_BYTE v5[8]; // [xsp+40h] [xbp+40h] BYREF
cocos2d::CCSize WinSize; // 0:kr00_8.8
v2 = cocos2d::CCDirector::sharedDirector();
if ( !v2 )
return 0;
setContentSize = a1->setContentSize;
WinSize = cocos2d::CCDirector::getWinSize(v2);
((void (__fastcall *)(cocos2d::CCLayer *, _BYTE *, float, float))setContentSize)(
a1,
v5,
WinSize.width,
WinSize.height);
a1->m_bTouchEnabled = 0;
a1->m_bAccelerometerEnabled = 0;
return 1;
}