//
// GameManager::didExitPlayscene from 0x416e50 to 0x416e7e (46 bytes)
//
// 1 xrefs:
// > PlayLayer::onQuit @ 0x407b0a
//
// 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 11:47:41 +0000
//
int __fastcall GameManager::didExitPlayscene(int this)
{
GameManager *v1; // r0
if ( *(_BYTE *)(this + 816) )
{
*(_BYTE *)(this + 816) = 0;
this = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
if ( *(int *)(this + 144) > 9 )
{
v1 = (GameManager *)GameManager::sharedState((GameManager *)this);
return GameManager::setGameVariable(v1, "0023", nullptr);
}
}
return this;
}