{"type": "func", "start": 8762008, "end": 8762048, "name": "GJBaseGameLayer::getScaledGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getScaledGroundHeight from 0x85b298 to 0x85b2c0 (40 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6c7c8\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\nfloat GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *a1, float a2)\n{\n  float m_targetCameraZoom; // s1\n\n  m_targetCameraZoom = a1->m_gameState.m_targetCameraZoom;\n  if ( m_targetCameraZoom != 1.0 )\n    return floorf((float)(a2 / m_targetCameraZoom) / 30.0) * 30.0;\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::getScaledGroundHeight from 0x85b298 to 0x85b2c0 (40 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6c7c8\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\nLDR             S1, [X0,#0x1AC]                                        ; +0x0, 0x85b298\nFMOV            S2, #1.0                                               ; +0x4, 0x85b29c\nFCMP            S1, S2                                                 ; +0x8, 0x85b2a0\nB.EQ            locret_85B2BC                                          ; +0xc, 0x85b2a4\nFDIV            S0, S0, S1                                             ; +0x10, 0x85b2a8\nFMOV            S1, #30.0                                              ; +0x14, 0x85b2ac\nFDIV            S0, S0, S1                                             ; +0x18, 0x85b2b0\nFRINTM          S0, S0                                                 ; +0x1c, 0x85b2b4\nFMUL            S0, S0, S1                                             ; +0x20, 0x85b2b8\nRET                                                                    ; +0x24, 0x85b2bc", "xrefs": ["<???> @ 0x6c7c8"], "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"}