//
// sub_C83414 from 0xc83414 to 0xc834f4 (224 bytes)
//
// 1 xrefs:
// > sub_C85C88 @ 0xc85d48
//
// 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_C83414(__int64 result, unsigned int *a2)
{
unsigned int v2; // w11
v2 = *(a2 - 1);
if ( (int)(abs32(BYTE3(result) - HIBYTE(v2))
- abs32(HIBYTE(*a2) - HIBYTE(v2))
+ abs32(BYTE2(result) - BYTE2(v2))
- abs32((unsigned __int8)BYTE2(*a2) - BYTE2(v2))
+ abs32(BYTE1(result) - BYTE1(v2))
- abs32((unsigned __int8)BYTE1(*a2) - BYTE1(v2))
+ abs32((unsigned __int8)result - (unsigned __int8)v2)
- abs32((unsigned __int8)*a2 - (unsigned __int8)v2)) > 0 )
return (unsigned int)result;
else
return *a2;
}