//
// cocos2d::CCLayer::onEnter from 0x1004b0ed0 to 0x1004b0fc8 (248 bytes)
//
// 120 xrefs:
// > GJGameLoadingLayer::onEnter @ 0x1001657f5
// > cocos2d::extension::CCControl::onEnter @ 0x100351965
// > LevelListLayer::onEnter @ 0x10035efb9
// > DialogLayer::onEnter @ 0x1003c8325
// > LevelBrowserLayer::onEnter @ 0x100491c49
// > FLAlertLayer::onEnter @ 0x10049c715
// > TableView::onEnter @ 0x100622af5
// > ??> @ 0x1008b03b8
// > ??> @ 0x1008b0bc8
// > ??> @ 0x1008b1240
// > ??> @ 0x1008b17c8
// > ??> @ 0x1008b5580
// > ??> @ 0x1008b6a30
// > ??> @ 0x1008b7100
// > ??> @ 0x1008b8670
// > ??> @ 0x1008b8e08
// > ??> @ 0x1008c0450
// > ??> @ 0x1008c0c70
// > ??> @ 0x1008c1680
// > ??> @ 0x1008c2390
// > ??> @ 0x1008da630
// > ??> @ 0x1008e31a0
// > ??> @ 0x1008e3710
// > ??> @ 0x1008e3c80
// > ??> @ 0x1008e41f0
// > ??> @ 0x1008e4760
// > ??> @ 0x1008e4cd0
// > ??> @ 0x1008e5290
// > ??> @ 0x1008e5838
// > ??> @ 0x1008e5df8
// > ??> @ 0x1008e6368
// > ??> @ 0x1008e68d8
// > ??> @ 0x1008e6e88
// > ??> @ 0x1008e7418
// > ??> @ 0x1008e7988
// > ??> @ 0x1008e7ef8
// > ??> @ 0x1008e84d8
// > ??> @ 0x1008e8ab8
// > ??> @ 0x1008e9098
// > ??> @ 0x1008e9608
// > ??> @ 0x1008e9b78
// > ??> @ 0x1008ea0e8
// > ??> @ 0x1008eb308
// > ??> @ 0x1008efa38
// > ??> @ 0x1008f0000
// > ??> @ 0x1008f6068
// > ??> @ 0x1008f7308
// > ??> @ 0x1008f7b50
// > ??> @ 0x1008f9008
// > ??> @ 0x1008fd1f0
// > ??> @ 0x100906ad8
// > ??> @ 0x10090bf00
// > ??> @ 0x10090c488
// > ??> @ 0x10090ef10
// > ??> @ 0x10090f550
// > ??> @ 0x10090fac0
// > ??> @ 0x1009139a8
// > ??> @ 0x10091b928
// > ??> @ 0x10091d2a0
// > ??> @ 0x10091f920
// > ??> @ 0x10091ff28
// > ??> @ 0x1009220a8
// > ??> @ 0x100922868
// > ??> @ 0x1009267d0
// > ??> @ 0x100927470
// > ??> @ 0x1009279f8
// > ??> @ 0x1009294d8
// > ??> @ 0x10092dc70
// > ??> @ 0x10092f1b0
// > ??> @ 0x10092ff30
// > ??> @ 0x100932098
// > ??> @ 0x100933420
// > ??> @ 0x100935868
// > ??> @ 0x100935ee0
// > ??> @ 0x100936f58
// > ??> @ 0x1009374e8
// > ??> @ 0x100939b78
// > ??> @ 0x10093a9f8
// > ??> @ 0x10093b520
// > ??> @ 0x10093bb60
// > ??> @ 0x10093c148
// > ??> @ 0x100943aa0
// > ??> @ 0x1009458c8
// > ??> @ 0x100945ed8
// > ??> @ 0x1009464c0
// > ??> @ 0x100948810
// > ??> @ 0x100948ed0
// > ??> @ 0x100949440
// > ??> @ 0x100949aa0
// > ??> @ 0x10094a148
// > ??> @ 0x10094a7b0
// > ??> @ 0x10094e110
// > ??> @ 0x10094f108
// > ??> @ 0x100950aa8
// > ??> @ 0x100958220
// > ??> @ 0x100958988
// > ??> @ 0x10095e3c8
// > ??> @ 0x10095ead8
// > ??> @ 0x10095ff70
// > ??> @ 0x100963dc8
// > ??> @ 0x100964ca0
// > ??> @ 0x100972e78
// > ??> @ 0x100973c00
// > ??> @ 0x100976a18
// > ??> @ 0x100978408
// > ??> @ 0x100979310
// > ??> @ 0x1009798b0
// > ??> @ 0x100979e50
// > ??> @ 0x10097d078
// > ??> @ 0x10097d6b0
// > ??> @ 0x100983ad8
// > ??> @ 0x100984060
// > ??> @ 0x100985a80
// > ??> @ 0x100989d30
// > ??> @ 0x10098c2f0
// > ??> @ 0x10098c978
// > ??> @ 0x100990500
// > ??> @ 0x100990d10
// > ??> @ 0x100991358
// > ??> @ 0x100995698
//
// 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
//
void __fastcall cocos2d::CCLayer::onEnter(cocos2d::CCLayer *a1)
{
cocos2d::CCDirector *v1; // r14
cocos2d::CCMouseDispatcher *v2; // rax
cocos2d::CCKeypadDispatcher *v3; // rax
cocos2d::CCKeyboardDispatcher *v4; // rax
v1 = cocos2d::CCDirector::sharedDirector();
if ( a1->m_bTouchEnabled )
{
((void (__fastcall *)(cocos2d::CCLayer *))a1->registerWithTouchDispatcher)(a1);
cocos2d::CCNode::onEnter(a1);
if ( !a1->m_bAccelerometerEnabled )
{
LABEL_3:
if ( !a1->m_bKeypadEnabled )
goto LABEL_4;
goto LABEL_9;
}
}
else
{
cocos2d::CCNode::onEnter(a1);
if ( !a1->m_bAccelerometerEnabled )
goto LABEL_3;
}
((void (__fastcall *)(cocos2d::CCDirector *))v1->getAccelerometer)(v1);
if ( !a1->m_bKeypadEnabled )
{
LABEL_4:
if ( !a1->m_bKeyboardEnabled )
goto LABEL_5;
goto LABEL_10;
}
LABEL_9:
v3 = (cocos2d::CCKeypadDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getKeypadDispatcher)(v1);
cocos2d::CCKeypadDispatcher::addDelegate(v3, &a1->cocos2d::CCKeypadDelegate);
if ( !a1->m_bKeyboardEnabled )
{
LABEL_5:
if ( !a1->m_bMouseEnabled )
return;
goto LABEL_6;
}
LABEL_10:
v4 = (cocos2d::CCKeyboardDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getKeyboardDispatcher)(v1);
cocos2d::CCKeyboardDispatcher::addDelegate(v4, &a1->cocos2d::CCKeyboardDelegate);
if ( a1->m_bMouseEnabled )
{
LABEL_6:
v2 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getMouseDispatcher)(v1);
cocos2d::CCMouseDispatcher::addDelegate(v2, &a1->cocos2d::CCMouseDelegate);
}
}