//
// performMathSign from 0x9a7e88 to 0x9a7eac (36 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x9a8060
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x9a8070
// > GJBaseGameLayer::activateItemEditTrigger @ 0x9eccd4
// > GJBaseGameLayer::activateItemEditTrigger @ 0x9ecd38
// > ??> @ 0x7df20
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:10 +0000
//
double __fastcall performMathSign(double result, int a2)
{
if ( a2 == 1 )
return fabs(result);
if ( a2 == 2 )
return -fabs(result);
return result;
}