//
// sub_789D8 from 0x789d8 to 0x78a08 (48 bytes)
//
// 2 xrefs:
// > FMOD::SystemI::createDiskFile @ 0x7879c
// > sub_78B30 @ 0x78d4c
//
// 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 12:14:03 +0000
//
__int64 __fastcall sub_789D8(__int64 a1, __int64 a2)
{
unsigned int v2; // w8
if ( !a2 )
return *(unsigned int *)(a1 + 69980);
v2 = *(_DWORD *)(a2 + 176);
if ( v2 == -1 )
return 0;
if ( !v2 )
return *(unsigned int *)(a1 + 69980);
return v2;
}