//
// cocos2d::CCNode::onExit from 0x7c4ee0 to 0x7c4f3a (90 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::onExit @ 0x7d858e
// > cocos2d::CCTransitionScene::onExit @ 0x7db218
// > cocos2d::CCClippingNode::onExit @ 0x7de5fe
//
// 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
//
cocos2d::CCScriptEngineManager *__fastcall cocos2d::CCNode::onExit(cocos2d::CCNode *this, int a2, int a3)
{
cocos2d::CCScriptEngineManager *result; // r0
int v5; // r3
_DWORD *v6; // r0
_DWORD *v7; // r2
cocos2d::CCScriptEngineManager **v8; // r5
cocos2d::CCScriptEngineManager **v9; // r4
cocos2d::CCScriptEngineManager *v10; // t1
result = (cocos2d::CCScriptEngineManager *)cocos2d::CCNode::pauseSchedulerAndActions((int)this, a2, a3);
*((_BYTE *)this + 224) = 0;
v5 = *((_DWORD *)this + 48);
if ( v5 )
{
v7 = *(_DWORD **)(v5 + 52);
if ( *v7 )
{
v8 = (cocos2d::CCScriptEngineManager **)v7[3];
v9 = &v8[*v7] + 0x3FFFFFFF;
while ( v8 <= v9 )
{
v10 = *v8++;
result = v10;
if ( !v10 )
break;
result = (cocos2d::CCScriptEngineManager *)(*(int (__fastcall **)(cocos2d::CCScriptEngineManager *))(*(_DWORD *)result + 360))(result);
}
}
}
if ( *((_DWORD *)this + 63) )
{
v6 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager(result);
return (cocos2d::CCScriptEngineManager *)(*(int (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(*(_DWORD *)*v6 + 36))(
*v6,
this,
1);
}
return result;
}