//
// sub_1004A972C from 0x1004a972c to 0x1004a97f4 (200 bytes)
//
// 1 xrefs:
// > sub_1004B1068 @ 0x1004b1098
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 sub_1004A972C()
{
char *v0; // x20
_QWORD *v1; // x8
char *v2; // x22
__int64 v3; // x0
v0 = *((char **)off_1008524C8 + 7);
if ( v0 != (char *)off_1008524C8 + 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_1004D5598(v0 + 24);
if ( v0[420] )
break;
*((_QWORD *)off_1008524C8 + 10) = 0;
v3 = *((_QWORD *)v0 + 51);
if ( v3 )
goto LABEL_8;
LABEL_3:
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v0,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_file.cpp",
213,
1);
v0 = v2;
if ( v2 == (char *)off_1008524C8 + 56 )
return 0;
}
v3 = *((_QWORD *)v0 + 51);
if ( !v3 )
goto LABEL_3;
LABEL_8:
sub_1004B5C10(v3, 0);
goto LABEL_3;
}
return 0;
}