//
// cocos2d::CCTransitionScene::setNewScene from 0x1001cdcdc to 0x1001cdd3c (96 bytes)
//
// 2 xrefs:
// > cocos2d::CCTransitionScene::finish @ 0x1001cdcb4
// > cocos2d::CCTransitionScene::setNewScene @ 0x1001cdcec
//
// 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::CCTransitionScene::setNewScene(cocos2d::CCTransitionScene *a1, float a2)
{
cocos2d::CCDirector *v3; // x20
cocos2d::SEL_SCHEDULE v4; // 0:x1.16
v4.ptr = (void (__cdecl *)(float))cocos2d::CCTransitionScene::setNewScene;
v4.adj = 0;
cocos2d::CCNode::unschedule(a1, v4);
v3 = cocos2d::CCDirector::sharedDirector();
BYTE1(a1[1].m_uReference) = v3->m_bSendCleanupToScene;
v3->m_bDontCallWillSwitch = 1;
cocos2d::CCDirector::replaceScene(v3, (cocos2d::CCScene *)a1[1].__vftable);
v3->m_bDontCallWillSwitch = 0;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1[1].m_uID + 328LL))(*(_QWORD *)&a1[1].m_uID, 1);
}