//
// AppDelegate::pauseGame from 0x3f6e4c to 0x3f6e94 (72 bytes)
//
// 2 xrefs:
// > AppDelegate::applicationWillResignActive @ 0x3f6e94
// > AppDelegate::applicationDidEnterBackground @ 0x3f6eac
//
// 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:17 +0000
//
int __fastcall AppDelegate::pauseGame(AppDelegate *this)
{
int result; // r0
int v2; // r3
int v3; // r0
result = cocos2d::CCDirector::sharedDirector(this);
v2 = *(_DWORD *)(result + 220);
if ( v2 )
{
if ( *(_DWORD *)(v2 + 24) == 5 )
{
result = GameManager::sharedState((GameManager *)result);
if ( *(_DWORD *)(result + 404) )
{
result = GameManager::sharedState((GameManager *)result);
if ( !*(_BYTE *)(*(_DWORD *)(result + 404) + 12097) )
{
result = AppDelegate::get((AppDelegate *)result);
if ( !*(_BYTE *)(result + 9) )
{
v3 = GameManager::sharedState((GameManager *)result);
return PlayLayer::pauseGame(*(PlayLayer **)(v3 + 404), 1);
}
}
}
}
}
return result;
}