{"type": "func", "start": 4296327920, "end": 4296327999, "name": "GJBaseGameLayer::performMathOperation", "pseudocode": "// \n// GJBaseGameLayer::performMathOperation from 0x10014c2f0 to 0x10014c33f (79 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ndouble __fastcall GJBaseGameLayer::performMathOperation(GJBaseGameLayer *a1, double a2, double a3, int a4)\n{\n  double v5; // xmm2_8\n\n  switch ( a4 )\n  {\n    case 1:\n      return a2 + a3;\n    case 2:\n      return a2 - a3;\n    case 3:\n      return a2 * a3;\n    case 4:\n      v5 = 0.0;\n      if ( a3 == 0.0 )\n        return v5;\n      return a2 / a3;\n    default:\n      return 0.0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::performMathOperation from 0x10014c2f0 to 0x10014c33f (79 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10014c2f0\nmov     rbp, rsp                                                       ; +0x1, 0x10014c2f1\ndec     esi; switch 4 cases                                            ; +0x4, 0x10014c2f4\ncmp     esi, 3                                                         ; +0x6, 0x10014c2f6\nja      short def_10014C309; jumptable 000000010014C309 default case   ; +0x9, 0x10014c2f9\nlea     rax, jpt_10014C309                                             ; +0xb, 0x10014c2fb\nmovsxd  rcx, (jpt_10014C309 - 10014C340h)[rax+rsi*4]                   ; +0x12, 0x10014c302\nadd     rcx, rax                                                       ; +0x16, 0x10014c306\njmp     rcx; switch jump                                               ; +0x19, 0x10014c309\naddsd   xmm0, xmm1; jumptable 000000010014C309 case 1                  ; +0x1b, 0x10014c30b\njmp     short loc_10014C32D                                            ; +0x1f, 0x10014c30f\nmulsd   xmm0, xmm1; jumptable 000000010014C309 case 3                  ; +0x21, 0x10014c311\njmp     short loc_10014C32D                                            ; +0x25, 0x10014c315\nxorpd   xmm2, xmm2; jumptable 000000010014C309 case 4                  ; +0x27, 0x10014c317\nucomisd xmm1, xmm2                                                     ; +0x2b, 0x10014c31b\njnz     short loc_10014C323                                            ; +0x2f, 0x10014c31f\njnp     short loc_10014C331                                            ; +0x31, 0x10014c321\ndivsd   xmm0, xmm1                                                     ; +0x33, 0x10014c323\njmp     short loc_10014C32D                                            ; +0x37, 0x10014c327\nsubsd   xmm0, xmm1; jumptable 000000010014C309 case 2                  ; +0x39, 0x10014c329\nmovapd  xmm2, xmm0                                                     ; +0x3d, 0x10014c32d\nmovapd  xmm0, xmm2                                                     ; +0x41, 0x10014c331\npop     rbp                                                            ; +0x45, 0x10014c335\nretn                                                                   ; +0x46, 0x10014c336\nxorps   xmm2, xmm2; jumptable 000000010014C309 default case            ; +0x47, 0x10014c337\nmovaps  xmm0, xmm2                                                     ; +0x4a, 0x10014c33a\npop     rbp                                                            ; +0x4d, 0x10014c33d\nretn                                                                   ; +0x4e, 0x10014c33e", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}