{"type": "func", "start": 4649468, "end": 4649590, "name": "GJBaseGameLayer::getGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeight from 0x46f1fc to 0x46f276 (122 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateDualGround @ 0x487dba\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; // r0\n  float v6; // s16\n  PlayerObject *OtherPlayer; // r5\n  GJBaseGameLayer *v8; // r0\n  int v9; // r1\n  float v10; // s15\n\n  GroundHeightForMode = GJBaseGameLayer::getGroundHeightForMode(a1, a3);\n  v6 = GroundHeightForMode;\n  if ( !a1->m_gameState.m_isDualMode )\n    return GroundHeightForMode;\n  if ( GroundHeightForMode == 240.0 )\n    v6 = 270.0;\n  OtherPlayer = GJBaseGameLayer::getOtherPlayer(a1, a2);\n  if ( PlayerObject::isFlying(OtherPlayer) )\n  {\n    v8 = a1;\n    v9 = 5;\n  }\n  else\n  {\n    v8 = a1;\n    if ( OtherPlayer->m_isBall )\n      v9 = 16;\n    else\n      v9 = 6;\n  }\n  v10 = GJBaseGameLayer::getGroundHeightForMode(v8, v9);\n  if ( v6 >= v10 )\n    return v6;\n  return v10;\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeight from 0x46f1fc to 0x46f276 (122 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateDualGround @ 0x487dba\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x46f1fc\nMOV             R5, R1                                                 ; +0x2, 0x46f1fe\nVPUSH           {D8}                                                   ; +0x4, 0x46f200\nMOV             R1, R2; int                                            ; +0x8, 0x46f204\nMOV             R4, R0                                                 ; +0xa, 0x46f206\nBL              _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0xc, 0x46f208\nLDRB.W          R3, [R4,#0x372]                                        ; +0x10, 0x46f20c\nVMOV            S16, R0                                                ; +0x14, 0x46f210\nCBZ             R3, loc_46F268                                         ; +0x18, 0x46f214\nVLDR            S15, =240.0                                            ; +0x1a, 0x46f216\nMOV             R1, R5; PlayerObject *                                 ; +0x1e, 0x46f21a\nMOV             R0, R4; this                                           ; +0x20, 0x46f21c\nVCMP.F32        S16, S15                                               ; +0x22, 0x46f21e\nVLDR            S15, =270.0                                            ; +0x26, 0x46f222\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x46f226\nIT EQ                                                                  ; +0x2e, 0x46f22a\nVMOVEQ.F32      S16, S15                                               ; +0x30, 0x46f22c\nBL              _ZN15GJBaseGameLayer14getOtherPlayerEP12PlayerObject; GJBaseGameLayer::getOtherPlayer(PlayerObject *) ; +0x34, 0x46f230\nMOV             R5, R0                                                 ; +0x38, 0x46f234\nBL              _ZN12PlayerObject8isFlyingEv; PlayerObject::isFlying(void) ; +0x3a, 0x46f236\nCBZ             R0, loc_46F242                                         ; +0x3e, 0x46f23a\nMOV             R0, R4                                                 ; +0x40, 0x46f23c\nMOVS            R1, #5                                                 ; +0x42, 0x46f23e\nB               loc_46F250                                             ; +0x44, 0x46f240\nLDRB.W          R3, [R5,#0x7B3]                                        ; +0x46, 0x46f242\nMOV             R0, R4; this                                           ; +0x4a, 0x46f246\nCBZ             R3, loc_46F24E                                         ; +0x4c, 0x46f248\nMOVS            R1, #0x10                                              ; +0x4e, 0x46f24a\nB               loc_46F250                                             ; +0x50, 0x46f24c\nMOVS            R1, #6; int                                            ; +0x52, 0x46f24e\nBL              _ZN15GJBaseGameLayer22getGroundHeightForModeEi; GJBaseGameLayer::getGroundHeightForMode(int) ; +0x54, 0x46f250\nVMOV            S15, R0                                                ; +0x58, 0x46f254\nVCMPE.F32       S16, S15                                               ; +0x5c, 0x46f258\nVMRS            APSR_nzcv, FPSCR                                       ; +0x60, 0x46f25c\nIT PL                                                                  ; +0x64, 0x46f260\nVMOVPL.F32      S15, S16                                               ; +0x66, 0x46f262\nB               loc_46F26C                                             ; +0x6a, 0x46f266\nVMOV            S15, R0                                                ; +0x6c, 0x46f268\nVPOP            {D8}                                                   ; +0x70, 0x46f26c\nVMOV            R0, S15                                                ; +0x74, 0x46f270\nPOP             {R3-R5,PC}                                             ; +0x78, 0x46f274", "xrefs": ["GJBaseGameLayer::updateDualGround @ 0x487dba"], "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"}