{"type": "func", "start": 4652172, "end": 4652238, "name": "GJBaseGameLayer::getScaledGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getScaledGroundHeight from 0x46fc8c to 0x46fcce (66 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\nfloat GJBaseGameLayer::getScaledGroundHeight(GJBaseGameLayer *a1, float a2)\n{\n  float m_targetCameraZoom; // s14\n  float v3; // s15\n\n  m_targetCameraZoom = a1->m_gameState.m_targetCameraZoom;\n  v3 = a2;\n  if ( m_targetCameraZoom != 1.0 )\n    return floorf((float)(a2 / m_targetCameraZoom) / 30.0) * 30.0;\n  return v3;\n}", "assembly": "; \n; GJBaseGameLayer::getScaledGroundHeight from 0x46fc8c to 0x46fcce (66 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\nVMOV.F32        S13, #1.0                                              ; +0x0, 0x46fc8c\nVLDR            S14, [R0,#0x14C]                                       ; +0x4, 0x46fc90\nPUSH            {R3,LR}                                                ; +0x8, 0x46fc94\nVMOV            S15, R1                                                ; +0xa, 0x46fc96\nVPUSH           {D8}                                                   ; +0xe, 0x46fc9a\nVCMP.F32        S14, S13                                               ; +0x12, 0x46fc9e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x16, 0x46fca2\nBEQ             loc_46FCC4                                             ; +0x1a, 0x46fca6\nVDIV.F32        S15, S15, S14                                          ; +0x1c, 0x46fca8\nVMOV.F32        S16, #30.0                                             ; +0x20, 0x46fcac\nVDIV.F32        S15, S15, S16                                          ; +0x24, 0x46fcb0\nVMOV            R0, S15; x                                             ; +0x28, 0x46fcb4\nBLX             floorf                                                 ; +0x2c, 0x46fcb8\nVMOV            S15, R0                                                ; +0x30, 0x46fcbc\nVMUL.F32        S15, S15, S16                                          ; +0x34, 0x46fcc0\nVPOP            {D8}                                                   ; +0x38, 0x46fcc4\nVMOV            R0, S15                                                ; +0x3c, 0x46fcc8\nPOP             {R3,PC}                                                ; +0x40, 0x46fccc", "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"}