//
// sub_1000C4B90 from 0x1000c4b90 to 0x1000c4c29 (153 bytes)
//
// 2 xrefs:
// > ??> @ 0x1000c4598
// > ??> @ 0x100167128
//
// 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_1000C4B90(__int64 a1)
{
_QWORD *v1; // rbx
__int64 v2; // r15
__int64 v3; // r14
void *v4; // rdi
_QWORD *v5; // rsi
void *v6; // 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
{
v6 = *(void **)(v3 - 32);
if ( v6 )
{
*(_QWORD *)(v3 - 24) = v6;
operator delete(v6);
}
v5 = *(_QWORD **)(v3 - 232);
v3 -= 240;
sub_100054D90(v3, v5);
}
while ( v3 != v2 );
v4 = (void *)v1[3];
}
v1[4] = v2;
operator delete(v4);
}
}
operator delete(v1);
}
}