//
// sub_1005E0724 from 0x1005e0724 to 0x1005e079c (120 bytes)
//
// 2 xrefs:
// > sub_1005E003C @ 0x1005e0070
// > sub_1005E06B4 @ 0x1005e06e0
//
// 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:40 +0000
//
__int64 __fastcall sub_1005E0724(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x20
__int64 v3; // x21
__int64 (__fastcall *v4)(__int64, __int64, _QWORD); // x22
__int64 v5; // x0
v1 = result;
v2 = result + 1056;
v3 = result + 8;
do
{
if ( (*(_DWORD *)(v1 + 1100) - *(_DWORD *)(v1 + 1096)) * *(_DWORD *)(v1 + 1080) > (*(_DWORD *)(v1 + 1092) - 1)
* *(_DWORD *)(v1 + 1068) )
break;
v4 = *(__int64 (__fastcall **)(__int64, __int64, _QWORD))(v1 + 16);
v5 = sub_1005DE860(v2);
result = v4(v3, v5, *(unsigned int *)(v1 + 1064));
}
while ( !(_DWORD)result );
return result;
}