//
// cocos2d::CCLayer::onEnter from 0x7d8496 to 0x7d8514 (126 bytes)
//
// 7 xrefs:
// > TableView::onEnter @ 0x3ca934
// > FLAlertLayer::onEnter @ 0x3cc412
// > LevelBrowserLayer::onEnter @ 0x4a940a
// > GJGameLoadingLayer::onEnter @ 0x58b6c4
// > DialogLayer::onEnter @ 0x609f08
// > LevelListLayer::onEnter @ 0x6d9e2c
// > cocos2d::extension::CCControl::onEnter @ 0x7a6d48
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:41 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCLayer::onEnter(cocos2d::CCLayer *this)
{
int v2; // r1
_DWORD *v3; // r2
int v4; // r5
cocos2d::CCObject *result; // r0
int v6; // r0
cocos2d::CCObject *v7; // r0
cocos2d::CCKeyboardDispatcher *v8; // r0
cocos2d::CCMouseDispatcher *v9; // r0
v4 = cocos2d::CCDirector::sharedDirector(this);
if ( *((_BYTE *)this + 284) )
(*(void (__fastcall **)(cocos2d::CCLayer *))(*(_DWORD *)this + 484))(this);
result = (cocos2d::CCObject *)cocos2d::CCNode::onEnter(this, v2, v3);
if ( *((_BYTE *)this + 285) )
{
v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 112))(v4);
result = (cocos2d::CCObject *)cocos2d::CCAccelerometer::setDelegate(v6, (char *)this + 268);
}
if ( *((_BYTE *)this + 286) )
{
v7 = (cocos2d::CCObject *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 88))(v4);
result = cocos2d::CCKeypadDispatcher::addDelegate(v7, (cocos2d::CCLayer *)((char *)this + 272));
}
if ( *((_BYTE *)this + 287) )
{
v8 = (cocos2d::CCKeyboardDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4);
result = (cocos2d::CCObject *)cocos2d::CCKeyboardDispatcher::addDelegate(
v8,
(cocos2d::CCLayer *)((char *)this + 276));
}
if ( *((_BYTE *)this + 288) )
{
v9 = (cocos2d::CCMouseDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 104))(v4);
return (cocos2d::CCObject *)cocos2d::CCMouseDispatcher::addDelegate(v9, (cocos2d::CCLayer *)((char *)this + 280));
}
return result;
}