//
// sub_EDCE4 from 0xedce4 to 0xedd64 (128 bytes)
//
// 1 xrefs:
// > sub_F298C @ 0xf2a50
//
// 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 12:15:03 +0000
//
void *__fastcall sub_EDCE4(__int64 a1, unsigned int a2)
{
unsigned int v2; // w8
void *result; // x0
size_t v5; // x21
v2 = *(_DWORD *)(a1 + 16);
result = &dword_0 + 1;
if ( v2 < a2 )
{
v5 = 4LL * (unsigned int)(1 << a2);
result = realloc(*(void **)a1, v5);
*(_QWORD *)a1 = result;
if ( result )
{
result = realloc(*(void **)(a1 + 8), v5);
*(_QWORD *)(a1 + 8) = result;
if ( result )
{
memset(result, 0, v5);
*(_DWORD *)(a1 + 16) = a2;
return &dword_0 + 1;
}
}
}
return result;
}