//
// AppDelegate::applicationDidEnterBackground from 0x140082df0 to 0x140082e68 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x14053c540
// > ??> @ 0x1406c6a68
//
// 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
//
// Hidden C++ exception states: #wind=1
void AppDelegate::applicationDidEnterBackground(AppDelegate *a1)
{
AppDelegate *v2; // rcx
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
void *v7; // rax
AppDelegate::pauseSound(a1);
AppDelegate::pauseGame(v2);
v4 = cocos2d::CCDirector::sharedDirector(v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::pause(v6);
if ( a1[2].m_resourceRootPath.m_data.m_smallStorage._Elems[0] )
{
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
}
}