//
// cocos2d::CCNode::onEnter from 0x5be408 to 0x5be47c (116 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::onEnter @ 0x5d0322
// > cocos2d::CCTransitionScene::onEnter @ 0x5d1e7c
// > cocos2d::CCClippingNode::onEnter @ 0x5d635a
//
// 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 cocos2d::CCNode::onEnter(cocos2d::CCNode *a1)
{
cocos2d::CCScriptEngineManager *v2; // r0
cocos2d::CCArray *m_pChildren; // r0
cocos2d::CCArray *v4; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r4
cocos2d::CCObject **v7; // r5
int v8; // r7
int v9; // t1
a1->m_bRunning = 1;
if ( a1->m_eScriptType )
{
v2 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, _DWORD))(**(_DWORD **)v2 + 36))(*(_DWORD *)v2, a1, 0);
}
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( cocos2d::CCArray::count(m_pChildren) )
{
v4 = a1->m_pChildren;
if ( v4 )
{
data = v4->data;
if ( data->num )
{
arr = data->arr;
v7 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v7 )
{
v9 = (int)*arr++;
v8 = v9;
if ( !v9 )
break;
if ( !(*(int (__fastcall **)(int))(*(_DWORD *)v8 + 332))(v8) )
(*(void (__fastcall **)(int))(*(_DWORD *)v8 + 344))(v8);
}
}
}
}
}
cocos2d::CCNode::resumeSchedulerAndActions(a1);
}