//
// sub_C68A8 from 0xc68a8 to 0xc6982 (218 bytes)
//
// 2 xrefs:
// > ??> @ 0xc68a6
// > sub_70F90 @ 0x71008
//
// 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
//
_DWORD *sub_C68A8()
{
_DWORD *v0; // r0
_DWORD *v1; // r9
_DWORD *v2; // r0
_DWORD *v3; // r8
_DWORD *v4; // r0
_DWORD *v5; // r6
void *v6; // r0
void *v7; // r5
void *v8; // r0
int v9; // r1
_DWORD *v10; // r2
int v11; // r5
v0 = calloc(1u, 8u);
if ( !v0 )
return nullptr;
v1 = v0;
v2 = calloc(1u, 0x1Cu);
*v1 = v2;
if ( !v2 )
goto LABEL_10;
v3 = v2;
v4 = calloc(1u, 0x1808u);
v1[1] = v4;
if ( !v4 )
{
free(v3);
LABEL_10:
free(v1);
return nullptr;
}
v5 = v4;
v6 = sub_C44C0();
v5[15] = v6;
if ( !v6 )
{
LABEL_16:
free(v5);
free(v3);
free(v1);
return nullptr;
}
v7 = v6;
v5[282] = 16;
v8 = malloc(0x40u);
v5[280] = v8;
if ( !v8 )
{
sub_C44C8(v7);
goto LABEL_16;
}
v9 = 0;
while ( v9 != 8 )
{
v10 = &v5[v9++];
v10[896] = 0;
v10[24] = 0;
v10[16] = 0;
}
v11 = 0;
v5[63] = 0;
v5[56] = 0;
v5[57] = 0;
while ( v11 != 24 )
{
sub_C50BA(&v5[v11 + 32]);
v11 += 3;
}
v5[14] = 0;
sub_C698C(v1);
*v3 = 9;
return v1;
}