//
// sub_100481A00 from 0x100481a00 to 0x100481a54 (84 bytes)
//
// 0 xrefs:
//
// 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 __fastcall sub_100481A00(__int64 a1, int a2, int a3, unsigned int *a4)
{
unsigned int v4; // w9
_BOOL4 v5; // w10
_BOOL4 v6; // w11
bool v7; // zf
int v8; // w10
int v9; // w11
v4 = dword_100852E38[a2];
*a4 = v4;
v5 = a3 < 0;
v6 = a2 != 0;
v7 = !v6 || !v5;
if ( v6 && v5 )
v8 = -128;
else
v8 = 128;
if ( v7 )
v9 = a2 + 1;
else
v9 = a2 - 1;
*a4 = (int)((dword_100852E38[v9] - v4) * a3) / v8 + v4;
return 0;
}