//
// sub_642B8 from 0x642b8 to 0x642c4 (12 bytes)
//
// 2 xrefs:
// > sub_63864 @ 0x63908
// > sub_63AAC @ 0x63b38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:13:54 +0000
//
__int64 __fastcall sub_642B8(__int64 a1, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x20
__int64 result; // x0
*(_QWORD *)(v3 + 24) = v2;
*(_QWORD *)(v3 + 32) = a2;
result = sub_828B4(v3 + 1240, 0x20000, 1);
if ( !(_DWORD)result )
{
result = sub_828B4(v3 + 1312, 0x20000, 4);
if ( !(_DWORD)result )
{
result = FMOD_OS_CriticalSection_Create(v3 + 40, 0);
if ( !(_DWORD)result )
{
result = sub_82FC0(v3, 0, 0, 0xFFFFFFFFLL);
if ( !(_DWORD)result )
{
result = sub_839CC(v3 + 48, "FMOD profiler thread (recv)", sub_830B0);
if ( !(_DWORD)result )
return sub_839CC(v3 + 384, "FMOD profiler thread (send)", sub_830DC);
}
}
}
}
return result;
}