//
// sub_1000C6F90 from 0x1000c6f90 to 0x1000c709b (267 bytes)
//
// 1 xrefs:
// > sub_1000BB8C0 @ 0x1000bc090
//
// 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_1000C6F90(_QWORD *a1, __int64 *a2, __int64 *a3)
{
__int64 v5; // rsi
char *v6; // r12
__int128 v7; // xmm1
char *v8; // r13
char *v9; // r13
_OWORD *v10; // rax
__int128 v11; // xmm1
v5 = a1[1];
if ( v5 )
{
__bzero(*a1, 8 * v5);
v6 = (char *)a1[2];
*((_OWORD *)a1 + 1) = 0;
if ( v6 )
{
while ( a2 != a3 )
{
*((_DWORD *)v6 + 4) = *((_DWORD *)a2 + 4);
v7 = *(_OWORD *)(a2 + 5);
*(_OWORD *)(v6 + 24) = *(_OWORD *)(a2 + 3);
*(_OWORD *)(v6 + 40) = v7;
v8 = *(char **)v6;
sub_1000C7100(a1, v6);
a2 = (__int64 *)*a2;
v6 = v8;
if ( !v8 )
goto LABEL_9;
}
do
{
v9 = *(char **)v6;
operator delete(v6);
v6 = v9;
}
while ( v9 );
}
}
LABEL_9:
while ( a2 != a3 )
{
v10 = operator new(0x38u);
*(_QWORD *)v10 = 0;
v11 = *((_OWORD *)a2 + 2);
v10[1] = *((_OWORD *)a2 + 1);
v10[2] = v11;
*((_QWORD *)v10 + 6) = a2[6];
*((_QWORD *)v10 + 1) = *((int *)v10 + 4);
sub_1000C7100(a1, v10);
a2 = (__int64 *)*a2;
}
}