//
// sub_80A14 from 0x80a14 to 0x80a1c (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x114ec0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:07 +0000
//
__int64 __fastcall sub_80A14(_QWORD *a1, int a2, int a3)
{
int v3; // w8
int v4; // w8
unsigned int v5; // w8
_DWORD *v6; // x0
v6 = (_DWORD *)*a1;
if ( a2 == 4 )
{
if ( a3 >= 2 )
v4 = 2;
else
v4 = a3;
v6[172] = v4 & ~(v4 >> 31);
}
else
{
if ( a2 != 1 )
return 31;
if ( a3 >= 4 )
v3 = 4;
else
v3 = a3;
v6[169] = v3 & ~(v3 >> 31);
}
v5 = 0;
++v6[161];
return v5;
}