//
// sub_6B070 from 0x6b070 to 0x6b104 (148 bytes)
//
// 2 xrefs:
// > sub_5215C @ 0x521d8
// > sub_522EC @ 0x52354
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:40:58 +0000
//
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;
}