//
// sub_1000CA810 from 0x1000ca810 to 0x1000ca87e (110 bytes)
//
// 5 xrefs:
// > ??> @ 0x1000ca767
// > ??> @ 0x1000ca7b6
// > ??> @ 0x1000cb5da
// > ??> @ 0x1000cfa63
// > ??> @ 0x1000cfa84
//
// 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:20:38 +0000
//
void __fastcall sub_1000CA810(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 - 7);
if ( v5 )
{
*((_QWORD *)v3 - 6) = v5;
operator delete(v5);
}
v3 -= 64;
}
while ( v3 != v1 );
v4 = *a1;
}
a1[1] = v1;
operator delete(v4);
}
}