{"type": "func", "start": 8757536, "end": 8757708, "name": "GJBaseGameLayer::getGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeight from 0x85a120 to 0x85a1cc (172 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateDualGround @ 0x87fed8\n// > <???> @ 0x2b920\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::getGroundHeight(GJBaseGameLayer *a1, PlayerObject *a2, int a3)\n{\n  float GroundHeightForMode; // s8\n  PlayerObject *OtherPlayer; // x20\n  float v7; // s0\n\n  GroundHeightForMode = GJBaseGameLayer::getGroundHeightForMode(a1, a3);\n  if ( a1->m_gameState.m_isDualMode )\n  {\n    if ( GroundHeightForMode == 240.0 )\n      GroundHeightForMode = 270.0;\n    OtherPlayer = GJBaseGameLayer::getOtherPlayer(a1, a2);\n    if ( PlayerObject::isFlying(OtherPlayer) )\n    {\n      v7 = GJBaseGameLayer::getGroundHeightForMode(a1, 5);\n    }\n    else if ( OtherPlayer->m_isBall )\n    {\n      v7 = GJBaseGameLayer::getGroundHeightForMode(a1, 16);\n    }\n    else\n    {\n      v7 = GJBaseGameLayer::getGroundHeightForMode(a1, 6);\n    }\n    if ( GroundHeightForMode < v7 )\n      return v7;\n  }\n  return GroundHeightForMode;\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeight from 0x85a120 to 0x85a1cc (172 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateDualGround @ 0x87fed8\n; > <???> @ 0x2b920\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x85a120\nMOV             X29, SP                                                ; +0x4, 0x85a124\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x85a128\nMOV             X19, X0                                                ; +0xc, 0x85a12c\nMOV             X20, X1                                                ; +0x10, 0x85a130\nMOV             W1, W2; int                                            ; +0x14, 0x85a134\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x18, 0x85a138\nBL              _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0x1c, 0x85a13c\nLDRB            W0, [X19,#0x412]                                       ; +0x20, 0x85a140\nFMOV            S8, S0                                                 ; +0x24, 0x85a144\nCBZ             W0, loc_85A198                                         ; +0x28, 0x85a148\nLDR             S0, =0x43700000                                        ; +0x2c, 0x85a14c\nFCMP            S8, S0                                                 ; +0x30, 0x85a150\nB.NE            loc_85A15C                                             ; +0x34, 0x85a154\nLDR             S8, =0x43870000                                        ; +0x38, 0x85a158\nMOV             X1, X20; PlayerObject *                                ; +0x3c, 0x85a15c\nMOV             X0, X19; this                                          ; +0x40, 0x85a160\nBL              _ZN15GJBaseGameLayer14getOtherPlayerEP12PlayerObject; GJBaseGameLayer::getOtherPlayer(PlayerObject *) ; +0x44, 0x85a164\nMOV             X20, X0                                                ; +0x48, 0x85a168\nBL              _ZN12PlayerObject8isFlyingEv; PlayerObject::isFlying(void) ; +0x4c, 0x85a16c\nUXTB            W0, W0                                                 ; +0x50, 0x85a170\nCBNZ            W0, loc_85A1BC                                         ; +0x54, 0x85a174\nLDRB            W0, [X20,#0x993]                                       ; +0x58, 0x85a178\nCBZ             W0, loc_85A1AC                                         ; +0x5c, 0x85a17c\nMOV             X0, X19; this                                          ; +0x60, 0x85a180\nMOV             W1, #0x10; int                                         ; +0x64, 0x85a184\nBL              _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0x68, 0x85a188\nFCMPE           S8, S0                                                 ; +0x6c, 0x85a18c\nB.PL            loc_85A198                                             ; +0x70, 0x85a190\nFMOV            S8, S0                                                 ; +0x74, 0x85a194\nFMOV            S0, S8                                                 ; +0x78, 0x85a198\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x7c, 0x85a19c\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x80, 0x85a1a0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x85a1a4\nRET                                                                    ; +0x88, 0x85a1a8\nMOV             X0, X19; this                                          ; +0x8c, 0x85a1ac\nMOV             W1, #6; int                                            ; +0x90, 0x85a1b0\nBL              _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0x94, 0x85a1b4\nB               loc_85A18C                                             ; +0x98, 0x85a1b8\nMOV             X0, X19; this                                          ; +0x9c, 0x85a1bc\nMOV             W1, #5; int                                            ; +0xa0, 0x85a1c0\nBL              _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0xa4, 0x85a1c4\nB               loc_85A18C                                             ; +0xa8, 0x85a1c8", "xrefs": ["GJBaseGameLayer::updateDualGround @ 0x87fed8", "<???> @ 0x2b920"], "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"}