//
// GameManager::didExitPlayscene from 0x71f0cc to 0x71f110 (68 bytes)
//
// 2 xrefs:
// > PlayLayer::onQuit @ 0x7036dc
// > ??> @ 0xc2a10
//
// 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 12:52:22 +0000
//
__int64 __fastcall GameManager::didExitPlayscene(__int64 this)
{
GameManager *v1; // x0
if ( *(_BYTE *)(this + 1028) )
{
*(_BYTE *)(this + 1028) = 0;
this = *(unsigned int *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 180);
if ( (int)this > 9 )
{
v1 = (GameManager *)GameManager::sharedState((GameManager *)this);
return GameManager::setGameVariable(v1, "0023", 0);
}
}
return this;
}