//
// sub_1005D22B4 from 0x1005d22b4 to 0x1005d2328 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab9a8
//
// 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:31 +0000
//
__int64 __fastcall sub_1005D22B4(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x1
result = *(_QWORD *)(a1 + 496);
if ( result == -1 || (result = sub_10061C068(result), *(_QWORD *)(a1 + 496) = -1, !(_DWORD)result) )
{
v3 = *(_QWORD *)(a1 + 520);
if ( v3 )
{
result = sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v3,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_file_net.cpp",
777,
1);
*(_QWORD *)(a1 + 520) = 0;
}
return sub_1005D9D78(result);
}
return result;
}