//
// sub_1000C4D40 from 0x1000c4d40 to 0x1000c4dc3 (131 bytes)
//
// 2 xrefs:
// > ??> @ 0x1000c4d08
// > ??> @ 0x1000c4d29
//
// 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_1000C4D40(void ***a1)
{
void **v1; // r14
void *v2; // r15
__int64 v3; // rbx
void *v4; // rax
_QWORD *v6; // rsi
void *v7; // rdi
if ( !*((_BYTE *)a1 + 8) )
{
v1 = *a1;
v2 = **a1;
if ( v2 )
{
v3 = (__int64)v1[1];
v4 = **a1;
if ( (void *)v3 != v2 )
{
do
{
v7 = *(void **)(v3 - 32);
if ( v7 )
{
*(_QWORD *)(v3 - 24) = v7;
operator delete(v7);
}
v6 = *(_QWORD **)(v3 - 232);
v3 -= 240;
sub_100054D90(v3, v6);
}
while ( (void *)v3 != v2 );
v4 = **a1;
}
v1[1] = v2;
operator delete(v4);
}
}
}