//
// sub_9AD3C from 0x9ad3c to 0x9ad98 (92 bytes)
//
// 1 xrefs:
// > sub_9AF90 @ 0x9af92
//
// 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:30 +0000
//
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;
}