//
// sub_1005CF580 from 0x1005cf580 to 0x1005cf614 (148 bytes)
//
// 0 xrefs:
//
// 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:30 +0000
//
__int64 __fastcall sub_1005CF580(__int64 a1)
{
_QWORD *v2; // x9
__int64 v3; // x0
v2 = *(_QWORD **)(a1 + 8);
*v2 = *(_QWORD *)a1;
*(_QWORD *)(*(_QWORD *)a1 + 8LL) = v2;
*(_QWORD *)a1 = a1;
*(_QWORD *)(a1 + 8) = a1;
*(_BYTE *)(a1 + 360) = 0;
sub_1005FB700(a1 + 24);
if ( !*(_BYTE *)(a1 + 420) )
{
*((_QWORD *)off_1009DA5E8 + 10) = 0;
v3 = *(_QWORD *)(a1 + 408);
if ( !v3 )
goto LABEL_4;
goto LABEL_3;
}
v3 = *(_QWORD *)(a1 + 408);
if ( v3 )
LABEL_3:
sub_1005DBD78(v3, 0);
LABEL_4:
sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
a1,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_file.cpp",
213,
1);
return 0;
}