//
// GameManager::update from 0x1402869e0 to 0x140286b50 (368 bytes)
//
// 2 xrefs:
// > ??> @ 0x14075ddf8
// > ??> @ 0x14091d108
//
// 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:29:02 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GameManager::update(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rcx
cocos2d::CCApplication *v4; // rax
__int64 result; // rax
__int64 v6; // rdi
_QWORD *v7; // rax
_QWORD *v8; // rax
char v9; // bl
_QWORD *v10; // rax
_QWORD *v11; // rax
void *v12; // [rsp+50h] [rbp+8h]
v2 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v12 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = qword_14090BF60;
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 32LL))(v2);
if ( !*(_BYTE *)(a1 + 1132) )
{
v4 = (cocos2d::CCApplication *)cocos2d::CCApplication::sharedApplication(v3);
cocos2d::CCApplication::updateMouseControl(v4);
}
result = sub_14008B190();
v6 = result;
if ( *(_BYTE *)(result + 384) )
{
GameManager::syncPlatformAchievements(result);
if ( *(_BYTE *)(v6 + 388) )
{
*(_BYTE *)(v6 + 388) = 0;
if ( *(_BYTE *)(v6 + 384) )
{
v7 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*v7 + 200LL))(*v7) )
{
v8 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*v8 + 312LL))(*v8) )
{
if ( *(_BYTE *)(v6 + 387) )
{
v9 = *(_BYTE *)(v6 + 389);
v10 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);
(*(void (__fastcall **)(_QWORD, bool, _QWORD, _QWORD, _DWORD, _DWORD))(*(_QWORD *)*v10 + 264LL))(
*v10,
v9 != 0,
*(unsigned int *)(v6 + 392),
*(unsigned int *)(v6 + 396),
*(_DWORD *)(v6 + 400),
*(_DWORD *)(v6 + 404));
}
else
{
v11 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v11 + 280LL))(*v11);
}
}
}
}
}
return SteamAPI_RunCallbacks();
}
return result;
}