//
// AppDelegate::applicationDidEnterBackground from 0x5be310 to 0x5be380 (112 bytes)
//
// 2 xrefs:
// > ??> @ 0x68aa8
// > ??> @ 0x1145588
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void AppDelegate::applicationDidEnterBackground(AppDelegate *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x0
GameManager *v4; // x0
AppDelegate::pauseSound(a1);
AppDelegate::pauseGame(a1);
a1->trySaveGame(a1, 0);
v2 = cocos2d::CCDirector::sharedDirector();
v2->stopAnimation(v2);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::pause(v3);
if ( a1->m_glViewSetup )
{
PlatformToolbox::onNativePause();
v4 = GameManager::sharedState();
GameManager::applicationDidEnterBackground(v4);
}
}