{"type": "func", "start": 5370879312, "end": 5370879402, "name": "GJBaseGameLayer::getGroundHeightForMode", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeightForMode from 0x140211d50 to 0x140211daa (90 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateDualGround @ 0x1402131da\n// > GJBaseGameLayer::updateDualGround @ 0x14021325a\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 a2)\n{\n  unsigned int v2; // edx\n  unsigned int m_dualRelated; // edx\n  float result; // xmm0_4\n\n  v2 = a2 - 5;\n  while ( 2 )\n  {\n    switch ( v2 )\n    {\n      case 0u:\n      case 0xEu:\n      case 0x15u:\n      case 0x24u:\n        result = 300.0;\n        break;\n      case 0xBu:\n        result = 240.0;\n        break;\n      case 0x12u:\n      case 0x13u:\n        m_dualRelated = a1->m_gameState.m_dualRelated;\n        if ( m_dualRelated - 23 > 1 )\n        {\n          v2 = m_dualRelated - 5;\n          if ( v2 <= 0x24 )\n            continue;\n        }\n        goto LABEL_5;\n      default:\nLABEL_5:\n        result = 270.0;\n        break;\n    }\n    return result;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeightForMode from 0x140211d50 to 0x140211daa (90 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateDualGround @ 0x1402131da\n; > GJBaseGameLayer::updateDualGround @ 0x14021325a\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\nadd     edx, 0FFFFFFFBh; switch 37 cases                               ; +0x0, 0x140211d50\ncmp     edx, 24h                                                       ; +0x3, 0x140211d53\nja      short def_140211D77; jumptable 0000000140211D77 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x6, 0x140211d56\nlea     r8, cs:140000000h                                              ; +0x8, 0x140211d58\nnop                                                                    ; +0xf, 0x140211d5f\nmovsxd  rax, edx                                                       ; +0x10, 0x140211d60\nmovzx   eax, ds:(byte_140211DC0 - 140000000h)[r8+rax]                  ; +0x13, 0x140211d63\nmov     edx, ds:(jpt_140211D77 - 140000000h)[r8+rax*4]                 ; +0x1c, 0x140211d6c\nadd     rdx, r8                                                        ; +0x24, 0x140211d74\njmp     rdx; switch jump                                               ; +0x27, 0x140211d77\nmov     edx, [rcx+540h]; jumptable 0000000140211D77 cases 23,24        ; +0x29, 0x140211d79\nlea     eax, [rdx-17h]                                                 ; +0x2f, 0x140211d7f\ncmp     eax, 1                                                         ; +0x32, 0x140211d82\njbe     short def_140211D77; jumptable 0000000140211D77 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x35, 0x140211d85\nadd     edx, 0FFFFFFFBh                                                ; +0x37, 0x140211d87\ncmp     edx, 24h ; '$'                                                 ; +0x3a, 0x140211d8a\njbe     short loc_140211D60                                            ; +0x3d, 0x140211d8d\nmovss   xmm0, cs:dword_140623424; jumptable 0000000140211D77 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x3f, 0x140211d8f\nretn                                                                   ; +0x47, 0x140211d97\nmovss   xmm0, cs:dword_14062343C; jumptable 0000000140211D77 cases 5,19,26,41 ; +0x48, 0x140211d98\nretn                                                                   ; +0x50, 0x140211da0\nmovss   xmm0, cs:dword_140623408; jumptable 0000000140211D77 case 16   ; +0x51, 0x140211da1\nretn                                                                   ; +0x59, 0x140211da9", "xrefs": ["GJBaseGameLayer::updateDualGround @ 0x1402131da", "GJBaseGameLayer::updateDualGround @ 0x14021325a"], "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"}