//
// sub_DF9C8 from 0xdf9c8 to 0xdfaa0 (216 bytes)
//
// 1 xrefs:
// > sub_DFB10 @ 0xdfbc4
//
// 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_DF9C8(__int64 a1, int a2, char a3, __int64 a4)
{
__int64 result; // x0
__int64 v8; // x7
void *v9; // x8
__int64 v10; // x9
*(_DWORD *)(a1 + 416) = a2;
*(_BYTE *)(a1 + 420) = a3 & 1;
result = FMOD_OS_CriticalSection_Create(a1 + 408, 0);
if ( !(_DWORD)result )
{
v8 = (a3 & 1) != 0 ? a4 : 0LL;
result = sub_E42FC(a1 + 24, "FMOD file thread", sub_DF5EC, a1, 3, 0, 10, v8, 1);
if ( !(_DWORD)result )
{
v9 = off_114000;
if ( !*(_BYTE *)(a1 + 420) )
*(int **)((char *)off_50 + (_QWORD)off_114000) = *(int **)(a1 + 296);
*(_BYTE *)(a1 + 360) = 1;
v10 = *(_QWORD *)((char *)&word_38 + (_QWORD)v9);
*(_QWORD *)a1 = v10;
*(_QWORD *)(a1 + 8) = (char *)&word_38 + (_QWORD)v9;
*(_QWORD *)(v10 + 8) = a1;
**(_QWORD **)(a1 + 8) = a1;
return 0;
}
}
return result;
}