//
// FMOD::System::update from 0x1005f0498 to 0x1005f055c (196 bytes)
//
// 8 xrefs:
// > PlayLayer::resume @ 0x10014c6ac
// > FMODAudioEngine::start @ 0x1001b55e8
// > sub_1001B56B0 @ 0x1001b5794
// > FMODAudioEngine::update @ 0x1001b5b54
// > GJBaseGameLayer::pauseAudio @ 0x10029a5e0
// > GJBaseGameLayer::resumeAudio @ 0x10029a608
// > GJBaseGameLayer::resetAudio @ 0x10029a628
// > sub_100578CBC @ 0x100578cc0
//
// This function is hookable on this platform (idp: arm, 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:09:48 +0000
//
__int64 __fastcall FMOD::System::update(__int64 a1)
{
__int64 v2; // x19
__int64 v4; // [xsp+8h] [xbp-138h] BYREF
__int64 v5; // [xsp+10h] [xbp-130h] BYREF
_BYTE v6[256]; // [xsp+18h] [xbp-128h] BYREF
v4 = 0;
v2 = sub_1005F45A8(a1, &v5, &v4);
if ( (_DWORD)v2 || (v2 = sub_1005F7DC4(v5), (_DWORD)v2) )
{
if ( (*((_BYTE *)off_1009DA5E8 + 32) & 0x80) != 0 )
{
v6[0] = 0;
sub_1005AAA04(v2, 1, a1, (__int64)"System::update", (__int64)v6);
}
}
if ( v4 )
sub_100568EE8(v4);
return v2;
}