//
// sub_A3B24 from 0xa3b24 to 0xa3bbc (152 bytes)
//
// 1 xrefs:
// > sub_A3AF0 @ 0xa3b10
//
// 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
//
__int64 __usercall sub_A3B24@(_BYTE *a1@, __int64 a2@)
{
int v2; // w9
__int64 v3; // x11
int v4; // w11
unsigned int v5; // w10
unsigned int v6; // w11
int v7; // w10
char v8; // w9
v4 = byte_114008[v3];
*(_DWORD *)(a2 + 76) = v4;
v5 = *(_DWORD *)(a2 + 68);
v6 = (v4 * (unsigned int)(unsigned __int8)a1[268]) >> 6;
*(_DWORD *)(a2 + 76) = v6;
if ( v2 < 0 )
{
if ( ((v5 - v6) & 0x8000) != 0 )
{
v6 = v5;
*(_DWORD *)(a2 + 76) = v5;
}
v7 = -v6;
}
else
{
if ( (int)(v5 + v6) < 65 )
goto LABEL_8;
v7 = 64 - v5;
}
*(_DWORD *)(a2 + 76) = v7;
LABEL_8:
v8 = a1[267] + v2;
if ( v8 > 31 )
v8 -= 64;
a1[266] = v8;
*(_BYTE *)(a2 + 60) |= 2u;
return 0;
}