//
// cocos2d::CCTransitionScene::setNewScene from 0xaed348 to 0xaed3b8 (112 bytes)
//
// 4 xrefs:
// > ??> @ 0x2c5f8
// > cocos2d::CCTransitionScene::finish @ 0xaed318
// > cocos2d::CCTransitionScene::setNewScene @ 0xaed358
// > ??> @ 0x1229470
//
// 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::CCTransitionScene::setNewScene(cocos2d::CCTransitionScene *a1, float a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCScene *v4; // x1
cocos2d::CCDirector *v5; // x19
__int64 v6; // x2
cocos2d::SEL_SCHEDULE v7; // 0:x1.16
v7.adj = 0;
v7.ptr = (void (__cdecl *)(float))cocos2d::CCTransitionScene::setNewScene;
cocos2d::CCNode::unschedule(a1, v7);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCScene *)a1[1].__vftable;
v5 = v3;
BYTE1(a1[1].m_uReference) = v3->m_bSendCleanupToScene;
v3->m_bDontCallWillSwitch = 1;
cocos2d::CCDirector::replaceScene(v3, v4);
v6 = *(_QWORD *)&a1[1].m_uID;
v5->m_bDontCallWillSwitch = 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 328LL))(v6, 1);
}