//
// cocos2d::CCLayer::init from 0x1001c6ee8 to 0x1001c6f44 (92 bytes)
//
// 80 xrefs:
// > LevelInfoLayer::init @ 0x10002795c
// > GJGroundLayer::init @ 0x10002f318
// > sub_1000301B0 @ 0x1000301d0
// > LevelSearchLayer::init @ 0x100059c54
// > SecretLayer5::init @ 0x10007c79c
// > CreatorLayer::init @ 0x1000daa2c
// > EditLevelLayer::init @ 0x10010ecb8
// > sub_1001380C0 @ 0x100138104
// > BoomScrollLayer::init @ 0x100154ad0
// > ExtendedLayer::create @ 0x100154d88
// > ExtendedLayer::init @ 0x10015647c
// > GJRotationControl::init @ 0x100156fb0
// > GJScaleControl::init @ 0x100157ca8
// > GJTransformControl::init @ 0x1001598bc
// > cocos2d::CCLayerRGBA::init @ 0x1001c7d18
// > cocos2d::CCLayerColor::initWithColor_1 @ 0x1001c83f0
// > GJShopLayer::init @ 0x1001c8f98
// > ListButtonPage::init @ 0x1001f1098
// > CCTextInputNode::init @ 0x1001fae84
// > cocos2d::extension::CCControl::init @ 0x10023a7f4
// > GauntletSelectLayer::init @ 0x10025418c
// > BoomListView::init @ 0x100267de8
// > LoadingLayer::init @ 0x10026e56c
// > cocos2d::CCMenu::initWithArray @ 0x10027058c
// > GJBaseGameLayer::init @ 0x100274ea4
// > GJGameLoadingLayer::init @ 0x1002a64e4
// > GauntletLayer::init @ 0x1002ce394
// > MenuLayer::init @ 0x1003038d8
// > ShaderLayer::init @ 0x10030b9ec
// > SecretRewardsLayer::init @ 0x100383178
// > Slider::init @ 0x10038a808
// > GJGarageLayer::init @ 0x10039e868
// > SecretLayer2::init @ 0x1003a649c
// > sub_1003A9674 @ 0x1003a96c0
// > SecretNumberLayer::init @ 0x1003aa938
// > SecretLayer3::init @ 0x1003aaab0
// > sub_1003BC4EC @ 0x1003bc53c
// > LevelAreaLayer::init @ 0x1003e2320
// > LevelAreaInnerLayer::init @ 0x1003e3ecc
// > SecretLayer4::init @ 0x1003f3734
// > DrawGridLayer::init @ 0x10040c3ec
// > MenuGameLayer::init @ 0x100441b78
// > LeaderboardsLayer::init @ 0x100457580
// > SecretLayer::init @ 0x100463e38
// > EditorUI::init @ 0x10046e4b0
// > LevelSelectLayer::init @ 0x1004821e0
// > LevelPage::init @ 0x100484978
// > sub_1004A3A20 @ 0x1004a3a5c
// > sub_1005248B0 @ 0x1005248cc
// > ??> @ 0x1008b0528
// > ??> @ 0x1008b0e60
// > ??> @ 0x1008b1420
// > ??> @ 0x1008b4d88
// > ??> @ 0x1008be878
// > ??> @ 0x1008cfcf8
// > ??> @ 0x1008d9510
// > ??> @ 0x1008de3e0
// > ??> @ 0x1008e0ea0
// > ??> @ 0x1008ec138
// > ??> @ 0x1008edc68
// > ??> @ 0x1008f2858
// > ??> @ 0x1008f5148
// > ??> @ 0x10090df00
// > ??> @ 0x100913660
// > ??> @ 0x100916a78
// > ??> @ 0x100919278
// > ??> @ 0x10091efb0
// > ??> @ 0x10093d8e0
// > ??> @ 0x10093df10
// > ??> @ 0x100943180
// > ??> @ 0x100943800
// > ??> @ 0x100947448
// > ??> @ 0x100949cf8
// > ??> @ 0x10094c880
// > ??> @ 0x100967030
// > ??> @ 0x10096cec0
// > ??> @ 0x10096eda0
// > ??> @ 0x10096f350
// > ??> @ 0x10097d440
// > ??> @ 0x1009a06a8
//
// 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 11:00:17 +0000
//
bool __fastcall cocos2d::CCLayer::init(_WORD *a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v5; // [xsp+8h] [xbp-18h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = v2;
if ( v2 )
{
cocos2d::CCDirector::getWinSize(&v5, v2);
(*(void (__fastcall **)(_WORD *, __int64 *))(*(_QWORD *)a1 + 320LL))(a1, &v5);
a1[180] = 0;
}
return v3 != 0;
}