//
// cocos2d::CCDirector::popSceneWithTransition from 0x5c37b8 to 0x5c3820 (104 bytes)
//
// 1 xrefs:
// > GameManager::safePopScene @ 0x3234e2
//
// 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
//
bool cocos2d::CCDirector::popSceneWithTransition(cocos2d::CCDirector *a1, float a2, cocos2d::PopTransition a3)
{
int v6; // r2
bool v7; // r3
unsigned int v8; // r0
cocos2d::CCScene *v10; // r1
cocos2d::CCScene *v11; // r0
if ( a1->m_bIsTransitioning )
return 0;
cocos2d::CCDirector::checkSceneReference(a1);
cocos2d::CCArray::removeLastObject(a1->m_pobScenesStack, 1, v6, v7);
v8 = cocos2d::CCArray::count(a1->m_pobScenesStack);
if ( v8 )
{
a1->m_bSendCleanupToScene = 1;
v10 = (cocos2d::CCScene *)cocos2d::CCArray::objectAtIndex(a1->m_pobScenesStack, v8 - 1);
a1->m_pNextScene = v10;
if ( a3 == kPopTransitionMoveInT )
v11 = cocos2d::CCTransitionMoveInT::create(a2, v10);
else
v11 = cocos2d::CCTransitionFade::create(a2, v10);
a1->m_pNextScene = v11;
a1->m_bIsTransitioning = 1;
return 1;
}
else
{
cocos2d::CCDirector::end(a1);
return 1;
}
}