{"type": "func", "start": 5371956272, "end": 5371956364, "name": "GJBaseGameLayer::getGroundHeightForMode", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeightForMode from 0x140318c30 to 0x140318c8c (92 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateDualGround @ 0x14031a4fa\n// > GJBaseGameLayer::updateDualGround @ 0x14031a57a\n// \n// This function is hookable on this platform (idp: pc, 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:30:19 +0000\n// \n\nfloat __fastcall GJBaseGameLayer::getGroundHeightForMode(__int64 a1, int a2)\n{\n  unsigned int v2; // edx\n  int v3; // 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        v3 = *(_DWORD *)(a1 + 1344);\n        if ( v3 != 23 && v3 != 24 )\n        {\n          v2 = v3 - 5;\n          if ( v2 <= 0x24 )\n            continue;\n        }\n        goto LABEL_6;\n      default:\nLABEL_6:\n        result = 270.0;\n        break;\n    }\n    return result;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeightForMode from 0x140318c30 to 0x140318c8c (92 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateDualGround @ 0x14031a4fa\n; > GJBaseGameLayer::updateDualGround @ 0x14031a57a\n; \n; This function is hookable on this platform (idp: pc, 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:30:19 +0000\n; \nadd     edx, 0FFFFFFFBh; switch 37 cases                               ; +0x0, 0x140318c30\ncmp     edx, 24h                                                       ; +0x3, 0x140318c33\nja      short def_140318C57; jumptable 0000000140318C57 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x6, 0x140318c36\nlea     r8, cs:140000000h                                              ; +0x8, 0x140318c38\nnop                                                                    ; +0xf, 0x140318c3f\nmovsxd  rax, edx                                                       ; +0x10, 0x140318c40\nmovzx   eax, ds:(byte_140318CA0 - 140000000h)[r8+rax]                  ; +0x13, 0x140318c43\nmov     edx, ds:(jpt_140318C57 - 140000000h)[r8+rax*4]                 ; +0x1c, 0x140318c4c\nadd     rdx, r8                                                        ; +0x24, 0x140318c54\njmp     rdx; switch jump                                               ; +0x27, 0x140318c57\nmov     edx, [rcx+540h]; jumptable 0000000140318C57 cases 23,24        ; +0x29, 0x140318c59\ncmp     edx, 17h                                                       ; +0x2f, 0x140318c5f\njz      short def_140318C57; jumptable 0000000140318C57 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x32, 0x140318c62\ncmp     edx, 18h                                                       ; +0x34, 0x140318c64\njz      short def_140318C57; jumptable 0000000140318C57 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x37, 0x140318c67\nadd     edx, 0FFFFFFFBh                                                ; +0x39, 0x140318c69\ncmp     edx, 24h ; '$'                                                 ; +0x3c, 0x140318c6c\njbe     short loc_140318C40                                            ; +0x3f, 0x140318c6f\nmovss   xmm0, cs:dword_14083597C; jumptable 0000000140318C57 default case, cases 6-15,17,18,20-22,25,27-40 ; +0x41, 0x140318c71\nretn                                                                   ; +0x49, 0x140318c79\nmovss   xmm0, cs:dword_1408359A4; jumptable 0000000140318C57 cases 5,19,26,41 ; +0x4a, 0x140318c7a\nretn                                                                   ; +0x52, 0x140318c82\nmovss   xmm0, cs:dword_140835950; jumptable 0000000140318C57 case 16   ; +0x53, 0x140318c83\nretn                                                                   ; +0x5b, 0x140318c8b", "xrefs": ["GJBaseGameLayer::updateDualGround @ 0x14031a4fa", "GJBaseGameLayer::updateDualGround @ 0x14031a57a"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}