//
// cocos2d::CCNode::onEnter from 0x7c4e48 to 0x7c4ebc (116 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::onEnter @ 0x7d84b2
// > cocos2d::CCTransitionScene::onEnter @ 0x7da00c
// > cocos2d::CCClippingNode::onEnter @ 0x7de5a2
//
// 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:24 +0000
//
int __fastcall cocos2d::CCNode::onEnter(cocos2d::CCNode *this, int a2, _DWORD *a3)
{
_DWORD *v4; // r0
cocos2d::CCArray *v5; // r0
int v6; // r3
int *v7; // r4
int *v8; // r5
int v10; // r7
int v11; // t1
*((_BYTE *)this + 224) = 1;
if ( *((_DWORD *)this + 63) )
{
v4 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager(this);
(*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, _DWORD))(*(_DWORD *)*v4 + 36))(*v4, this, 0);
}
v5 = *((cocos2d::CCArray **)this + 48);
if ( v5 )
{
if ( cocos2d::CCArray::count(v5) )
{
v6 = *((_DWORD *)this + 48);
if ( v6 )
{
a3 = *(_DWORD **)(v6 + 52);
if ( *a3 )
{
v7 = (int *)a3[3];
v8 = &v7[*a3 - 1];
while ( v7 <= v8 )
{
v11 = *v7++;
v10 = v11;
if ( !v11 )
break;
if ( !(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 340))(v10) )
(*(void (__fastcall **)(int))(*(_DWORD *)v10 + 352))(v10);
}
}
}
}
}
return cocos2d::CCNode::resumeSchedulerAndActions((int)this, a2, (int)a3);
}