//
// cocos2d::CCDirector::popSceneWithTransition from 0x7caa68 to 0x7caad0 (104 bytes)
//
// 1 xrefs:
// > GameManager::safePopScene @ 0x414eba
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:30 +0000
//
int __fastcall cocos2d::CCDirector::popSceneWithTransition(int a1, cocos2d::CCTransitionMoveInT *a2, int a3)
{
int v6; // r0
int v8; // r1
cocos2d::CCScene *v9; // r2
int v10; // r0
if ( *(_BYTE *)(a1 + 140) )
return 0;
cocos2d::CCDirector::checkSceneReference(a1);
cocos2d::CCArray::removeLastObject(*(cocos2d::CCArray **)(a1 + 232), 1);
v6 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 232));
if ( v6 )
{
*(_BYTE *)(a1 + 228) = 1;
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 232), v6 - 1);
*(_DWORD *)(a1 + 224) = v8;
if ( a3 == 1 )
v10 = cocos2d::CCTransitionMoveInT::create(a2, *(float *)&v8, v9);
else
v10 = cocos2d::CCTransitionFade::create(a2, *(float *)&v8, v9);
*(_DWORD *)(a1 + 224) = v10;
*(_BYTE *)(a1 + 140) = 1;
return 1;
}
else
{
cocos2d::CCDirector::end(a1);
return 1;
}
}