//
// sub_100573E9C from 0x100573e9c to 0x100574020 (388 bytes)
//
// 2 xrefs:
// > sub_1005F4674 @ 0x1005f46c4
// > sub_1005F7390 @ 0x1005f7c70
//
// 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:08:19 +0000
//
__int64 __fastcall sub_100573E9C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x0
__int64 v5; // x22
__int64 v6; // x21
v2 = sub_1005D7364(
*((_QWORD *)off_1009DA5E8 + 54),
176,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_remotefile.cpp",
123,
0,
0,
1);
if ( !v2 )
return 38;
v3 = v2;
*(_QWORD *)(v2 + 24) = 0;
*(_QWORD *)(v2 + 32) = 0;
*(_QWORD *)(v2 + 8) = v2 + 8;
*(_QWORD *)(v2 + 16) = v2 + 8;
*(_QWORD *)v2 = off_1009AAA20;
*(_OWORD *)(v2 + 80) = 0u;
*(_OWORD *)(v2 + 96) = 0u;
*(_DWORD *)(v2 + 112) = -1;
*(_OWORD *)(v2 + 116) = 0u;
*(_OWORD *)(v2 + 132) = 0u;
*(_DWORD *)(v2 + 148) = 0;
*(_QWORD *)(v2 + 152) = 0xFFFFFFFFLL;
v4 = sub_1005D7364(
*((_QWORD *)off_1009DA5E8 + 54),
65568,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_profile_remotefile.cpp",
131,
0,
0,
1);
*(_QWORD *)(v3 + 40) = v4;
if ( !v4 )
{
v6 = 38;
goto LABEL_8;
}
v5 = 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;
v6 = sub_1005DBC40(v3 + 56, 0);
if ( (_DWORD)v6 || (v6 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 8LL))(a1, v3), (_DWORD)v6) )
{
sub_1005D7AD8(*((_QWORD *)off_1009DA5E8 + 54), v5, "../../src/fmod_autocleanup.h", 184, 1);
LABEL_8:
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 96LL))(v3);
sub_1005D7AD8(*((_QWORD *)off_1009DA5E8 + 54), v3, "../../src/fmod_autocleanup.h", 198, 1);
}
return v6;
}