//
// cocos2d::CCNode::onExit from 0x1800042f0 to 0x1800043a8 (184 bytes)
//
// 51 xrefs:
// > cocos2d::CCLayer::onExit @ 0x1800507f0
// > cocos2d::CCTransitionCrossFade::onExit @ 0x18005682d
// > cocos2d::CCTransitionFade::onExit @ 0x180056889
// > cocos2d::CCTransitionScene::onExit @ 0x1800568f9
// > cocos2d::CCClippingNode::onExit @ 0x18005c3f1
// > ??> @ 0x1800e5698
// > ??> @ 0x1800e5cf8
// > ??> @ 0x1800e6068
// > ??> @ 0x1800e69c8
// > ??> @ 0x1800e6ed0
// > ??> @ 0x1800eb698
// > ??> @ 0x1800ebb38
// > ??> @ 0x1800ec010
// > ??> @ 0x1800ec538
// > ??> @ 0x1800ecb90
// > ??> @ 0x1800eeba0
// > ??> @ 0x1800f7518
// > ??> @ 0x1800f7940
// > ??> @ 0x1800f7d88
// > ??> @ 0x1800f81d0
// > ??> @ 0x1800f8618
// > ??> @ 0x1800f8a78
// > ??> @ 0x1800f8ed8
// > ??> @ 0x1800f96f0
// > ??> @ 0x1800f9b08
// > ??> @ 0x1800f9f18
// > ??> @ 0x1800fa348
// > ??> @ 0x1800fa9b8
// > ??> @ 0x1800fb028
// > ??> @ 0x1800fb698
// > ??> @ 0x1800fbd08
// > ??> @ 0x1800fc378
// > ??> @ 0x1800fc9e8
// > ??> @ 0x1800fd058
// > ??> @ 0x1800fd6c8
// > ??> @ 0x1800fdd38
// > ??> @ 0x1800fe3a8
// > ??> @ 0x1800fea18
// > ??> @ 0x1800ff260
// > ??> @ 0x1800ffd00
// > ??> @ 0x180103a48
// > ??> @ 0x180103f38
// > ??> @ 0x180105470
// > ??> @ 0x180105848
// > ??> @ 0x180105ca0
// > ??> @ 0x180106108
// > ??> @ 0x180106a40
// > ??> @ 0x180130ed4
// > ??> @ 0x180130f08
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad3fc
//
// 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 __fastcall cocos2d::CCNode::onExit(cocos2d::CCNode *this)
{
cocos2d::CCArray *m_pChildren; // rax
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCObject **arr; // rbx
cocos2d::CCObject **i; // rsi
struct cocos2d::CCScriptEngineManager *v7; // rax
if ( !this->m_bUnkBool2 )
{
cocos2d::CCScheduler::pauseTarget(this->m_pScheduler, this);
cocos2d::CCActionManager::pauseTarget(this->m_pActionManager, this);
}
m_pChildren = this->m_pChildren;
this->m_bRunning = 0;
if ( m_pChildren )
{
data = m_pChildren->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[9].canEncode)(*arr);
}
}
}
if ( this->m_eScriptType )
{
v7 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**(_QWORD **)v7 + 64LL))(*(_QWORD *)v7, this, 1);
}
}