//
// sub_1005F7CC4 from 0x1005f7cc4 to 0x1005f7dc4 (256 bytes)
//
// 2 xrefs:
// > FMOD::System::createSoundGroup @ 0x1005f22d0
// > sub_1005F7390 @ 0x1005f789c
//
// 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 11:09:52 +0000
//
__int64 __fastcall sub_1005F7CC4(__int64 a1, char *a2, _QWORD *a3)
{
pthread_mutex_t *v6; // x19
_QWORD *v7; // x0
_QWORD *v8; // x21
__int64 v9; // x9
_BYTE *v10; // x0
if ( !a3 )
return 31;
v6 = *((pthread_mutex_t **)off_1009DA5E8 + 38);
v7 = sub_1005D7660(
*((__int64 **)off_1009DA5E8 + 54),
128,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_systemi.cpp",
4469,
0);
if ( !v7 )
return 38;
v8 = v7;
sub_1005E96E8((__int64)v7);
sub_1005DBDD8(*((pthread_mutex_t **)off_1009DA5E8 + 38));
v9 = *(_QWORD *)(a1 + 69952);
*v8 = v9;
v8[1] = a1 + 69952;
*(_QWORD *)(v9 + 8) = v8;
*(_QWORD *)v8[1] = v8;
v8[3] = a1;
sub_1005DBE08(*((pthread_mutex_t **)off_1009DA5E8 + 38));
if ( !a2 )
{
v8[12] = 0;
goto LABEL_9;
}
v10 = sub_1005ED34C(a2);
v8[12] = v10;
if ( v10 )
{
LABEL_9:
*a3 = v8;
return 0;
}
if ( v6 )
{
sub_1005DBDD8(v6);
sub_1005E9724(v8);
sub_1005DBE08(v6);
}
else
{
sub_1005E9724(v8);
}
return 38;
}