//
// sub_83CAC from 0x83cac to 0x83dc4 (280 bytes)
//
// 2 xrefs:
// > FMOD::SystemI::createClientProfile @ 0x69f94
// > sub_6C64C @ 0x6ce74
//
// 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:14:08 +0000
//
__int64 __fastcall sub_83CAC(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x0
unsigned int v5; // w21
__int64 v7; // [xsp+8h] [xbp-28h] BYREF
__int64 v8; // [xsp+18h] [xbp-18h] BYREF
v2 = sub_E2908(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
176,
"../../src/fmod_profile_remotefile.cpp",
123,
0,
0,
1);
if ( v2 )
{
v3 = v2;
sub_83DC4();
v8 = v3;
v4 = sub_E2908(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
65568,
"../../src/fmod_profile_remotefile.cpp",
131,
0,
0,
1);
*(_QWORD *)(v3 + 40) = v4;
if ( v4 )
{
v7 = v4;
*(_QWORD *)(v3 + 48) = 0;
*(_QWORD *)(v3 + 32) = a1;
*(_QWORD *)(v3 + 64) = 0;
*(_DWORD *)(v3 + 72) = 1;
*(_QWORD *)(v3 + 160) = 0;
*(_QWORD *)(v3 + 168) = 0;
v5 = FMOD_OS_CriticalSection_Create(v3 + 56, 0);
if ( !v5 )
{
v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 8LL))(a1, v3);
if ( !v5 )
{
v7 = 0;
v8 = 0;
}
}
sub_78B20(&v7);
}
else
{
v5 = 38;
}
sub_83E04(&v8);
}
else
{
return 38;
}
return v5;
}