//
// cocos2d::CCTransitionScene::setNewScene from 0x180058850 to 0x1800588b8 (104 bytes)
//
// 4 xrefs:
// > cocos2d::CCTransitionScene::finish @ 0x1800563cb
// > cocos2d::CCTransitionScene::setNewScene @ 0x18005885a
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bcb08
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:21:48 +0000
//
void __fastcall cocos2d::CCTransitionScene::setNewScene(cocos2d::CCTransitionScene *this, float a2)
{
struct cocos2d::CCDirector *v3; // rbx
__int64 v4; // rdx
cocos2d::CCNode::unschedule((__int64)this, (__int64)cocos2d::CCTransitionScene::setNewScene);
v3 = cocos2d::CCDirector::sharedDirector();
*((_BYTE *)this + 349) = *((_BYTE *)v3 + 288);
*((_BYTE *)v3 + 404) = 1;
cocos2d::CCDirector::replaceScene(v3, *((struct cocos2d::CCScene **)this + 41));
*((_BYTE *)v3 + 404) = 0;
LOBYTE(v4) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 42) + 336LL))(*((_QWORD *)this + 42), v4);
}