//
// GJBaseGameLayer::performMathOperation from 0x10014c2f0 to 0x10014c33f (79 bytes)
//
// 0 xrefs:
//
// 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 GJBaseGameLayer::performMathOperation(GJBaseGameLayer *a1, double a2, double a3, int a4)
{
double v5; // xmm2_8
switch ( a4 )
{
case 1:
return a2 + a3;
case 2:
return a2 - a3;
case 3:
return a2 * a3;
case 4:
v5 = 0.0;
if ( a3 == 0.0 )
return v5;
return a2 / a3;
default:
return 0.0;
}
}