//
// sub_6B070 from 0x6b070 to 0x6b104 (148 bytes)
//
// 2 xrefs:
// > sub_5215C @ 0x521d8
// > sub_522EC @ 0x52354
//
// 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
//
int __fastcall sub_6B070(int a1, int a2, int a3)
{
int result; // r0
*(_DWORD *)(a1 + 12) = a3;
*(_DWORD *)(a1 + 16) = a2;
result = sub_6AC1C(a1 + 1140, 0x20000, 1);
if ( !result )
{
result = sub_6AC1C(a1 + 1188, 0x20000, 4);
if ( !result )
{
result = j_FMOD_OS_CriticalSection_Create(a1 + 20, 0);
if ( !result )
{
result = sub_6B114(a1, 0, 0, -1);
if ( !result )
{
result = sub_BE65C(a1 + 24, "FMOD profiler thread (recv)", sub_6B1AE, a1, 7, 0, 0, 0, 0);
if ( !result )
return sub_BE65C(a1 + 324, "FMOD profiler thread (send)", sub_6B1C6, a1, 7, 0, 0, 0, 0);
}
}
}
}
return result;
}