//
// cocos2d::CCLayer::init from 0x1004a97c0 to 0x1004a9812 (82 bytes)
//
// 104 xrefs:
// > EditorUI::init @ 0x100005287
// > CCTextInputNode::init @ 0x100065a0a
// > CCTextInputMenu::init @ 0x10007862a
// > DrawGridLayer::init @ 0x1000d6d14
// > GJBaseGameLayer::init @ 0x1000ebd97
// > GJGameLoadingLayer::init @ 0x100144d48
// > EditLevelLayer::init @ 0x1001dccea
// > CustomListView::getListCell @ 0x10022630c
// > sub_100227430 @ 0x10022749d
// > OptionsCell::OptionsCell @ 0x10023d51d
// > MapSelectLayer::init @ 0x100251f54
// > LevelAreaLayer::init @ 0x100263ef7
// > LevelAreaInnerLayer::init @ 0x1002662f8
// > CreatorLayer::init @ 0x100282007
// > LevelInfoLayer::init @ 0x1002a9ebd
// > Slider::init @ 0x1002ef779
// > BoomListView::init @ 0x1002f70bf
// > GJShopLayer::init @ 0x10030e6a9
// > cocos2d::extension::CCControl::init @ 0x10033cc0d
// > GJGarageLayer::init @ 0x1003526a7
// > MenuLayer::init @ 0x10037ad27
// > GauntletLayer::init @ 0x10037da17
// > MultiplayerLayer::scene @ 0x100384920
// > MultiplayerLayer::create @ 0x1003849df
// > MultiplayerLayer::init @ 0x100384a25
// > LoadingLayer::init @ 0x10038bcb7
// > BoomScrollLayer::init @ 0x10038e254
// > BoomScrollLayer::init @ 0x10038e2db
// > ExtendedLayer::create @ 0x10038e67a
// > ExtendedLayer::init @ 0x100390d15
// > SecretLayer4::init @ 0x10039a097
// > WorldSelectLayer::init @ 0x1003ab1c7
// > ShaderLayer::init @ 0x1003b3b6a
// > ListButtonPage::init @ 0x1003dd9c0
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0x1003e4547
// > LevelSelectLayer::init @ 0x10041f387
// > LevelPage::init @ 0x100422e24
// > SecretLayer5::init @ 0x10046e9c9
// > SecretLayer6::init @ 0x1004734e4
// > SecretGame01Layer::init @ 0x100474502
// > MPLobbyLayer::scene @ 0x10048aa7f
// > MPLobbyLayer::create @ 0x10048abab
// > MPLobbyLayer::init @ 0x10048abf5
// > SecretLayer2::init @ 0x100496187
// > SecretNumberLayer::create @ 0x10049a26f
// > SecretNumberLayer::init @ 0x10049c215
// > SecretLayer3::init @ 0x10049c5e7
// > MenuGameLayer::init @ 0x1004f88a4
// > LeaderboardsLayer::init @ 0x10051336a
// > sub_100597850 @ 0x100597867
// > GauntletSelectLayer::init @ 0x10059e694
// > GJRotationControl::init @ 0x100640894
// > GJScaleControl::init @ 0x1006419a4
// > GJTransformControl::init @ 0x100643de4
// > ButtonPage::init @ 0x1006b4d43
// > GJGroundLayer::init @ 0x1006bdb3a
// > GJFlyGroundLayer::create @ 0x1006bec5c
// > GJFlyGroundLayer::init @ 0x1006beca9
// > GJMGLayer::init @ 0x1006bee07
// > SecretLayer::init @ 0x1006d17c7
// > LevelSearchLayer::init @ 0x100704419
// > SecretRewardsLayer::init @ 0x10070ccea
// > cocos2d::CCMenu::initWithArray @ 0x1008738b7
// > GraphicsReloadLayer::create @ 0x10088811e
// > GraphicsReloadLayer::init @ 0x100888221
// > CurrencyRewardLayer::init @ 0x100888ef0
// > sub_10096B030 @ 0x10096b040
// > ??> @ 0x100ab4c70
// > ??> @ 0x100ab9e80
// > ??> @ 0x100aba598
// > ??> @ 0x100ac41d0
// > ??> @ 0x100ac53a0
// > ??> @ 0x100ade530
// > ??> @ 0x100aea448
// > ??> @ 0x100aef318
// > ??> @ 0x100af62a0
// > ??> @ 0x100b0dea0
// > ??> @ 0x100b13650
// > ??> @ 0x100b167c8
// > ??> @ 0x100b1b4a8
// > ??> @ 0x100b280a8
// > ??> @ 0x100b2ebd8
// > ??> @ 0x100b2f8b8
// > ??> @ 0x100b362d0
// > ??> @ 0x100b3b998
// > ??> @ 0x100b3f948
// > ??> @ 0x100b40ad8
// > ??> @ 0x100b41088
// > ??> @ 0x100b4dc20
// > ??> @ 0x100b53ae0
// > ??> @ 0x100b54db8
// > ??> @ 0x100b6b3b0
// > ??> @ 0x100b71078
// > ??> @ 0x100b71f90
// > ??> @ 0x100b89408
// > ??> @ 0x100b8c498
// > ??> @ 0x100b8d018
// > ??> @ 0x100b95f58
// > ??> @ 0x100b97500
// > ??> @ 0x100b97aa8
// > ??> @ 0x100b99590
// > ??> @ 0x100ba6198
// > ??> @ 0x100ba6800
// > ??> @ 0x100bcd950
//
// This function is hookable on this platform (idp: pc, 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 12:30:56 +0000
//
bool __fastcall cocos2d::CCLayer::init(_WORD *a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 v3; // r14
_QWORD v5[4]; // [rsp+0h] [rbp-20h] BYREF
v5[0] = v1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = v2;
if ( v2 )
{
cocos2d::CCDirector::getWinSize(v5, v2);
(*(void (__fastcall **)(_WORD *, _QWORD *))(*(_QWORD *)a1 + 320LL))(a1, v5);
a1[180] = 0;
}
return v3 != 0;
}