//
// AppDelegate::applicationWillEnterForeground from 0x10073bb40 to 0x10073bc1e (222 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b9ad90
//
// 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 12:36:27 +0000
//
__int64 AppDelegate::applicationWillEnterForeground()
{
__int64 v0; // rax
__int64 v1; // rax
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rbx
__int64 v5; // rax
_OWORD *v6; // rbx
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rbx
__int64 v10; // rax
__int64 v11; // r14
__int64 v12; // rax
v0 = cocos2d::CCDirector::sharedDirector();
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 104LL))(v0);
v1 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::resume(v1);
v2 = cocos2d::CCDirector::sharedDirector();
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 112LL))(v2);
FMODAudioEngine::sharedEngine();
sub_1003CADF0();
PlatformToolbox::onNativeResume();
PlatformToolbox::onToggleKeyboard();
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
v5 = GameManager::sharedState();
cocos2d::CCActionManager::removeActionByTag(v4, 1, v5);
v6 = cocos2d::CCDelayTime::create((__m128)0LL);
v7 = GameManager::sharedState();
v8 = cocos2d::CCCallFunc::create(v7, GameManager::applicationWillEnterForeground, 0);
v9 = sub_10039EB60((__int64)v6, v8, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 1);
v10 = cocos2d::CCDirector::sharedDirector();
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10);
v12 = GameManager::sharedState();
return cocos2d::CCActionManager::addAction(v11, v9, v12, 0);
}