//
// sub_1002F8DF0 from 0x1002f8df0 to 0x1002f8e77 (135 bytes)
//
// 3 xrefs:
// > ??> @ 0x1002f8dd8
// > ??> @ 0x1002fd3ce
// > ??> @ 0x1002fddd5
//
// 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_1002F8DF0(__int64 a1)
{
_QWORD *v1; // rbx
__int64 v2; // r14
__int64 v3; // r15
void *v4; // rdi
void *v5; // rdi
v1 = *(_QWORD **)a1;
*(_QWORD *)a1 = 0;
if ( v1 )
{
if ( *(_BYTE *)(a1 + 16) == 1 )
{
v2 = v1[3];
if ( v2 )
{
v3 = v1[4];
v4 = (void *)v1[3];
if ( v3 != v2 )
{
do
{
v5 = *(void **)(v3 - 24);
if ( v5 )
{
*(_QWORD *)(v3 - 16) = v5;
operator delete(v5);
}
v3 -= 56;
}
while ( v3 != v2 );
v4 = (void *)v1[3];
}
v1[4] = v2;
operator delete(v4);
}
}
operator delete(v1);
}
}