{"type": "func", "start": 4296188352, "end": 4296188422, "name": "GJBaseGameLayer::performMathRounding", "pseudocode": "// \n// GJBaseGameLayer::performMathRounding from 0x10012a1c0 to 0x10012a206 (70 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\n__m128d __fastcall GJBaseGameLayer::performMathRounding(__m128d result, __int64 a2, int a3)\n{\n  __m128d v3; // xmm1\n\n  switch ( a3 )\n  {\n    case 3:\n      return _mm_round_sd(result, result, 10);\n    case 2:\n      return _mm_round_sd(result, result, 9);\n    case 1:\n      v3 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100A04960, result), (__m128d)xmmword_100A04D50);\n      v3.f64[0] = v3.f64[0] + result.f64[0];\n      return _mm_round_sd((__m128d)0LL, v3, 11);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::performMathRounding from 0x10012a1c0 to 0x10012a206 (70 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, 0x10012a1c0\nmov     rbp, rsp                                                       ; +0x1, 0x10012a1c1\ncmp     esi, 3                                                         ; +0x4, 0x10012a1c4\njz      short loc_10012A1FE                                            ; +0x7, 0x10012a1c7\ncmp     esi, 2                                                         ; +0x9, 0x10012a1c9\njz      short loc_10012A1F6                                            ; +0xc, 0x10012a1cc\ncmp     esi, 1                                                         ; +0xe, 0x10012a1ce\njnz     short loc_10012A204                                            ; +0x11, 0x10012a1d1\nmovapd  xmm1, cs:xmmword_100A04960                                     ; +0x13, 0x10012a1d3\nandpd   xmm1, xmm0                                                     ; +0x1b, 0x10012a1db\norpd    xmm1, cs:xmmword_100A04D50                                     ; +0x1f, 0x10012a1df\naddsd   xmm1, xmm0                                                     ; +0x27, 0x10012a1e7\nxorps   xmm0, xmm0                                                     ; +0x2b, 0x10012a1eb\nroundsd xmm0, xmm1, 0Bh                                                ; +0x2e, 0x10012a1ee\npop     rbp                                                            ; +0x34, 0x10012a1f4\nretn                                                                   ; +0x35, 0x10012a1f5\nroundsd xmm0, xmm0, 9                                                  ; +0x36, 0x10012a1f6\npop     rbp                                                            ; +0x3c, 0x10012a1fc\nretn                                                                   ; +0x3d, 0x10012a1fd\nroundsd xmm0, xmm0, 0Ah                                                ; +0x3e, 0x10012a1fe\npop     rbp                                                            ; +0x44, 0x10012a204\nretn                                                                   ; +0x45, 0x10012a205", "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"}