{"type": "func", "start": 4296188256, "end": 4296188335, "name": "GJBaseGameLayer::performMathOperation", "pseudocode": "// \n// GJBaseGameLayer::performMathOperation from 0x10012a160 to 0x10012a1af (79 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:24:43 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::performMathOperation(double a1, double a2, __int64 a3, int a4)\n{\n  double v5; // xmm2_8\n\n  switch ( a4 )\n  {\n    case 1:\n      return a1 + a2;\n    case 2:\n      return a1 - a2;\n    case 3:\n      return a1 * a2;\n    case 4:\n      v5 = 0.0;\n      if ( a2 == 0.0 )\n        return v5;\n      return a1 / a2;\n    default:\n      return 0.0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::performMathOperation from 0x10012a160 to 0x10012a1af (79 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:24:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x10012a160\nmov     rbp, rsp                                                       ; +0x1, 0x10012a161\ndec     esi; switch 4 cases                                            ; +0x4, 0x10012a164\ncmp     esi, 3                                                         ; +0x6, 0x10012a166\nja      short def_10012A179; jumptable 000000010012A179 default case   ; +0x9, 0x10012a169\nlea     rax, jpt_10012A179                                             ; +0xb, 0x10012a16b\nmovsxd  rcx, (jpt_10012A179 - 10012A1B0h)[rax+rsi*4]                   ; +0x12, 0x10012a172\nadd     rcx, rax                                                       ; +0x16, 0x10012a176\njmp     rcx; switch jump                                               ; +0x19, 0x10012a179\naddsd   xmm0, xmm1; jumptable 000000010012A179 case 1                  ; +0x1b, 0x10012a17b\njmp     short loc_10012A19D                                            ; +0x1f, 0x10012a17f\nmulsd   xmm0, xmm1; jumptable 000000010012A179 case 3                  ; +0x21, 0x10012a181\njmp     short loc_10012A19D                                            ; +0x25, 0x10012a185\nxorpd   xmm2, xmm2; jumptable 000000010012A179 case 4                  ; +0x27, 0x10012a187\nucomisd xmm1, xmm2                                                     ; +0x2b, 0x10012a18b\njnz     short loc_10012A193                                            ; +0x2f, 0x10012a18f\njnp     short loc_10012A1A1                                            ; +0x31, 0x10012a191\ndivsd   xmm0, xmm1                                                     ; +0x33, 0x10012a193\njmp     short loc_10012A19D                                            ; +0x37, 0x10012a197\nsubsd   xmm0, xmm1; jumptable 000000010012A179 case 2                  ; +0x39, 0x10012a199\nmovapd  xmm2, xmm0                                                     ; +0x3d, 0x10012a19d\nmovapd  xmm0, xmm2                                                     ; +0x41, 0x10012a1a1\npop     rbp                                                            ; +0x45, 0x10012a1a5\nretn                                                                   ; +0x46, 0x10012a1a6\nxorps   xmm2, xmm2; jumptable 000000010012A179 default case            ; +0x47, 0x10012a1a7\nmovaps  xmm0, xmm2                                                     ; +0x4a, 0x10012a1aa\npop     rbp                                                            ; +0x4d, 0x10012a1ad\nretn                                                                   ; +0x4e, 0x10012a1ae", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}