//
// sub_1000C6BD0 from 0x1000c6bd0 to 0x1000c6c1d (77 bytes)
//
// 16 xrefs:
// > ??> @ 0x1000c6535
// > ??> @ 0x1000c6bb5
// > ??> @ 0x1000c7785
// > ??> @ 0x1000c7f15
// > ??> @ 0x10010abd8
// > ??> @ 0x10016ef98
// > ??> @ 0x100171518
// > ??> @ 0x100171d18
// > ??> @ 0x1001723a8
// > ??> @ 0x1001738a8
// > ??> @ 0x100174218
// > ??> @ 0x1001754d8
// > ??> @ 0x100175998
// > ??> @ 0x1002f4738
// > ??> @ 0x1002f9593
// > ??> @ 0x1002f9bd4
//
// 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_1000C6BD0(__int64 a1)
{
_QWORD *v2; // rdi
void *v3; // rax
v2 = *(_QWORD **)a1;
*(_QWORD *)a1 = 0;
if ( v2 )
{
if ( *(_BYTE *)(a1 + 16) == 1 )
{
v3 = (void *)v2[3];
if ( v3 )
{
v2[4] = v3;
operator delete(v3);
}
}
operator delete(v2);
}
}