//
// cocos2d::CCDirector::pushScene from 0x1800c27e0 to 0x1800c289e (190 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::runWithScene @ 0x1800c2b59
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3534
//
// 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:25 +0000
//
char __fastcall cocos2d::CCDirector::pushScene(cocos2d::CCDirector *this, struct cocos2d::CCScene *a2)
{
__int64 v5; // rax
bool v6; // si
__int64 v7; // rdi
void (__fastcall ***v8)(_QWORD, _QWORD); // rcx
void (__fastcall ***v9)(_QWORD); // rcx
if ( *((_BYTE *)this + 176) )
return 0;
*((_BYTE *)this + 288) = 0;
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 37), a2);
*((_QWORD *)this + 35) = a2;
v5 = _RTDynamicCast(
a2,
0,
&cocos2d::CCScene `RTTI Type Descriptor',
&cocos2d::CCTransitionScene `RTTI Type Descriptor',
0);
v6 = v5 != 0;
if ( !v5 )
{
v7 = *((_QWORD *)this + 35);
if ( !*((_BYTE *)this + 404) )
{
v8 = *((void (__fastcall ****)(_QWORD, _QWORD))this + 45);
if ( v8 )
(**v8)(v8, *((_QWORD *)this + 35));
v9 = *(void (__fastcall ****)(_QWORD))(v7 + 320);
if ( v9 )
(**v9)(v9);
}
}
*((_BYTE *)this + 176) = v6;
return 1;
}