//
// cocos2d::CCLayer::onEnter from 0xd5e134 to 0xd5e210 (220 bytes)
//
// 130 xrefs:
// > TableView::onEnter @ 0x6983a8
// > FLAlertLayer::onEnter @ 0x69adf0
// > LevelBrowserLayer::onEnter @ 0x7fd020
// > GJGameLoadingLayer::onEnter @ 0x998b50
// > DialogLayer::onEnter @ 0xa7187c
// > LevelListLayer::onEnter @ 0xbb0ff8
// > cocos2d::extension::CCControl::onEnter @ 0xd0c158
// > ??> @ 0x100d08
// > ??> @ 0x1411b20
// > ??> @ 0x1412180
// > ??> @ 0x1412710
// > ??> @ 0x1412d30
// > ??> @ 0x14132f0
// > ??> @ 0x1414520
// > ??> @ 0x1415730
// > ??> @ 0x14163c0
// > ??> @ 0x1417ff0
// > ??> @ 0x14185c0
// > ??> @ 0x14192f0
// > ??> @ 0x141ac70
// > ??> @ 0x141d3b0
// > ??> @ 0x141e020
// > ??> @ 0x141e6b0
// > ??> @ 0x141ec60
// > ??> @ 0x141f700
// > ??> @ 0x141fd40
// > ??> @ 0x14225a0
// > ??> @ 0x1422ee0
// > ??> @ 0x1424e90
// > ??> @ 0x1425600
// > ??> @ 0x1426e20
// > ??> @ 0x1427490
// > ??> @ 0x1427ab0
// > ??> @ 0x1428700
// > ??> @ 0x142a060
// > ??> @ 0x142ace0
// > ??> @ 0x142b340
// > ??> @ 0x142b8d0
// > ??> @ 0x142be60
// > ??> @ 0x142c3f0
// > ??> @ 0x142c980
// > ??> @ 0x142cf10
// > ??> @ 0x142d4f0
// > ??> @ 0x142db30
// > ??> @ 0x142e110
// > ??> @ 0x142e6a0
// > ??> @ 0x142ec30
// > ??> @ 0x142f200
// > ??> @ 0x142f7b0
// > ??> @ 0x142fd40
// > ??> @ 0x14302d0
// > ??> @ 0x1430860
// > ??> @ 0x1430df0
// > ??> @ 0x1431880
// > ??> @ 0x1431e30
// > ??> @ 0x1432430
// > ??> @ 0x14329c0
// > ??> @ 0x1432f50
// > ??> @ 0x1435c60
// > ??> @ 0x14364d0
// > ??> @ 0x1437030
// > ??> @ 0x1437e20
// > ??> @ 0x14395c0
// > ??> @ 0x1439c10
// > ??> @ 0x143a870
// > ??> @ 0x143bf10
// > ??> @ 0x143c770
// > ??> @ 0x1441b50
// > ??> @ 0x14599c0
// > ??> @ 0x145a140
// > ??> @ 0x145a9b0
// > ??> @ 0x145cb50
// > ??> @ 0x145d140
// > ??> @ 0x145d710
// > ??> @ 0x145e730
// > ??> @ 0x145f040
// > ??> @ 0x145f5d0
// > ??> @ 0x1462970
// > ??> @ 0x1463550
// > ??> @ 0x1463c90
// > ??> @ 0x1464b70
// > ??> @ 0x1465a80
// > ??> @ 0x1468660
// > ??> @ 0x1468c10
// > ??> @ 0x14691c0
// > ??> @ 0x14697a0
// > ??> @ 0x146a330
// > ??> @ 0x1472c20
// > ??> @ 0x14733e0
// > ??> @ 0x1475530
// > ??> @ 0x1476050
// > ??> @ 0x147c520
// > ??> @ 0x14849f0
// > ??> @ 0x148ec40
// > ??> @ 0x1491570
// > ??> @ 0x1493520
// > ??> @ 0x14942d0
// > ??> @ 0x1496200
// > ??> @ 0x1499af0
// > ??> @ 0x149a120
// > ??> @ 0x149a6b0
// > ??> @ 0x149b050
// > ??> @ 0x14a30e0
// > ??> @ 0x14ab030
// > ??> @ 0x14af2c0
// > ??> @ 0x14b0840
// > ??> @ 0x14b0fd0
// > ??> @ 0x14b6e50
// > ??> @ 0x14c23d0
// > ??> @ 0x14c2980
// > ??> @ 0x14c33d0
// > ??> @ 0x14d9120
// > ??> @ 0x14dfd00
// > ??> @ 0x14e0360
// > ??> @ 0x14e08f0
// > ??> @ 0x14e1c20
// > ??> @ 0x14e21b0
// > ??> @ 0x14e2740
// > ??> @ 0x14e2cf0
// > ??> @ 0x14e4480
// > ??> @ 0x14fe420
// > ??> @ 0x15079f0
// > ??> @ 0x150ecd0
// > ??> @ 0x150f360
// > ??> @ 0x15193c0
// > ??> @ 0x1519950
// > ??> @ 0x1519fd0
// > ??> @ 0x151a6a0
// > ??> @ 0x151ade0
// > ??> @ 0x1524200
//
// 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 13:07:49 +0000
//
__int64 __fastcall cocos2d::CCLayer::onEnter(cocos2d::CCLayer *this)
{
__int64 v2; // x20
__int64 result; // x0
cocos2d::CCMouseDispatcher *v4; // x0
cocos2d::CCKeyboardDispatcher *v5; // x0
cocos2d::CCObject *v6; // x0
__int64 v7; // x0
v2 = cocos2d::CCDirector::sharedDirector(this);
if ( *((_BYTE *)this + 360) )
(*(void (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)this + 968LL))(this);
cocos2d::CCNode::onEnter(this);
if ( *((_BYTE *)this + 361) )
{
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 224LL))(v2);
cocos2d::CCAccelerometer::setDelegate(v7, (char *)this + 328);
}
if ( *((_BYTE *)this + 362) )
{
v6 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 176LL))(v2);
cocos2d::CCKeypadDispatcher::addDelegate(v6, (cocos2d::CCLayer *)((char *)this + 336));
}
if ( *((_BYTE *)this + 363) )
{
v5 = (cocos2d::CCKeyboardDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCKeyboardDispatcher::addDelegate(v5, (cocos2d::CCLayer *)((char *)this + 344));
}
result = *((unsigned __int8 *)this + 364);
if ( *((_BYTE *)this + 364) )
{
v4 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 208LL))(v2);
return cocos2d::CCMouseDispatcher::addDelegate(v4, (cocos2d::CCLayer *)((char *)this + 352));
}
return result;
}