//
// sub_9AD3C from 0x9ad3c to 0x9ad98 (92 bytes)
//
// 1 xrefs:
// > sub_9AF90 @ 0x9af92
//
// 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_9AD3C(int a1, int a2, _DWORD *a3, _BYTE *a4)
{
int result; // r0
int v6; // r0
if ( !a3 )
return 31;
result = 31;
switch ( a2 )
{
case 6:
v6 = *(_DWORD *)(a1 + 732);
goto LABEL_12;
case 7:
case 8:
case 10:
case 12:
case 13:
case 15:
case 16:
case 17:
case 19:
return result;
case 9:
v6 = *(_DWORD *)(a1 + 780);
goto LABEL_12;
case 11:
v6 = *(_DWORD *)(a1 + 748);
goto LABEL_12;
case 14:
v6 = *(_DWORD *)(a1 + 760);
goto LABEL_12;
case 18:
v6 = *(unsigned __int8 *)(a1 + 776);
goto LABEL_12;
case 20:
v6 = *(_DWORD *)(a1 + 708);
goto LABEL_12;
default:
if ( a2 )
return result;
v6 = *(_DWORD *)(a1 + 704);
LABEL_12:
*a3 = v6;
result = 0;
if ( a4 )
*a4 = 0;
break;
}
return result;
}