//
// sub_1000CACF0 from 0x1000cacf0 to 0x1000cad93 (163 bytes)
//
// 1 xrefs:
// > CheckpointObject::dCheckpointObject @ 0x1000bf986
//
// 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_1000CACF0(__int64 a1, _QWORD *a2)
{
_QWORD *v2; // rbx
_QWORD *v3; // r14
_QWORD *v4; // rdi
_QWORD *v5; // r15
void *v6; // rdi
_QWORD *v7; // rdi
_QWORD *v8; // r15
void *v9; // rdi
if ( a2 )
{
v2 = a2;
do
{
v3 = (_QWORD *)*v2;
v4 = (_QWORD *)v2[10];
if ( v4 )
{
do
{
v5 = (_QWORD *)*v4;
operator delete(v4);
v4 = v5;
}
while ( v5 );
}
v6 = (void *)v2[8];
v2[8] = 0;
if ( v6 )
operator delete(v6);
v7 = (_QWORD *)v2[5];
if ( v7 )
{
do
{
v8 = (_QWORD *)*v7;
operator delete(v7);
v7 = v8;
}
while ( v8 );
}
v9 = (void *)v2[3];
v2[3] = 0;
if ( v9 )
operator delete(v9);
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
}