//
// cocos2d::CCLayer::init from 0x7d6e14 to 0x7d6e5e (74 bytes)
//
// 60 xrefs:
// > BoomListView::init @ 0x3c08f4
// > ExtendedLayer::init @ 0x3c1176
// > BoomScrollLayer::init @ 0x3c233e
// > cocos2d::CCScrollLayer::initWithLayers @ 0x3c7fd2
// > Slider::init @ 0x3daebe
// > CCTextInputMenu::init @ 0x3dbb7e
// > CCTextInputNode::init @ 0x3e29e2
// > ListButtonPage::init @ 0x3e6adc
// > ScrollableContentLayer::init @ 0x3f61f2
// > MenuLayer::init @ 0x3f9f74
// > LoadingLayer::init @ 0x3fb566
// > OptionsCell::OptionsCell @ 0x425dd0
// > DrawGridLayer::init @ 0x463c52
// > EditorUI::init @ 0x48a1ea
// > MenuGameLayer::init @ 0x492f36
// > CreatorLayer::init @ 0x49427c
// > LevelSearchLayer::init @ 0x49816e
// > LevelInfoLayer::init @ 0x49d4e6
// > EditLevelLayer::init @ 0x4a0eba
// > ButtonPage::init @ 0x4ddf18
// > GJGarageLayer::init @ 0x50fef4
// > LevelPage::init @ 0x511cfa
// > LevelSelectLayer::init @ 0x512606
// > GraphicsReloadLayer::init @ 0x52d958
// > GJFlyGroundLayer::init @ 0x545ab6
// > GJGroundLayer::init @ 0x545eca
// > GJMGLayer::init @ 0x5468d4
// > LeaderboardsLayer::init @ 0x563b54
// > GJGameLoadingLayer::init @ 0x59b692
// > GJBaseGameLayer::init @ 0x5b4a6c
// > SecretLayer::init @ 0x5feabc
// > CurrencyRewardLayer::init @ 0x6054fc
// > GauntletSelectLayer::init @ 0x60ce94
// > GauntletLayer::init @ 0x60ecec
// > GJShopLayer::init @ 0x612a3a
// > SecretLayer2::init @ 0x61f2f0
// > SecretNumberLayer::init @ 0x61fd04
// > SecretLayer3::init @ 0x61fd28
// > SecretLayer4::init @ 0x622bac
// > WorldSelectLayer::init @ 0x62e092
// > MapSelectLayer::init @ 0x640b06
// > MultiplayerLayer::init @ 0x65cf12
// > MPLobbyLayer::init @ 0x66a3ce
// > ShaderLayer::init @ 0x686da4
// > LevelAreaLayer::init @ 0x6a4a36
// > LevelAreaInnerLayer::init @ 0x6a531a
// > SecretRewardsLayer::init @ 0x6cdf76
// > SecretLayer5::init @ 0x6e5bbc
// > SecretLayer6::init @ 0x6e6596
// > SecretGame01Layer::init @ 0x6e683e
// > GJRotationControl::init @ 0x6ef1a2
// > GJScaleControl::init @ 0x6ef49a
// > GJTransformControl::init @ 0x6ef934
// > cocos2d::extension::CCControl::init @ 0x7a6ccc
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0x7af16e
// > cocos2d::CCLayerRGBA::init @ 0x7d7404
// > cocos2d::CCLayerColor::initWithColor @ 0x7d78d8
// > cocos2d::CCLayerMultiplex::initWithLayers @ 0x7d82c6
// > cocos2d::CCLayerMultiplex::initWithArray @ 0x7d8380
// > cocos2d::CCMenu::initWithArray @ 0x7dcbe0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:40 +0000
//
int __fastcall cocos2d::CCLayer::init(cocos2d::CCLayer *this)
{
int result; // r0
void (__fastcall *v3)(cocos2d::CCLayer *, _BYTE *); // r7
_BYTE v4[8]; // [sp+4h] [bp-10h] BYREF
result = cocos2d::CCDirector::sharedDirector(this);
if ( result )
{
v3 = *(void (__fastcall **)(cocos2d::CCLayer *, _BYTE *))(*(_DWORD *)this + 160);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v4, result);
v3(this, v4);
*((_BYTE *)this + 284) = 0;
*((_BYTE *)this + 285) = 0;
return 1;
}
return result;
}