//
// cocos2d::CCLayer::onEnter from 0x180052390 to 0x18005249b (267 bytes)
//
// 8 xrefs:
// > ??> @ 0x1800f32f8
// > ??> @ 0x1800f37d8
// > ??> @ 0x1800f3d30
// > ??> @ 0x1800f42b8
// > ??> @ 0x1800f48b0
// > ??> @ 0x1800fd3e8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc268
//
// 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 11:21:45 +0000
//
void __fastcall cocos2d::CCLayer::onEnter(cocos2d::CCLayer *this)
{
struct cocos2d::CCDirector *v2; // rsi
struct cocos2d::CCAccelerometerDelegate *v3; // rbx
cocos2d::CCAccelerometer *v4; // rax
struct cocos2d::CCKeypadDelegate *v5; // rbx
cocos2d::CCKeypadDispatcher *v6; // rax
struct cocos2d::CCKeyboardDelegate *v7; // rbx
cocos2d::CCKeyboardDispatcher *v8; // rax
struct cocos2d::CCMouseDelegate *v9; // rbx
cocos2d::CCMouseDispatcher *v10; // rax
v2 = cocos2d::CCDirector::sharedDirector();
if ( *((_BYTE *)this + 360) )
(*(void (__fastcall **)(cocos2d::CCLayer *))(*(_QWORD *)this + 888LL))(this);
cocos2d::CCNode::onEnter(this);
if ( *((_BYTE *)this + 361) )
{
v3 = (cocos2d::CCLayer *)((char *)this + 328);
if ( !this )
v3 = nullptr;
v4 = (cocos2d::CCAccelerometer *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 208LL))(v2);
cocos2d::CCAccelerometer::setDelegate(v4, v3);
}
if ( *((_BYTE *)this + 362) )
{
v5 = (cocos2d::CCLayer *)((char *)this + 336);
if ( !this )
v5 = nullptr;
v6 = (cocos2d::CCKeypadDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 160LL))(v2);
cocos2d::CCKeypadDispatcher::addDelegate(v6, v5);
}
if ( *((_BYTE *)this + 363) )
{
v7 = (cocos2d::CCLayer *)((char *)this + 344);
if ( !this )
v7 = nullptr;
v8 = (cocos2d::CCKeyboardDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 176LL))(v2);
cocos2d::CCKeyboardDispatcher::addDelegate(v8, v7);
}
if ( *((_BYTE *)this + 364) )
{
v9 = (cocos2d::CCLayer *)((char *)this + 352);
if ( !this )
v9 = nullptr;
v10 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCMouseDispatcher::addDelegate(v10, v9);
}
}