//
// cocos2d::CCDirector::popToSceneInStack from 0xd49d50 to 0xd49d8c (60 bytes)
//
// 4 xrefs:
// > GJScoreCell::onViewProfile @ 0x73b69c
// > ProfilePage::onMyLevels @ 0xa54f18
// > ProfilePage::onMyLists @ 0xa550a0
// > ??> @ 0x53ab8
//
// This function is hookable on this platform (idp: arm, 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 13:07:37 +0000
//
cocos2d::CCArray *__fastcall cocos2d::CCDirector::popToSceneInStack(cocos2d::CCArray **this, cocos2d::CCScene *a2)
{
cocos2d::CCArray *result; // x0
result = (cocos2d::CCArray *)cocos2d::CCDirector::levelForSceneInStack((__int64)this, (__int64)a2);
if ( (int)result > 0 )
return cocos2d::CCDirector::popToSceneStackLevel(this, (int)result);
return result;
}