//
// sub_1000E4880 from 0x1000e4880 to 0x1000e4928 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x1000e54a4
//
// This function is hookable on this platform (idp: pc, 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:21:04 +0000
//
void __fastcall sub_1000E4880(__int64 a1)
{
void **v2; // r15
void *v3; // rdi
void **v4; // r12
char *v5; // r13
char *v6; // r14
void *v7; // rdi
void **v8; // [rsp+0h] [rbp-30h]
v2 = *(void ***)(a1 + 16);
v8 = *(void ***)(a1 + 8);
if ( v2 != v8 )
{
do
{
v4 = v2 - 3;
*(_QWORD *)(a1 + 16) = v2 - 3;
v5 = (char *)*(v2 - 3);
if ( v5 )
{
v6 = (char *)*(v2 - 2);
v3 = *(v2 - 3);
if ( v6 != v5 )
{
do
{
v7 = *((void **)v6 - 7);
if ( v7 )
{
*((_QWORD *)v6 - 6) = v7;
operator delete(v7);
}
v6 -= 64;
}
while ( v6 != v5 );
v3 = *v4;
}
*(v2 - 2) = v5;
operator delete(v3);
v4 = *(void ***)(a1 + 16);
}
v2 = v4;
}
while ( v4 != v8 );
}
if ( *(_QWORD *)a1 )
operator delete(*(void **)a1);
}