//
// AppDelegate::applicationDidEnterBackground from 0x3f6ea8 to 0x3f6ee8 (64 bytes)
//
// 0 xrefs:
//
// 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
//
PlatformToolbox *__fastcall AppDelegate::applicationDidEnterBackground(AppDelegate *this)
{
cocos2d::CCDirector *v2; // r0
int v3; // r0
cocos2d::CCDirector *v4; // r0
cocos2d::CCDirector *v5; // r0
PlatformToolbox *result; // r0
int v7; // r1
int v8; // r2
GameManager *v9; // r0
GameManager *v10; // r0
AppDelegate::pauseGame(this);
AppDelegate::pauseSound(this);
v2 = (cocos2d::CCDirector *)(*(int (__fastcall **)(AppDelegate *, _DWORD))(*(_DWORD *)this + 32))(this, 0);
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 52))(v3);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
result = (PlatformToolbox *)cocos2d::CCDirector::pause(v5);
if ( *((_BYTE *)this + 16) )
{
v9 = (GameManager *)PlatformToolbox::onNativePause(result, v7, v8, *((unsigned __int8 *)this + 16));
v10 = (GameManager *)GameManager::sharedState(v9);
return (PlatformToolbox *)GameManager::applicationDidEnterBackground(v10);
}
return result;
}