//
// cocos2d::CCDirector::popToSceneInStack from 0x7cab52 to 0x7cab6a (24 bytes)
//
// 3 xrefs:
// > GJScoreCell::onViewProfile @ 0x427fa0
// > ProfilePage::onMyLevels @ 0x5f6b7c
// > ProfilePage::onMyLists @ 0x5f6c88
//
// 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::popToSceneInStack(cocos2d::CCArray **this, cocos2d::CCScene *a2)
{
int result; // r0
result = cocos2d::CCDirector::levelForSceneInStack((int)this, (int)a2);
if ( result > 0 )
return cocos2d::CCDirector::popToSceneStackLevel(this, result);
return result;
}