{"type": "func", "start": 4296159152, "end": 4296159240, "name": "GJBaseGameLayer::getGroundHeightForMode", "pseudocode": "// \n// GJBaseGameLayer::getGroundHeightForMode from 0x100122fb0 to 0x100123008 (88 bytes)\n// \n// 0 xrefs:\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 __fastcall GJBaseGameLayer::getGroundHeightForMode(GJBaseGameLayer *a1, int m_dualRelated)\n{\n  float result; // xmm0_4\n  __int64 v3; // rcx\n\n  result = 300.0;\n  while ( (unsigned int)(m_dualRelated - 23) < 2 )\n  {\n    m_dualRelated = a1->m_gameState.m_dualRelated;\n    if ( (unsigned int)(m_dualRelated - 23) < 2 )\n      return 270.0;\n  }\n  if ( (unsigned int)m_dualRelated <= 0x29 )\n  {\n    v3 = 0x20004080020LL;\n    if ( _bittest64(&v3, (unsigned int)m_dualRelated) )\n      return result;\n    if ( m_dualRelated == 16 )\n      return 240.0;\n  }\n  return 270.0;\n}", "assembly": "; \n; GJBaseGameLayer::getGroundHeightForMode from 0x100122fb0 to 0x100123008 (88 bytes)\n; \n; 0 xrefs:\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\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x0, 0x100122fb0\nmovss   xmm1, cs:dword_100815414                                       ; +0x8, 0x100122fb8\nlea     eax, [rsi-17h]                                                 ; +0x10, 0x100122fc0\ncmp     eax, 2                                                         ; +0x13, 0x100122fc3\njnb     short loc_100122FD8                                            ; +0x16, 0x100122fc6\nmov     esi, [rdi+4E8h]                                                ; +0x18, 0x100122fc8\nlea     eax, [rsi-17h]                                                 ; +0x1e, 0x100122fce\ncmp     eax, 2                                                         ; +0x21, 0x100122fd1\njnb     short loc_100122FC0                                            ; +0x24, 0x100122fd4\njmp     short loc_100123004                                            ; +0x26, 0x100122fd6\ncmp     esi, 29h ; ')'                                                 ; +0x28, 0x100122fd8\nja      short loc_100123004                                            ; +0x2b, 0x100122fdb\nmov     eax, esi                                                       ; +0x2d, 0x100122fdd\nmov     rcx, 20004080020h                                              ; +0x2f, 0x100122fdf\nbt      rcx, rax                                                       ; +0x39, 0x100122fe9\njnb     short loc_100122FF0                                            ; +0x3d, 0x100122fed\nretn                                                                   ; +0x3f, 0x100122fef\ncmp     rax, 10h                                                       ; +0x40, 0x100122ff0\njnz     short loc_100123004                                            ; +0x44, 0x100122ff4\npush    rbp                                                            ; +0x46, 0x100122ff6\nmov     rbp, rsp                                                       ; +0x47, 0x100122ff7\nmovss   xmm0, cs:dword_100815B84                                       ; +0x4a, 0x100122ffa\npop     rbp                                                            ; +0x52, 0x100123002\nretn                                                                   ; +0x53, 0x100123003\nmovaps  xmm0, xmm1                                                     ; +0x54, 0x100123004\nretn                                                                   ; +0x57, 0x100123007", "xrefs": [], "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"}