//
// GJBaseGameLayer::performMathOperation from 0x10012a160 to 0x10012a1af (79 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:24:43 +0000
//
double __fastcall GJBaseGameLayer::performMathOperation(double a1, double a2, __int64 a3, int a4)
{
double v5; // xmm2_8
switch ( a4 )
{
case 1:
return a1 + a2;
case 2:
return a1 - a2;
case 3:
return a1 * a2;
case 4:
v5 = 0.0;
if ( a2 == 0.0 )
return v5;
return a1 / a2;
default:
return 0.0;
}
}