{"type": "func", "start": 4296051088, "end": 4296051155, "name": "GJBaseGameLayer::getScaledGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getScaledGroundHeight from 0x100108990 to 0x1001089d3 (67 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:21:32 +0000\n// \n\n__m128 __fastcall GJBaseGameLayer::getScaledGroundHeight(__int64 a1, __m128 a2)\n{\n  __m128 v2; // xmm1\n  __m128 v3; // xmm2\n  __m128 v4; // xmm2\n  __m128 v5; // rt1\n  __m128 v6; // xmm1\n\n  v2 = (__m128)*(unsigned int *)(a1 + 428);\n  v3 = a2;\n  v3.f32[0] = (float)(a2.f32[0] / v2.f32[0]) / 30.0;\n  v4 = _mm_round_ss(v3, v3, 9);\n  v4.f32[0] = v4.f32[0] * 30.0;\n  v5.i32[0] = 1065353216;\n  v6 = _mm_cmpneq_ss(v2, v5);\n  return _mm_or_ps(_mm_and_ps(v6, v4), _mm_andnot_ps(v6, a2));\n}", "assembly": "; \n; GJBaseGameLayer::getScaledGroundHeight from 0x100108990 to 0x1001089d3 (67 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:21:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100108990\nmov     rbp, rsp                                                       ; +0x1, 0x100108991\nmovss   xmm1, dword ptr [rdi+1ACh]                                     ; +0x4, 0x100108994\nmovaps  xmm2, xmm0                                                     ; +0xc, 0x10010899c\ndivss   xmm2, xmm1                                                     ; +0xf, 0x10010899f\nmovss   xmm3, cs:dword_100A035C4                                       ; +0x13, 0x1001089a3\ndivss   xmm2, xmm3                                                     ; +0x1b, 0x1001089ab\nroundss xmm2, xmm2, 9                                                  ; +0x1f, 0x1001089af\nmulss   xmm2, xmm3                                                     ; +0x25, 0x1001089b5\ncmpneqss xmm1, cs:alpha                                                ; +0x29, 0x1001089b9\nmovaps  xmm3, xmm1                                                     ; +0x32, 0x1001089c2\nandnps  xmm3, xmm0                                                     ; +0x35, 0x1001089c5\nandps   xmm1, xmm2                                                     ; +0x38, 0x1001089c8\norps    xmm1, xmm3                                                     ; +0x3b, 0x1001089cb\nmovaps  xmm0, xmm1                                                     ; +0x3e, 0x1001089ce\npop     rbp                                                            ; +0x41, 0x1001089d1\nretn                                                                   ; +0x42, 0x1001089d2", "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"}