//
// AppDelegate::applicationDidEnterBackground from 0x100269484 to 0x1002694f0 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d2758
//
// 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 __fastcall AppDelegate::applicationDidEnterBackground(AppDelegate *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x0
GameManager *v4; // x0
AppDelegate::pauseSound(a1);
((void (__fastcall *)(AppDelegate *, _QWORD))a1->trySaveGame)(a1, 0);
v2 = cocos2d::CCDirector::sharedDirector();
((void (__fastcall *)(cocos2d::CCDirector *))v2->stopAnimation)(v2);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::pause(v3);
if ( a1->m_startupScriptFilename.m_data.m_short.sizex2 == 1 )
{
PlatformToolbox::onNativePause();
v4 = GameManager::sharedState();
GameManager::applicationDidEnterBackground(v4);
}
}