//
// sub_76F20 from 0x76f20 to 0x76fc8 (168 bytes)
//
// 2 xrefs:
// > sub_6C64C @ 0x6caf4
// > sub_76B04 @ 0x76d58
//
// 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_76F20(__int64 a1, int a2, unsigned int a3)
{
__int64 result; // x0
__int64 v7; // x0
int v8; // w22
__int64 v9; // x0
__int64 v10; // [xsp+8h] [xbp-28h] BYREF
result = 28;
if ( a2 >= 1 && (a3 & 0x80000000) == 0 )
{
v10 = 0;
v7 = sub_6ADA0(a1, &v10, (int *)&v10 + 1);
v8 = *(_DWORD *)(a1 + 1748);
v9 = sub_77034(v7, 48, "../../src/fmod_systemi_driver.cpp", 488);
*(_QWORD *)(a1 + 67960) = v9;
if ( v9 )
return sub_D77D8(v9, (unsigned int)v10, (unsigned int)a2, (unsigned int)(4 * v8), a3);
else
return 38;
}
return result;
}