{"type": "func", "start": 4296190528, "end": 4296190595, "name": "GJBaseGameLayer::getScaledGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getScaledGroundHeight from 0x10012aa40 to 0x10012aa83 (67 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!\nfloat __fastcall GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *a1, float a2)\n{\n  __m128 m_targetCameraZoom_low; // xmm1\n  __m128 v3; // xmm2\n  __m128 v4; // rt1\n  __m128 v5; // xmm1\n  float result; // xmm0_4\n\n  m_targetCameraZoom_low = (__m128)LODWORD(a1->m_gameState.m_targetCameraZoom);\n  v3 = *(__m128 *)&a2;\n  v3.f32[0] = (float)(a2 / m_targetCameraZoom_low.f32[0]) / 30.0;\n  v4.i32[0] = 1065353216;\n  v5 = _mm_cmpneq_ss(m_targetCameraZoom_low, v4);\n  LODWORD(result) = v5.i32[0] & COERCE_UNSIGNED_INT(_mm_round_ss(v3, v3, 9).f32[0] * 30.0)\n                  | _mm_andnot_ps(v5, *(__m128 *)&a2).u32[0];\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getScaledGroundHeight from 0x10012aa40 to 0x10012aa83 (67 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, 0x10012aa40\nmov     rbp, rsp                                                       ; +0x1, 0x10012aa41\nmovss   xmm1, dword ptr [rdi+1ACh]                                     ; +0x4, 0x10012aa44\nmovaps  xmm2, xmm0                                                     ; +0xc, 0x10012aa4c\ndivss   xmm2, xmm1                                                     ; +0xf, 0x10012aa4f\nmovss   xmm3, cs:dword_100814FD0                                       ; +0x13, 0x10012aa53\ndivss   xmm2, xmm3                                                     ; +0x1b, 0x10012aa5b\nroundss xmm2, xmm2, 9                                                  ; +0x1f, 0x10012aa5f\nmulss   xmm2, xmm3                                                     ; +0x25, 0x10012aa65\ncmpneqss xmm1, cs:alpha                                                ; +0x29, 0x10012aa69\nmovaps  xmm3, xmm1                                                     ; +0x32, 0x10012aa72\nandnps  xmm3, xmm0                                                     ; +0x35, 0x10012aa75\nandps   xmm1, xmm2                                                     ; +0x38, 0x10012aa78\norps    xmm1, xmm3                                                     ; +0x3b, 0x10012aa7b\nmovaps  xmm0, xmm1                                                     ; +0x3e, 0x10012aa7e\npop     rbp                                                            ; +0x41, 0x10012aa81\nretn                                                                   ; +0x42, 0x10012aa82", "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"}