//
// sub_C6CA4 from 0xc6ca4 to 0xc6cce (42 bytes)
//
// 1 xrefs:
// > sub_70F90 @ 0x71020
//
// 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
//
int __fastcall sub_C6CA4(int a1, unsigned int a2)
{
int v2; // r2
int result; // r0
if ( a2 > 0x7E || **(_DWORD **)a1 != 9 )
return 0;
v2 = *(_DWORD *)(a1 + 4);
result = 1;
*(_DWORD *)(v2 + 4 * a2 + 608) = 1;
if ( a2 == 2 )
{
*(_DWORD *)(v2 + 1124) = 0;
return 1;
}
return result;
}