//
// sub_100481634 from 0x100481634 to 0x1004816c4 (144 bytes)
//
// 1 xrefs:
// > sub_100481600 @ 0x100481624
//
// 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_100481634@(_BYTE *a1@, __int64 a2@)
{
int v2; // w9
__int64 v3; // x11
unsigned int v4; // w11
unsigned int v5; // w10
int v6; // w10
char v7; // w9
v4 = (byte_100852D18[v3] * (unsigned int)(unsigned __int8)a1[268]) >> 6;
*(_DWORD *)(a2 + 76) = v4;
v5 = *(_DWORD *)(a2 + 68);
if ( v2 < 0 )
{
if ( (((_WORD)v5 - (_WORD)v4) & 0x8000) == 0 )
v5 = v4;
v6 = -v5;
}
else
{
if ( (int)(v5 + v4) < 65 )
goto LABEL_8;
v6 = 64 - v5;
}
*(_DWORD *)(a2 + 76) = v6;
LABEL_8:
v7 = a1[267] + v2;
if ( v7 > 31 )
v7 -= 64;
a1[266] = v7;
*(_BYTE *)(a2 + 60) |= 2u;
return 0;
}