{"type": "func", "start": 4297591576, "end": 4297591840, "name": "GJBaseGameLayer::getGroundHeight", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeight from 0x100280b18 to 0x100280c20 (264 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::getGroundHeight @ 0x100280b30\n// > GJBaseGameLayer::updateDualGround @ 0x1002820d4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:01:55 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getGroundHeight(__int64 result, __int64 a2, int a3)\n{\n  __int64 v3; // x8\n\n  do\n  {\n    if ( (unsigned int)(a3 - 23) >= 2 )\n      break;\n    a3 = *(_DWORD *)(result + 1256);\n  }\n  while ( (unsigned int)(a3 - 23) >= 2 );\n  if ( *(_BYTE *)(result + 1010) == 1 )\n  {\n    v3 = 3256;\n    if ( *(_DWORD *)(a2 + 916) == *(_DWORD *)(*(_QWORD *)(result + 3256) + 916LL) )\n      v3 = 3264;\n    return PlayerObject::isFlying(*(_QWORD *)(result + v3));\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeight from 0x100280b18 to 0x100280c20 (264 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::getGroundHeight @ 0x100280b30\n; > GJBaseGameLayer::updateDualGround @ 0x1002820d4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:01:55 +0000\n; \nSUB             W8, W2, #0x17                                          ; +0x0, 0x100280b18\nCMP             W8, #2                                                 ; +0x4, 0x100280b1c\nB.CS            loc_100280B38                                          ; +0x8, 0x100280b20\nLDR             W2, [X0,#0x4E8]                                        ; +0xc, 0x100280b24\nSUB             W8, W2, #0x17                                          ; +0x10, 0x100280b28\nCMP             W8, #2                                                 ; +0x14, 0x100280b2c\nB.CS            GJBaseGameLayer__getGroundHeight                       ; +0x18, 0x100280b30\nB               loc_100280B78                                          ; +0x1c, 0x100280b34\nCMP             W2, #0x29 ; ')'                                        ; +0x20, 0x100280b38\nB.HI            loc_100280B78                                          ; +0x24, 0x100280b3c\nMOV             W8, W2                                                 ; +0x28, 0x100280b40\nMOV             W9, #1                                                 ; +0x2c, 0x100280b44\nLSL             X9, X9, X8                                             ; +0x30, 0x100280b48\nMOV             X10, #0x20004080020                                    ; +0x34, 0x100280b4c\nTST             X9, X10                                                ; +0x40, 0x100280b58\nB.EQ            loc_100280B68                                          ; +0x44, 0x100280b5c\nMOV             W8, #0x43960000                                        ; +0x48, 0x100280b60\nB               loc_100280B7C                                          ; +0x4c, 0x100280b64\nCMP             X8, #0x10                                              ; +0x50, 0x100280b68\nB.NE            loc_100280B78                                          ; +0x54, 0x100280b6c\nMOV             W8, #0x43700000                                        ; +0x58, 0x100280b70\nB               loc_100280B7C                                          ; +0x5c, 0x100280b74\nMOV             W8, #0x43870000                                        ; +0x60, 0x100280b78\nFMOV            S0, W8                                                 ; +0x64, 0x100280b7c\nLDRB            W8, [X0,#0x3F2]                                        ; +0x68, 0x100280b80\nCMP             W8, #1                                                 ; +0x6c, 0x100280b84\nB.NE            locret_100280C1C                                       ; +0x70, 0x100280b88\nSTP             D9, D8, [SP,#var_30]!                                  ; +0x74, 0x100280b8c\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x78, 0x100280b90\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x7c, 0x100280b94\nADD             X29, SP, #0x30+var_10                                  ; +0x80, 0x100280b98\nMOV             W8, #0x43700000                                        ; +0x84, 0x100280b9c\nFMOV            S1, W8                                                 ; +0x88, 0x100280ba0\nFCMP            S0, S1                                                 ; +0x8c, 0x100280ba4\nMOV             W8, #0x43870000                                        ; +0x90, 0x100280ba8\nFMOV            S1, W8                                                 ; +0x94, 0x100280bac\nFCSEL           S8, S1, S0, EQ                                         ; +0x98, 0x100280bb0\nLDR             W8, [X1,#0x394]                                        ; +0x9c, 0x100280bb4\nLDR             X9, [X0,#0xCB8]                                        ; +0xa0, 0x100280bb8\nLDR             W9, [X9,#0x394]                                        ; +0xa4, 0x100280bbc\nCMP             W8, W9                                                 ; +0xa8, 0x100280bc0\nMOV             W8, #0xCB8                                             ; +0xac, 0x100280bc4\nMOV             W9, #0xCC0                                             ; +0xb0, 0x100280bc8\nCSEL            X8, X9, X8, EQ                                         ; +0xb4, 0x100280bcc\nLDR             X19, [X0,X8]                                           ; +0xb8, 0x100280bd0\nMOV             X0, X19                                                ; +0xbc, 0x100280bd4\nBL              PlayerObject__isFlying                                 ; +0xc0, 0x100280bd8\nTBZ             W0, #0, loc_100280BEC                                  ; +0xc4, 0x100280bdc\nMOV             W8, #0x43960000                                        ; +0xc8, 0x100280be0\nFMOV            S0, W8                                                 ; +0xcc, 0x100280be4\nB               loc_100280C08                                          ; +0xd0, 0x100280be8\nLDRB            W8, [X19,#0x973]                                       ; +0xd4, 0x100280bec\nCMP             W8, #0                                                 ; +0xd8, 0x100280bf0\nMOV             W8, #0x43870000                                        ; +0xdc, 0x100280bf4\nFMOV            S0, W8                                                 ; +0xe0, 0x100280bf8\nMOV             W8, #0x43700000                                        ; +0xe4, 0x100280bfc\nFMOV            S1, W8                                                 ; +0xe8, 0x100280c00\nFCSEL           S0, S1, S0, NE                                         ; +0xec, 0x100280c04\nFCMP            S8, S0                                                 ; +0xf0, 0x100280c08\nFCSEL           S0, S0, S8, MI                                         ; +0xf4, 0x100280c0c\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0xf8, 0x100280c10\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0xfc, 0x100280c14\nLDP             D9, D8, [SP+0x30+var_30],#0x30                         ; +0x100, 0x100280c18\nRET                                                                    ; +0x104, 0x100280c1c", "xrefs": ["GJBaseGameLayer::getGroundHeight @ 0x100280b30", "GJBaseGameLayer::updateDualGround @ 0x1002820d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}