//
// performMathSign from 0x4761b0 to 0x4761d0 (32 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x4762f0
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x476340
// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e7b4
// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e7f2
//
// 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 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;
}