//
// sub_10013DC40 from 0x10013dc40 to 0x10013dc8c (76 bytes)
//
// 2 xrefs:
// > sub_10013DBA8 @ 0x10013dc3c
// > sub_1002DE0B4 @ 0x1002de1fc
//
// 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 10:59:30 +0000
//
__int64 __fastcall sub_10013DC40(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x9
void *v4; // x0
v3 = *(_QWORD *)(a1 + 8);
v2 = *(_QWORD *)(a1 + 16);
if ( v2 != v3 )
*(_QWORD *)(a1 + 16) = v2 + ((v3 - v2 + 7) & 0xFFFFFFFFFFFFFFF8LL);
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
return a1;
}