{"type": "func", "start": 8752804, "end": 8752888, "name": "GJBaseGameLayer::getGroundHeightForMode", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeightForMode from 0x858ea4 to 0x858ef8 (84 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::getGroundHeight @ 0x85a13c\n// > GJBaseGameLayer::getGroundHeight @ 0x85a188\n// > GJBaseGameLayer::getGroundHeight @ 0x85a1b4\n// > GJBaseGameLayer::getGroundHeight @ 0x85a1c4\n// > <???> @ 0x4d238\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::getGroundHeightForMode(GJBaseGameLayer *a1, int m_dualRelated)\n{\n  float result; // s0\n\n  while ( 2 )\n  {\n    switch ( m_dualRelated )\n    {\n      case 5:\n      case 19:\n      case 26:\n      case 41:\n        result = 300.0;\n        break;\n      case 16:\n        result = 240.0;\n        break;\n      case 23:\n      case 24:\n        m_dualRelated = a1->m_gameState.m_dualRelated;\n        if ( (unsigned int)(m_dualRelated - 23) > 1 )\n          continue;\n        result = 270.0;\n        break;\n      default:\n        result = 270.0;\n        break;\n    }\n    break;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeightForMode from 0x858ea4 to 0x858ef8 (84 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::getGroundHeight @ 0x85a13c\n; > GJBaseGameLayer::getGroundHeight @ 0x85a188\n; > GJBaseGameLayer::getGroundHeight @ 0x85a1b4\n; > GJBaseGameLayer::getGroundHeight @ 0x85a1c4\n; > <???> @ 0x4d238\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\nADRL            X2, jpt_858ECC                                         ; +0x0, 0x858ea4\nSUB             W1, W1, #5; switch 37 cases                            ; +0x8, 0x858eac\nCMP             W1, #0x24                                              ; +0xc, 0x858eb0\nB.LS            loc_858EC0                                             ; +0x10, 0x858eb4\nLDR             S0, =0x43870000; jumptable 0000000000858ECC default case, cases 6-15,17,18,20-22,25,27-40 ; +0x14, 0x858eb8\nRET                                                                    ; +0x18, 0x858ebc\nLDRB            W1, [X2,W1,UXTW]                                       ; +0x1c, 0x858ec0\nADR             X3, loc_858ED0; jumptable 0000000000858ECC cases 5,19,26,41 ; +0x20, 0x858ec4\nADD             X1, X3, W1,SXTB#2                                      ; +0x24, 0x858ec8\nBR              X1; switch jump                                        ; +0x28, 0x858ecc\nLDR             S0, =0x43960000; jumptable 0000000000858ECC cases 5,19,26,41 ; +0x2c, 0x858ed0\nRET                                                                    ; +0x30, 0x858ed4\nLDR             W1, [X0,#0x540]; jumptable 0000000000858ECC cases 23,24 ; +0x34, 0x858ed8\nSUB             W3, W1, #0x17                                          ; +0x38, 0x858edc\nCMP             W3, #1                                                 ; +0x3c, 0x858ee0\nB.HI            loc_858EAC                                             ; +0x40, 0x858ee4\nLDR             S0, =0x43870000                                        ; +0x44, 0x858ee8\nB               locret_858EBC                                          ; +0x48, 0x858eec\nLDR             S0, =0x43700000; jumptable 0000000000858ECC case 16    ; +0x4c, 0x858ef0\nRET                                                                    ; +0x50, 0x858ef4", "xrefs": ["GJBaseGameLayer::getGroundHeight @ 0x85a13c", "GJBaseGameLayer::getGroundHeight @ 0x85a188", "GJBaseGameLayer::getGroundHeight @ 0x85a1b4", "GJBaseGameLayer::getGroundHeight @ 0x85a1c4", "<???> @ 0x4d238"], "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"}