//
// sub_C8990 from 0xc8990 to 0xc89c8 (56 bytes)
//
// 2 xrefs:
// > sub_70F90 @ 0x7107e
// > sub_C89C8 @ 0xc8a46
//
// 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_C8990(int a1, _DWORD *a2)
{
int result; // r0
unsigned int v5; // r0
while ( 2 )
{
result = 1;
switch ( *(_DWORD *)*a2 )
{
case 0:
v5 = sub_C6EA8(a1, (int)a2);
goto LABEL_4;
case 1:
v5 = sub_C6FF4(a1, a2);
LABEL_4:
if ( !v5 )
return 0;
continue;
case 2:
case 3:
case 4:
case 7:
return result;
default:
return 0;
}
}
}