//
// AppDelegate::applicationDidEnterBackground from 0x307aea to 0x307b2a (64 bytes)
//
// 0 xrefs:
//
// 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; // r0
cocos2d::CCDirector *v3; // r0
GameManager *v4; // r0
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);
}
}