//
// sub_C8990 from 0xc8990 to 0xc89c8 (56 bytes)
//
// 2 xrefs:
// > sub_70F90 @ 0x7107e
// > sub_C89C8 @ 0xc8a46
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:54 +0000
//
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;
}
}
}