//
// sub_9AAFC from 0x9aafc to 0x9ab84 (136 bytes)
//
// 1 xrefs:
// > sub_9AF84 @ 0x9af86
//
// 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_9AAFC(_DWORD *a1, int a2, _DWORD *a3, _BYTE *a4)
{
int result; // r0
_DWORD *v6; // r0
if ( !a3 )
return 31;
result = 31;
switch ( a2 )
{
case 1:
v6 = a1 + 178;
goto LABEL_17;
case 2:
v6 = a1 + 179;
goto LABEL_17;
case 3:
v6 = a1 + 180;
goto LABEL_17;
case 4:
v6 = a1 + 181;
goto LABEL_17;
case 5:
v6 = a1 + 182;
goto LABEL_17;
case 7:
v6 = a1 + 184;
goto LABEL_17;
case 8:
v6 = a1 + 185;
goto LABEL_17;
case 12:
v6 = a1 + 99;
goto LABEL_17;
case 13:
v6 = a1 + 100;
goto LABEL_17;
case 15:
v6 = a1 + 191;
goto LABEL_17;
case 16:
v6 = a1 + 193;
goto LABEL_17;
case 17:
v6 = a1 + 192;
goto LABEL_17;
case 21:
v6 = a1 + 186;
LABEL_17:
*a3 = *v6;
result = 0;
if ( a4 )
*a4 = 0;
break;
default:
return result;
}
return result;
}