//
// AppDelegate::applicationWillEnterForeground from 0x140098810 to 0x1400989e6 (470 bytes)
//
// 2 xrefs:
// > ??> @ 0x140719fa0
// > ??> @ 0x140912d4c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:26:03 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall AppDelegate::applicationWillEnterForeground(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rcx
cocos2d::CCDirector *v3; // rax
__int64 v4; // rcx
__int64 v5; // rax
_BYTE *v6; // rcx
__int64 v7; // rcx
__int64 v8; // rdi
struct cocos2d::CCObject *v9; // rbx
cocos2d::CCActionManager *v10; // rax
struct cocos2d::CCFiniteTimeAction *v11; // rbx
__int64 v12; // rcx
__int64 v13; // rax
struct cocos2d::CCAction *v14; // rsi
__int64 v15; // rcx
__int64 v16; // rdi
struct cocos2d::CCNode *v17; // rbx
cocos2d::CCActionManager *v18; // rax
void *v19; // [rsp+38h] [rbp+10h]
void *v20; // [rsp+38h] [rbp+10h]
void *v21; // [rsp+38h] [rbp+10h]
void *v22; // [rsp+38h] [rbp+10h]
v1 = cocos2d::CCDirector::sharedDirector(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 88LL))(v1);
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::resume(v3);
v5 = cocos2d::CCDirector::sharedDirector(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 96LL))(v5);
v6 = (_BYTE *)qword_14090BF60;
if ( !qword_14090BF60 )
{
v19 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v19);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v6 = (_BYTE *)qword_14090BF60;
}
FMODAudioEngine::start(v6);
v8 = cocos2d::CCDirector::sharedDirector(v7);
v9 = (struct cocos2d::CCObject *)qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v20 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v20);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v9 = (struct cocos2d::CCObject *)qword_14090BFD0;
}
v10 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 128LL))(v8);
cocos2d::CCActionManager::removeActionByTag(v10, 1u, v9);
v11 = cocos2d::CCDelayTime::create(0.0);
v12 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v21 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v21);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v12 = qword_14090BFD0;
}
v13 = cocos2d::CCCallFunc::create(v12, GameManager::applicationWillEnterForeground);
v14 = cocos2d::CCSequence::create(v11, v13, 0);
(*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v14 + 64LL))(v14, 1);
v16 = cocos2d::CCDirector::sharedDirector(v15);
v17 = (struct cocos2d::CCNode *)qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v22 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v22);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v17 = (struct cocos2d::CCNode *)qword_14090BFD0;
}
v18 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 128LL))(v16);
cocos2d::CCActionManager::addAction(v18, v14, v17, 0);
}