//
// sub_CC826C from 0xcc826c to 0xcc8330 (196 bytes)
//
// 0 xrefs:
//
// 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
//
bool __fastcall sub_CC826C(__int64 a1, int a2, unsigned int a3)
{
unsigned int v3; // w3
__int64 v4; // x4
unsigned int v5; // w1
__int64 v6; // x2
int v7; // w1
v3 = *(_DWORD *)(a1 + 5884);
v4 = *(_QWORD *)(a1 + 5872);
*(_WORD *)(*(_QWORD *)(a1 + 5888) + 2LL * v3) = a2;
*(_DWORD *)(a1 + 5884) = v3 + 1;
*(_BYTE *)(v4 + v3) = a3;
if ( a2 )
{
v5 = a2 - 1;
++*(_DWORD *)(a1 + 5912);
v6 = a1 + 4LL * byte_F5C060[a3];
++*(_WORD *)(v6 + 1224);
if ( v5 <= 0xFF )
v7 = (unsigned __int8)byte_F5C260[v5];
else
v7 = (unsigned __int8)byte_F5C260[(v5 >> 7) + 256];
++*(_WORD *)(a1 + 4LL * v7 + 2488);
return *(_DWORD *)(a1 + 5884) == *(_DWORD *)(a1 + 5880) - 1;
}
else
{
++*(_WORD *)(a1 + 4LL * a3 + 196);
return *(_DWORD *)(a1 + 5884) == *(_DWORD *)(a1 + 5880) - 1;
}
}