//
// cocos2d::CCLayer::init from 0xd5bd14 to 0xd5bda0 (140 bytes)
//
// 98 xrefs:
// > BoomListView::init @ 0x6883a4
// > ExtendedLayer::init @ 0x6890a8
// > BoomScrollLayer::init @ 0x68ab68
// > cocos2d::CCScrollLayer::initWithLayers @ 0x6942ec
// > Slider::init @ 0x6b5a2c
// > CCTextInputMenu::init @ 0x6b6db4
// > CCTextInputNode::init @ 0x6c25fc
// > ListButtonPage::init @ 0x6c8d28
// > ScrollableContentLayer::init @ 0x6e5790
// > MenuLayer::init @ 0x6eb46c
// > LoadingLayer::init @ 0x6ed1c0
// > OptionsCell::OptionsCell @ 0x738ae4
// > DrawGridLayer::init @ 0x78fc90
// > EditorUI::init @ 0x7cec10
// > MenuGameLayer::init @ 0x7daeec
// > CreatorLayer::init @ 0x7dcb10
// > LevelSearchLayer::init @ 0x7e2418
// > LevelInfoLayer::init @ 0x7ea820
// > EditLevelLayer::init @ 0x7f00f4
// > ButtonPage::init @ 0x8614a8
// > GJGarageLayer::init @ 0x8c198c
// > LevelPage::init @ 0x8c4394
// > LevelSelectLayer::init @ 0x8c5034
// > GraphicsReloadLayer::init @ 0x8f0248
// > GJFlyGroundLayer::init @ 0x91652c
// > GJGroundLayer::init @ 0x916bb0
// > GJMGLayer::init @ 0x917b60
// > LeaderboardsLayer::init @ 0x94f42c
// > GJGameLoadingLayer::init @ 0x9ad818
// > GJBaseGameLayer::init @ 0x9bc55c
// > SecretLayer::init @ 0xa61588
// > CurrencyRewardLayer::init @ 0xa6ac30
// > GauntletSelectLayer::init @ 0xa76aa8
// > GauntletLayer::init @ 0xa795b4
// > GJShopLayer::init @ 0xa7ee7c
// > SecretLayer2::init @ 0xa90234
// > SecretNumberLayer::init @ 0xa90fbc
// > SecretLayer3::init @ 0xa924a4
// > SecretLayer4::init @ 0xa96de0
// > WorldSelectLayer::init @ 0xaa7e94
// > MapSelectLayer::init @ 0xac4020
// > MultiplayerLayer::init @ 0xaf13b8
// > MPLobbyLayer::init @ 0xb05630
// > ShaderLayer::init @ 0xb303d4
// > LevelAreaLayer::init @ 0xb5b998
// > LevelAreaInnerLayer::init @ 0xb5c7a0
// > SecretRewardsLayer::init @ 0xb9eff8
// > SecretLayer5::init @ 0xbc7ee4
// > SecretGame01Layer::init @ 0xbc8cf4
// > SecretLayer6::init @ 0xbc8fd8
// > GJRotationControl::init @ 0xbd3d94
// > GJScaleControl::init @ 0xbd41f8
// > GJTransformControl::init @ 0xbd4894
// > cocos2d::extension::CCControl::init @ 0xd0c05c
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0xd188cc
// > cocos2d::CCLayerRGBA::init @ 0xd5c548
// > cocos2d::CCLayerColor::initWithColor @ 0xd5ccb8
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0xd5dd14
// > cocos2d::CCLayerMultiplex::initWithArray @ 0xd5df54
// > cocos2d::CCMenu::initWithArray @ 0xd64fbc
// > ??> @ 0x6b5c0
// > ??> @ 0x14118b0
// > ??> @ 0x1412ac0
// > ??> @ 0x1417d80
// > ??> @ 0x1418350
// > ??> @ 0x1418a20
// > ??> @ 0x1419080
// > ??> @ 0x141e440
// > ??> @ 0x141f490
// > ??> @ 0x141fad0
// > ??> @ 0x1422330
// > ??> @ 0x1424c20
// > ??> @ 0x1427220
// > ??> @ 0x142aa70
// > ??> @ 0x142dea0
// > ??> @ 0x1436260
// > ??> @ 0x1436dc0
// > ??> @ 0x143a600
// > ??> @ 0x143bca0
// > ??> @ 0x143c500
// > ??> @ 0x14418e0
// > ??> @ 0x145c8e0
// > ??> @ 0x145ced0
// > ??> @ 0x145edd0
// > ??> @ 0x14683f0
// > ??> @ 0x1468f50
// > ??> @ 0x146a0c0
// > ??> @ 0x1476520
// > ??> @ 0x1491300
// > ??> @ 0x14932b0
// > ??> @ 0x1494060
// > ??> @ 0x1495f90
// > ??> @ 0x14a2e70
// > ??> @ 0x14b0d60
// > ??> @ 0x14c2710
// > ??> @ 0x14d8eb0
// > ??> @ 0x1519150
// > ??> @ 0x151ab70
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:47 +0000
//
__int64 __fastcall cocos2d::CCLayer::init(cocos2d::CCLayer *this)
{
cocos2d::CCDirector *v2; // x0
void (__fastcall *v3)(cocos2d::CCLayer *, __int64 *); // x21
__int64 v5; // [xsp+40h] [xbp+40h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
if ( !v2 )
return 0;
v3 = *(void (__fastcall **)(cocos2d::CCLayer *, __int64 *))(*(_QWORD *)this + 320LL);
cocos2d::CCDirector::getWinSize(&v5, v2);
v3(this, &v5);
*((_BYTE *)this + 360) = 0;
*((_BYTE *)this + 361) = 0;
return 1;
}