//
// sub_94CF4 from 0x94cf4 to 0x94d7c (136 bytes)
//
// 1 xrefs:
// > sub_94CC0 @ 0x94ce0
//
// 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_94CF4@(_BYTE *a1@, __int64 a2@)
{
int v2; // w9
__int64 v3; // x11
unsigned __int8 v4; // w10
int v5; // w11
unsigned int v6; // w10
int v7; // w12
unsigned int v8; // w11
char v9; // w9
v4 = byte_114008[v3];
v5 = *(_DWORD *)(a2 + 68);
v6 = ((unsigned __int8)a1[268] * (unsigned int)v4) >> 6;
if ( v2 < 0 )
{
if ( (((_WORD)v5 - (_WORD)v6) & 0x8000) != 0 )
v6 = *(_DWORD *)(a2 + 68);
}
else
{
v7 = v6 + v5;
v8 = 64 - v5;
if ( v7 > 64 )
v6 = v8;
}
*(_DWORD *)(a2 + 76) = v6;
v9 = a1[267] + v2;
if ( v9 > 31 )
v9 -= 64;
a1[266] = v9;
*(_BYTE *)(a2 + 60) |= 2u;
return 0;
}