{"type": "func", "start": 4296328016, "end": 4296328086, "name": "GJBaseGameLayer::performMathRounding", "pseudocode": "// \n// GJBaseGameLayer::performMathRounding from 0x10014c350 to 0x10014c396 (70 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\n// local variable allocation has failed, the output may be wrong!\ndouble __fastcall GJBaseGameLayer::performMathRounding(GJBaseGameLayer *a1, double a2, int a3)\n{\n  __m128d v3; // xmm1\n\n  switch ( a3 )\n  {\n    case 3:\n      return _mm_round_sd(*(__m128d *)&a2, *(__m128d *)&a2, 10).f64[0];\n    case 2:\n      return _mm_round_sd(*(__m128d *)&a2, *(__m128d *)&a2, 9).f64[0];\n    case 1:\n      v3 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100816590, *(__m128d *)&a2), (__m128d)xmmword_100816960);\n      v3.f64[0] = v3.f64[0] + a2;\n      return _mm_round_sd((__m128d)0LL, v3, 11).f64[0];\n  }\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::performMathRounding from 0x10014c350 to 0x10014c396 (70 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, 0x10014c350\nmov     rbp, rsp                                                       ; +0x1, 0x10014c351\ncmp     esi, 3                                                         ; +0x4, 0x10014c354\njz      short loc_10014C38E                                            ; +0x7, 0x10014c357\ncmp     esi, 2                                                         ; +0x9, 0x10014c359\njz      short loc_10014C386                                            ; +0xc, 0x10014c35c\ncmp     esi, 1                                                         ; +0xe, 0x10014c35e\njnz     short loc_10014C394                                            ; +0x11, 0x10014c361\nmovapd  xmm1, cs:xmmword_100816590                                     ; +0x13, 0x10014c363\nandpd   xmm1, xmm0                                                     ; +0x1b, 0x10014c36b\norpd    xmm1, cs:xmmword_100816960                                     ; +0x1f, 0x10014c36f\naddsd   xmm1, xmm0                                                     ; +0x27, 0x10014c377\nxorps   xmm0, xmm0                                                     ; +0x2b, 0x10014c37b\nroundsd xmm0, xmm1, 0Bh                                                ; +0x2e, 0x10014c37e\npop     rbp                                                            ; +0x34, 0x10014c384\nretn                                                                   ; +0x35, 0x10014c385\nroundsd xmm0, xmm0, 9                                                  ; +0x36, 0x10014c386\npop     rbp                                                            ; +0x3c, 0x10014c38c\nretn                                                                   ; +0x3d, 0x10014c38d\nroundsd xmm0, xmm0, 0Ah                                                ; +0x3e, 0x10014c38e\npop     rbp                                                            ; +0x44, 0x10014c394\nretn                                                                   ; +0x45, 0x10014c395", "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"}