//
// AppDelegate::pauseGame from 0x6e6ba0 to 0x6e6c08 (104 bytes)
//
// 3 xrefs:
// > AppDelegate::applicationWillResignActive @ 0x6e6c08
// > AppDelegate::applicationDidEnterBackground @ 0x6e6c34
// > ??> @ 0x84e50
//
// 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:51:43 +0000
//
__int64 __fastcall AppDelegate::pauseGame(AppDelegate *this)
{
__int64 result; // x0
__int64 v2; // x0
result = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(this) + 272);
if ( result )
{
result = *(unsigned int *)(result + 28);
if ( (_DWORD)result == 5 )
{
result = *(_QWORD *)(GameManager::sharedState((GameManager *)result) + 544);
if ( result )
{
result = *(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState((GameManager *)result) + 544) + 14637LL);
if ( !(_DWORD)result )
{
result = *(unsigned __int8 *)(AppDelegate::get((AppDelegate *)result) + 17);
if ( !(_DWORD)result )
{
v2 = GameManager::sharedState((GameManager *)result);
return PlayLayer::pauseGame(*(PlayLayer **)(v2 + 544), 1);
}
}
}
}
}
return result;
}