//
// cocos2d::CCLayer::create from 0x1004a9820 to 0x1004a9915 (245 bytes)
//
// 71 xrefs:
// > GJBaseGameLayer::setupLayers @ 0x1000ed968
// > GJBaseGameLayer::setupLayers @ 0x1000ed9a6
// > GJBaseGameLayer::setupLayers @ 0x1000ed9dd
// > CustomSongLayer::init @ 0x1001f82c7
// > RewardsPage::init @ 0x1001fd80d
// > DailyLevelPage::init @ 0x100214a53
// > SelectArtLayer::init @ 0x100259ae8
// > SelectSettingLayer::init @ 0x10025aa46
// > ShareLevelLayer::init @ 0x10026c9e1
// > UploadPopup::init @ 0x10026e6cc
// > SlideInLayer::init @ 0x100279ccd
// > SelectFontLayer::init @ 0x1002850ab
// > sub_100287940 @ 0x100287a13
// > GJAccountSettingsLayer::init @ 0x10028a2a7
// > sub_10028E090 @ 0x10028e142
// > UpdateAccountSettingsPopup::init @ 0x10028f44f
// > UploadActionPopup::init @ 0x100290357
// > FriendRequestPopup::init @ 0x1002912dc
// > GJMessagePopup::init @ 0x100293442
// > GJWriteMessagePopup::init @ 0x100295591
// > SetIDPopup::init @ 0x10029817f
// > sub_10029AA90 @ 0x10029ab94
// > sub_1002A4500 @ 0x1002a459f
// > GJPathsLayer::init @ 0x1002e8fb1
// > GJPathPage::init @ 0x1002e9ecc
// > GJPathRewardPopup::init @ 0x1002edcd7
// > SetGroupIDLayer::init @ 0x1002fcfe3
// > PurchaseItemPopup::init @ 0x1003131ca
// > SelectListIconLayer::init @ 0x10034ce84
// > ShareListLayer::init @ 0x10034d8b5
// > UploadListPopup::init @ 0x10034f4fc
// > WorldSelectLayer::setupWorlds @ 0x1003abb2e
// > DialogLayer::init @ 0x1003b08a6
// > PauseLayer::customSetup @ 0x1003bf82c
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0x1003e4563
// > SelectSFXSortLayer::init @ 0x1004353b4
// > AccountLoginLayer::init @ 0x10049117e
// > FLAlertLayer::init @ 0x100493f69
// > FLAlertLayer::init_1 @ 0x1004949bb
// > TutorialLayer::init @ 0x1004d7892
// > TutorialLayer::init @ 0x1004d78ad
// > GauntletSelectLayer::setupGauntlets @ 0x10059f680
// > TutorialPopup::init @ 0x1006a5d34
// > GJDropDownLayer::init @ 0x1006bb614
// > TableViewCell::TableViewCell @ 0x1007038a7
// > MoreSearchLayer::init @ 0x100709e0e
// > SecretRewardsLayer::init @ 0x10070ce0e
// > SecretRewardsLayer::init @ 0x10070d5a9
// > SecretRewardsLayer::init @ 0x10070e033
// > SecretRewardsLayer::init @ 0x10070e46b
// > SecretRewardsLayer::createSecondaryLayer @ 0x1007102ae
// > SecretRewardsLayer::generateChestItems @ 0x100710e40
// > ScrollingLayer::create @ 0x1007ff5ed
// > ScrollingLayer::init @ 0x1007ff6d3
// > MoreOptionsLayer::init @ 0x10087cacc
// > sub_10087F040 @ 0x10087f113
// > VideoOptionsLayer::init @ 0x1008801e6
// > MoreVideoOptionsLayer::init @ 0x100882189
// > sub_100883110 @ 0x1008831e3
// > sub_100885D80 @ 0x100885e53
// > DeathTrackerPopup::init @ 0x1008caba2
// > IDNameBrowserPopup::init @ 0x10090968e
// > MessageThreadsPage::init @ 0x10092826b
// > ThreadViewPopup::init @ 0x10092d80c
// > sub_10093B920 @ 0x10093b999
// > NewThreadPopup::init @ 0x100944319
// > sub_1009543D0 @ 0x10095448e
// > sub_10095C340 @ 0x10095c429
// > SelectFontLayer2::init @ 0x1009703eb
// > SFXFolderPickerPopup::init @ 0x1009718cb
// > sub_100975720 @ 0x1009757d4
//
// 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
//
_QWORD *cocos2d::CCLayer::create()
{
_QWORD *v0; // rbx
float v2[6]; // [rsp+8h] [rbp-18h] BYREF
v0 = operator new(0x198u);
cocos2d::CCNode::CCNode((__int64)v0);
*v0 = off_100B53A90;
v0[40] = off_100B53F20;
v0[41] = &off_100B53F90;
v0[42] = off_100B53FA8;
v0[43] = off_100B53FC8;
v0[44] = off_100B53FF0;
*((_DWORD *)v0 + 90) = 0;
*((_BYTE *)v0 + 364) = 0;
*((_OWORD *)v0 + 23) = 0;
*((_OWORD *)v0 + 24) = 0;
*((_DWORD *)v0 + 100) = 0;
*((_BYTE *)v0 + 287) = 1;
sub_100278250(v2, 0.5, 0.5);
(*(void (__fastcall **)(_QWORD *, float *))(*v0 + 296LL))(v0, v2);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);
return nullptr;
}
return v0;
}