//
// GJBaseGameLayer::performMathOperation from 0x476140 to 0x476184 (68 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x4762ca
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x476314
// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e772
// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e78e
// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e7cc
//
// 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 GJBaseGameLayer::performMathOperation(GJBaseGameLayer *a1, double a2, double a3, int a4)
{
double v4; // d7
switch ( a4 )
{
case 1:
v4 = a2 + a3;
break;
case 2:
v4 = a2 - a3;
break;
case 3:
v4 = a2 * a3;
break;
case 4:
if ( a3 == 0.0 )
goto LABEL_7;
v4 = a2 / a3;
break;
default:
LABEL_7:
v4 = 0.0;
break;
}
return v4;
}