//
// sub_CC9C0 from 0xcc9c0 to 0xcca10 (80 bytes)
//
// 2 xrefs:
// > sub_C79C0 @ 0xc7a6c
// > sub_C79C0 @ 0xc7a80
//
// This function is hookable on this platform (idp: arm, 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:14:49 +0000
//
__int64 sub_CC9C0()
{
__int64 v0; // x0
__int64 v1; // x1
int v2; // w8
char v3; // w2
__int64 v4; // x8
__int64 v5; // x9
int v6; // w10
int v7; // w10
__int64 v8; // x0
int v9; // w10
v0 = sub_CD4C4();
if ( (v3 & 1) != 0 )
{
if ( !v2 )
{
*(_BYTE *)(v1 + 530) = 1;
sub_CD59C(v0);
v7 = v6 + 1;
LABEL_6:
*(_DWORD *)(v4 + v5) = v7;
}
}
else if ( v2 )
{
v8 = sub_CD29C(v1);
sub_CD59C(v8);
v7 = v9 - 1;
goto LABEL_6;
}
return 0;
}