//
// sub_6AADB8 from 0x6aadb8 to 0x6aaea4 (236 bytes)
//
// 1 xrefs:
// > sub_6B455C @ 0x6b4f5c
//
// 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_6AADB8(int a1, int a2, _QWORD *a3)
{
int v3; // r3
unsigned int v6; // [sp+10h] [bp-Ch] BYREF
if ( *(_QWORD *)(a2 + 8) != 1 )
return 1;
switch ( *(_WORD *)(a2 + 2) )
{
case 4:
case 0xD:
sub_6AF7D8(a1, a2, &v6);
*a3 = v6;
v3 = 0;
break;
case 0x10:
case 0x12:
v3 = sub_6AF87C(a1, a2, a3);
break;
default:
v3 = 2;
break;
}
return v3;
}