//
// sub_94C2C from 0x94c2c to 0x94cc0 (148 bytes)
//
// 1 xrefs:
// > sub_94BF0 @ 0x94c10
//
// 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
//
// positive sp value has been detected, the output may be wrong!
__int64 __usercall sub_94C2C@(char a1@)
{
_BYTE *v1; // x19
__int64 v2; // x20
__int64 result; // x0
unsigned int v4; // w9
char v5; // w8
result = 0;
v4 = ((byte_114008[a1 & 0x1F] * (unsigned int)(unsigned __int8)v1[264]) >> 5) & 0x7FC;
if ( a1 < 0 )
v4 = -v4;
*(_DWORD *)(v2 + 80) = v4;
v5 = v1[263] + a1;
if ( v5 > 31 )
v5 -= 64;
v1[262] = v5;
*(_BYTE *)(v2 + 60) |= 1u;
return result;
}