//
// performMathSign from 0x595878 to 0x595898 (32 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x5959b8
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x595a08
// > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd2de
// > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd31c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:08 +0000
//
__int64 __fastcall performMathSign(double a1, int a2)
{
double v2; // d7
v2 = a1;
if ( a2 == 1 )
{
v2 = fabs(a1);
}
else if ( a2 == 2 )
{
v2 = -fabs(a1);
}
return *(_QWORD *)&v2;
}