//
// sub_1000DACD0 from 0x1000dacd0 to 0x1000dad3e (110 bytes)
//
// 7 xrefs:
// > ??> @ 0x1001053e5
// > ??> @ 0x1004e0984
// > ??> @ 0x1004e0990
// > ??> @ 0x1004e0a09
// > ??> @ 0x1004e0a11
// > ??> @ 0x1004e2009
// > ??> @ 0x1004e2011
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_1000DACD0(void **a1)
{
char *v1; // r14
char *v3; // r15
void *v4; // rdi
void *v5; // rdi
v1 = (char *)*a1;
if ( *a1 )
{
v3 = (char *)a1[1];
v4 = *a1;
if ( v3 != v1 )
{
do
{
v5 = *((void **)v3 - 3);
if ( v5 )
{
*((_QWORD *)v3 - 2) = v5;
operator delete(v5);
}
v3 -= 24;
}
while ( v3 != v1 );
v4 = *a1;
}
a1[1] = v1;
operator delete(v4);
}
}