//
// cocos2d::CCDirector::popScene from 0x1800c23c0 to 0x1800c2438 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c34e0
//
// 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
//
void __fastcall cocos2d::CCDirector::popScene(cocos2d::CCDirector *this)
{
int v2; // eax
cocos2d::CCArray *v3; // rcx
if ( *((_QWORD *)this + 12)
&& *((struct cocos2d::CCObject **)this + 12) == cocos2d::CCArray::lastObject(*((cocos2d::CCArray **)this + 37)) )
{
*((_QWORD *)this + 12) = 0;
}
cocos2d::CCArray::removeLastObject(*((cocos2d::CCArray **)this + 37), 1u);
v2 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 37));
if ( v2 )
{
v3 = *((cocos2d::CCArray **)this + 37);
*((_BYTE *)this + 288) = 1;
*((_QWORD *)this + 35) = cocos2d::CCArray::stringAtIndex(v3, v2 - 1);
}
else
{
*((_BYTE *)this + 184) = 1;
}
}