//
// sub_1008D96D0 from 0x1008d96d0 to 0x1008d972a (90 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d96bd
//
// 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:37:43 +0000
//
void __fastcall sub_1008D96D0(__int64 a1)
{
__int64 v2; // r14
__int64 v3; // rax
void *v4; // rdi
__int64 v5; // rcx
v2 = *(_QWORD *)(a1 + 8);
v3 = *(_QWORD *)(a1 + 16);
if ( v3 != v2 )
{
do
{
v5 = v3 - 48;
*(_QWORD *)(a1 + 16) = v3 - 48;
if ( (*(_BYTE *)(v3 - 24) & 1) != 0 )
{
operator delete(*(void **)(v3 - 8));
v5 = *(_QWORD *)(a1 + 16);
}
v3 = v5;
}
while ( v5 != v2 );
}
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
}