// // GJBaseGameLayer::performMathOperation from 0x595808 to 0x59584c (68 bytes) // // 5 xrefs: // > GJBaseGameLayer::activateItemCompareTrigger @ 0x595992 // > GJBaseGameLayer::activateItemCompareTrigger @ 0x5959dc // > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd29c // > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd2b8 // > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd2f6 // // 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 GJBaseGameLayer::performMathOperation(GJBaseGameLayer *this, double a2, double a3, int a4) { double v5; // d7 switch ( a4 ) { case 1: v5 = a2 + a3; break; case 2: v5 = a2 - a3; break; case 3: v5 = a2 * a3; break; case 4: if ( a3 == 0.0 ) goto LABEL_7; v5 = a2 / a3; break; default: LABEL_7: v5 = 0.0; break; } return *(_QWORD *)&v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source