//
// cocos2d::CCLayer::create from 0x1004b0640 to 0x1004b0735 (245 bytes)
//
// 59 xrefs:
// > GJBaseGameLayer::setupLayers @ 0x100111738
// > GJBaseGameLayer::setupLayers @ 0x100111776
// > GJBaseGameLayer::setupLayers @ 0x1001117ad
// > CustomSongLayer::init @ 0x100214cf7
// > RewardsPage::init @ 0x10021a28d
// > DailyLevelPage::init @ 0x1002303bf
// > SelectArtLayer::init @ 0x10026faa8
// > SelectSettingLayer::init @ 0x1002709c6
// > ShareLevelLayer::init @ 0x100280211
// > UploadPopup::init @ 0x100281b1c
// > SlideInLayer::init @ 0x10028e65b
// > SelectFontLayer::init @ 0x100299fab
// > GJOptionsLayer::layerForPage @ 0x10029cd93
// > GJAccountSettingsLayer::init @ 0x10029fae1
// > UpdateAccountSettingsPopup::init @ 0x1002a339f
// > UploadActionPopup::init @ 0x1002a41d7
// > FriendRequestPopup::init @ 0x1002a4fa1
// > GJMessagePopup::init @ 0x1002a6d42
// > GJWriteMessagePopup::init @ 0x1002a8e11
// > SetIDPopup::init @ 0x1002abbcf
// > SetTextPopup::init @ 0x1002aec09
// > GJPromoPopup::init @ 0x1002b651f
// > GJPathsLayer::init @ 0x1002fe441
// > GJPathPage::init @ 0x1002ff1ec
// > GJPathRewardPopup::init @ 0x100302ff7
// > SetGroupIDLayer::init @ 0x10031260f
// > PurchaseItemPopup::init @ 0x100327a7a
// > SelectListIconLayer::init @ 0x100361444
// > ShareListLayer::init @ 0x100361e31
// > UploadListPopup::init @ 0x10036394c
// > WorldSelectLayer::setupWorlds @ 0x1003c272e
// > DialogLayer::init @ 0x1003c73b4
// > cocos2d::extension::CCScrollView::initWithViewSize @ 0x1003f7383
// > SelectSFXSortLayer::init @ 0x100441224
// > AccountLoginLayer::init @ 0x100498e6e
// > FLAlertLayer::init @ 0x10049b541
// > FLAlertLayer::init_1 @ 0x10049bf3a
// > TutorialLayer::init @ 0x1004dc752
// > TutorialLayer::init @ 0x1004dc76d
// > GauntletSelectLayer::setupGauntlets @ 0x100572140
// > TutorialPopup::init @ 0x1005d43f4
// > GJDropDownLayer::init @ 0x1005e8122
// > KeybindingsLayer::layerForPage @ 0x10060afb3
// > TableViewCell::TableViewCell @ 0x100626f17
// > MoreSearchLayer::init @ 0x10062d0ae
// > SecretRewardsLayer::init @ 0x1006301de
// > SecretRewardsLayer::init @ 0x100630979
// > SecretRewardsLayer::init @ 0x100631403
// > SecretRewardsLayer::init @ 0x10063183b
// > SecretRewardsLayer::createSecondaryLayer @ 0x10063367e
// > SecretRewardsLayer::generateChestItems @ 0x100634210
// > ScrollingLayer::create @ 0x1007206cd
// > ScrollingLayer::init @ 0x1007207b3
// > MoreOptionsLayer::init @ 0x10079b87c
// > MoreOptionsLayer::layerForPage @ 0x10079ddb3
// > VideoOptionsLayer::init @ 0x10079f0f6
// > MoreVideoOptionsLayer::init @ 0x1007a1079
// > MoreVideoOptionsLayer::layerForPage @ 0x1007a20d3
// > ParentalOptionsLayer::layerForPage @ 0x1007a45b3
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCLayer *__fastcall cocos2d::CCLayer::create()
{
cocos2d::CCLayer *v0; // rbx
float v2[6]; // [rsp+8h] [rbp-18h] BYREF
v0 = (cocos2d::CCLayer *)operator new(0x198u);
cocos2d::CCNode::CCNode((__int64)v0);
v0->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)off_100948C20;
v0->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1009490A0;
v0->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100949110;
v0->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100949128;
v0->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100949148;
v0->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100949168;
*(_DWORD *)&v0->m_bTouchEnabled = 0;
v0->m_bMouseEnabled = 0;
*(_OWORD *)&v0->m_pScriptTouchHandlerEntry = 0;
*(_OWORD *)&v0->m_pScriptAccelerateHandlerEntry = 0;
v0->m_uPreviousPriority = 0;
v0->m_bIgnoreAnchorPointForPosition = 1;
sub_10028CBE0(v2, 0.5, 0.5);
((void (__fastcall *)(cocos2d::CCLayer *, float *))v0->setAnchorPoint)(v0, v2);
if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCLayer *))v0->init)(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
((void (__fastcall *)(cocos2d::CCLayer *))v0->~CCLayer_0)(v0);
return nullptr;
}
return v0;
}