//
// cocos2d::CCDirector::setNextScene from 0x1800c2f40 to 0x1800c3044 (260 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::drawScene @ 0x1800c1c41
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c35f4
//
// 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:22:26 +0000
//
void __fastcall cocos2d::CCDirector::setNextScene(cocos2d::CCDirector *this)
{
__int64 v2; // rdi
__int64 v3; // rcx
__int64 v4; // rcx
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
__int64 v7; // rcx
v2 = _RTDynamicCast(
*((_QWORD *)this + 34),
0,
&cocos2d::CCScene `RTTI Type Descriptor',
&cocos2d::CCTransitionScene `RTTI Type Descriptor',
0);
if ( !_RTDynamicCast(
*((_QWORD *)this + 35),
0,
&cocos2d::CCScene `RTTI Type Descriptor',
&cocos2d::CCTransitionScene `RTTI Type Descriptor',
0) )
{
v3 = *((_QWORD *)this + 34);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 720LL))(v3);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 34) + 712LL))(*((_QWORD *)this + 34));
}
if ( *((_BYTE *)this + 288) )
{
v4 = *((_QWORD *)this + 34);
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 728LL))(v4);
}
}
v5 = *((cocos2d::CCObject **)this + 34);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)this + 35);
*((_QWORD *)this + 34) = v6;
cocos2d::CCObject::retain(v6);
*((_QWORD *)this + 35) = 0;
if ( !v2 )
{
v7 = *((_QWORD *)this + 34);
if ( v7 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 696LL))(v7);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 34) + 704LL))(*((_QWORD *)this + 34));
}
}
}