//
// sub_85898 from 0x85898 to 0x858cc (52 bytes)
//
// 1 xrefs:
// > sub_85850 @ 0x85874
//
// 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_85898(__int64 a1, int a2)
{
int v2; // w8
int v3; // w8
v2 = *(_DWORD *)(a1 + 12);
if ( v2 < 0 )
v2 = -v2;
v3 = (int)(float)((float)v2 * 1.5);
if ( v3 < a2 )
v3 = a2;
if ( v3 <= 4 )
return 4;
else
return (unsigned int)v3;
}