//
// sub_789D8 from 0x789d8 to 0x78a08 (48 bytes)
//
// 2 xrefs:
// > FMOD::SystemI::createDiskFile @ 0x7879c
// > sub_78B30 @ 0x78d4c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}