//
// sub_1001ED6A8 from 0x1001ed6a8 to 0x1001ed7c8 (288 bytes)
//
// 1 xrefs:
// > sub_1001ED540 @ 0x1001ed600
//
// 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:00:36 +0000
//
__int64 __fastcall sub_1001ED6A8(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, int __c)
{
__int64 v6; // x19
__int64 v11; // x9
signed __int64 v12; // x23
void **v13; // x1
__int64 v14; // x24
__int64 v15; // x22
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v18; // [xsp+1Fh] [xbp-41h]
v6 = a1;
if ( a1 )
{
v11 = *(_QWORD *)(a5 + 24);
if ( v11 <= a4 - a2 )
v12 = 0;
else
v12 = v11 - (a4 - a2);
if ( a3 - a2 >= 1 && (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 96LL))(a1) != a3 - a2 )
return 0;
if ( v12 >= 1 )
{
sub_1001ED7E4(__p, v12, __c);
v13 = v18 >= 0 ? __p : (void **)__p[0];
v14 = (*(__int64 (__fastcall **)(__int64, void **, signed __int64))(*(_QWORD *)v6 + 96LL))(v6, v13, v12);
if ( v18 < 0 )
operator delete(__p[0]);
if ( v14 != v12 )
return 0;
}
v15 = a4 - a3;
if ( v15 < 1 || (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v6 + 96LL))(v6, a3, v15) == v15 )
*(_QWORD *)(a5 + 24) = 0;
else
return 0;
}
return v6;
}