//
// sub_1005CF894 from 0x1005cf894 to 0x1005cf95c (200 bytes)
//
// 1 xrefs:
// > sub_1005D71D0 @ 0x1005d7200
//
// 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 sub_1005CF894()
{
char *v0; // x20
_QWORD *v1; // x8
char *v2; // x22
__int64 v3; // x0
v0 = *((char **)off_1009DA5E8 + 7);
if ( v0 != (char *)off_1009DA5E8 + 56 )
{
while ( 1 )
{
v2 = *(char **)v0;
v1 = *((_QWORD **)v0 + 1);
*v1 = *(_QWORD *)v0;
*(_QWORD *)(*(_QWORD *)v0 + 8LL) = v1;
*(_QWORD *)v0 = v0;
*((_QWORD *)v0 + 1) = v0;
v0[360] = 0;
sub_1005FB700(v0 + 24);
if ( v0[420] )
break;
*((_QWORD *)off_1009DA5E8 + 10) = 0;
v3 = *((_QWORD *)v0 + 51);
if ( v3 )
goto LABEL_8;
LABEL_3:
sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v0,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_file.cpp",
213,
1);
v0 = v2;
if ( v2 == (char *)off_1009DA5E8 + 56 )
return 0;
}
v3 = *((_QWORD *)v0 + 51);
if ( !v3 )
goto LABEL_3;
LABEL_8:
sub_1005DBD78(v3, 0);
goto LABEL_3;
}
return 0;
}