//
// AppDelegate::pauseGame from 0x1003070f4 to 0x10030715c (104 bytes)
//
// 1 xrefs:
// > AppDelegate::applicationWillResignActive @ 0x1003070f0
//
// 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 11:03:08 +0000
//
_BYTE *AppDelegate::pauseGame()
{
_BYTE *result; // x0
__int64 v1; // x8
__int64 v2; // x1
__int64 v3; // x0
result = (_BYTE *)cocos2d::CCDirector::sharedDirector();
v1 = *((_QWORD *)result + 34);
if ( v1 )
{
if ( *(_DWORD *)(v1 + 28) == 5 )
{
result = (_BYTE *)GameManager::sharedState(result);
if ( *((_QWORD *)result + 68) )
{
result = (_BYTE *)GameManager::sharedState(result);
if ( (*(_BYTE *)(*((_QWORD *)result + 68) + 14637LL) & 1) == 0 )
{
result = (_BYTE *)cocos2d::CCApplication::sharedApplication((__int64)result, v2);
if ( (result[17] & 1) == 0 )
{
v3 = GameManager::sharedState(result);
return PlayLayer::pauseGame(*(_BYTE **)(v3 + 544), 1);
}
}
}
}
}
return result;
}