//
// performMathSign from 0x865564 to 0x865588 (36 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x86573c
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x86574c
// > GJBaseGameLayer::activateItemEditTrigger @ 0x8911fc
// > GJBaseGameLayer::activateItemEditTrigger @ 0x891260
// > ??> @ 0x5bd58
//
// 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
//
double __fastcall performMathSign(double result, int a2)
{
if ( a2 == 1 )
return fabs(result);
if ( a2 == 2 )
return -fabs(result);
return result;
}