//
// cocos2d::CCDirector::popSceneWithTransition from 0xad6f50 to 0xad7020 (208 bytes)
//
// 2 xrefs:
// > GameManager::safePopScene @ 0x5ee3ec
// > ??> @ 0x80508
//
// 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 v7; // w1
cocos2d::CCArray *m_pobScenesStack; // x0
cocos2d::CCScene *v9; // x0
cocos2d::CCScene *v10; // x0
if ( a1->m_bIsTransitioning )
return 0;
cocos2d::CCDirector::checkSceneReference(a1);
cocos2d::CCArray::removeLastObject(a1->m_pobScenesStack, 1u);
v7 = cocos2d::CCArray::count(a1->m_pobScenesStack);
if ( v7 )
{
m_pobScenesStack = a1->m_pobScenesStack;
a1->m_bSendCleanupToScene = 1;
v9 = (cocos2d::CCScene *)cocos2d::CCArray::objectAtIndex(m_pobScenesStack, v7 - 1);
a1->m_pNextScene = v9;
if ( a3 == kPopTransitionMoveInT )
v10 = cocos2d::CCTransitionMoveInT::create(a2, v9);
else
v10 = cocos2d::CCTransitionFade::create(a2, v9);
a1->m_pNextScene = v10;
a1->m_bIsTransitioning = 1;
return 1;
}
else
{
cocos2d::CCDirector::end(a1);
return 1;
}
}