//
// AppDelegate::applicationDidEnterBackground from 0x6e6c24 to 0x6e6c94 (112 bytes)
//
// 2 xrefs:
// > ??> @ 0x8dcb8
// > ??> @ 0x14251f8
//
// 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::applicationDidEnterBackground(AppDelegate *this)
{
cocos2d::CCDirector *v2; // x0
__int64 v3; // x0
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x0
__int64 result; // x0
GameManager *v7; // x0
GameManager *v8; // x0
AppDelegate::pauseGame(this);
AppDelegate::pauseSound(this);
v2 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(AppDelegate *, _QWORD))(*(_QWORD *)this + 64LL))(this, 0);
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 104LL))(v3);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::pause(v5);
result = *((unsigned __int8 *)this + 32);
if ( *((_BYTE *)this + 32) )
{
v7 = (GameManager *)PlatformToolbox::onNativePause((PlatformToolbox *)result);
v8 = (GameManager *)GameManager::sharedState(v7);
return GameManager::applicationDidEnterBackground(v8);
}
return result;
}