{"type": "func", "start": 4646328, "end": 4646386, "name": "GJBaseGameLayer::getGroundHeightForMode", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeightForMode from 0x46e5b8 to 0x46e5f2 (58 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::getGroundHeightForMode @ 0x46e5e8\n// > GJBaseGameLayer::getGroundHeight @ 0x46f208\n// > GJBaseGameLayer::getGroundHeight @ 0x46f250\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  bool v2; // zf\n\n  while ( m_dualRelated <= 24 )\n  {\n    if ( m_dualRelated < 23 )\n    {\n      if ( m_dualRelated == 16 )\n        return 240.0;\n      if ( m_dualRelated != 19 )\n      {\n        v2 = m_dualRelated == 5;\n        goto LABEL_9;\n      }\n      return 300.0;\n    }\n    m_dualRelated = a1->m_gameState.m_dualRelated;\n    if ( (unsigned int)(m_dualRelated - 23) <= 1 )\n      return 270.0;\n  }\n  if ( m_dualRelated == 33 )\n    return 270.0;\n  if ( m_dualRelated != 41 )\n  {\n    v2 = m_dualRelated == 26;\nLABEL_9:\n    if ( !v2 )\n      return 270.0;\n  }\n  return 300.0;\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeightForMode from 0x46e5b8 to 0x46e5f2 (58 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::getGroundHeightForMode @ 0x46e5e8\n; > GJBaseGameLayer::getGroundHeight @ 0x46f208\n; > GJBaseGameLayer::getGroundHeight @ 0x46f250\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\nCMP             R1, #0x18                                              ; +0x0, 0x46e5b8\nBGT             loc_46E5CC                                             ; +0x2, 0x46e5ba\nCMP             R1, #0x17                                              ; +0x4, 0x46e5bc\nBGE             loc_46E5DE                                             ; +0x6, 0x46e5be\nCMP             R1, #0x10                                              ; +0x8, 0x46e5c0\nBEQ             loc_46E5DA                                             ; +0xa, 0x46e5c2\nCMP             R1, #0x13                                              ; +0xc, 0x46e5c4\nBEQ             loc_46E5EE                                             ; +0xe, 0x46e5c6\nCMP             R1, #5                                                 ; +0x10, 0x46e5c8\nB               loc_46E5D6                                             ; +0x12, 0x46e5ca\nCMP             R1, #0x21 ; '!'                                        ; +0x14, 0x46e5cc\nBEQ             loc_46E5EA                                             ; +0x16, 0x46e5ce\nCMP             R1, #0x29 ; ')'                                        ; +0x18, 0x46e5d0\nBEQ             loc_46E5EE                                             ; +0x1a, 0x46e5d2\nCMP             R1, #0x1A                                              ; +0x1c, 0x46e5d4\nBNE             loc_46E5EA                                             ; +0x1e, 0x46e5d6\nB               loc_46E5EE                                             ; +0x20, 0x46e5d8\nLDR             R0, =0x43700000; this                                  ; +0x22, 0x46e5da\nBX              LR                                                     ; +0x24, 0x46e5dc\nLDR.W           R1, [R0,#0x440]; int                                   ; +0x26, 0x46e5de\nSUB.W           R3, R1, #0x17                                          ; +0x2a, 0x46e5e2\nCMP             R3, #1                                                 ; +0x2e, 0x46e5e6\nBHI             _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0x30, 0x46e5e8\nLDR             R0, =0x43870000                                        ; +0x32, 0x46e5ea\nBX              LR                                                     ; +0x34, 0x46e5ec\nLDR             R0, =0x43960000                                        ; +0x36, 0x46e5ee\nBX              LR                                                     ; +0x38, 0x46e5f0", "xrefs": ["GJBaseGameLayer::getGroundHeightForMode @ 0x46e5e8", "GJBaseGameLayer::getGroundHeight @ 0x46f208", "GJBaseGameLayer::getGroundHeight @ 0x46f250"], "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"}