//
// sub_180077BE0 from 0x180077be0 to 0x180077c1d (61 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::setupWindow @ 0x180078c34
// > ??> @ 0x1801b4a28
//
// 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 sub_180077BE0(__int64 a1, int a2)
{
struct cocos2d::CCApplication *v2; // rax
struct cocos2d::CCApplication *v3; // rax
if ( qword_1801A8500 )
{
if ( a2 )
{
v2 = cocos2d::CCApplication::sharedApplication();
((void (__fastcall *)(struct cocos2d::CCApplication *))v2->applicationDidEnterBackground)(v2);
}
else
{
v3 = cocos2d::CCApplication::sharedApplication();
((void (__fastcall *)(struct cocos2d::CCApplication *))v3->applicationWillEnterForeground)(v3);
}
}
}