//
// sub_1005D481C from 0x1005d481c to 0x1005d487c (96 bytes)
//
// 1 xrefs:
// > sub_1005D4E3C @ 0x1005d4f08
//
// 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:33 +0000
//
__int64 __fastcall sub_1005D481C(__int64 result)
{
int v1; // w8
bool v2; // vf
__int64 v3; // x19
__int64 v4; // x1
v1 = *(_DWORD *)(result + 424);
v2 = __OFSUB__(v1--, 1);
*(_DWORD *)(result + 424) = v1;
if ( (v1 < 0) ^ v2 | (v1 == 0) )
{
v3 = result;
*(_DWORD *)(result + 424) = 0;
v4 = *(_QWORD *)(result + 416);
if ( v4 )
{
result = sub_1005D7AD8(
*((_QWORD *)off_1009DA5E8 + 54),
v4,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_geometry_mgr.cpp",
400,
1);
*(_QWORD *)(v3 + 416) = 0;
}
}
return result;
}