{"type": "func", "start": 4295492784, "end": 4295493004, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0x1000804b0 to 0x10008058c (220 bytes)\n// \n// 2 xrefs:\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x1000805b8\n// > EditorUI::processSmartObjectsFromType @ 0x100479ef8\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 10:58:17 +0000\n// \n\n__int64 __fastcall EditorUI::convertToBaseKey(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n\n  result = a2;\n  if ( (int)a2 <= 2822 )\n  {\n    if ( (unsigned int)(a2 - 2808) < 0xF )\n      return 2703;\n    if ( (unsigned int)(a2 - 867) < 6 || (unsigned int)(a2 - 1266) < 2 )\n      return 869;\n    return result;\n  }\n  if ( (int)a2 > 2841 )\n  {\n    if ( (int)a2 > 2845 )\n    {\n      if ( (int)a2 <= 2847 )\n      {\n        if ( (_DWORD)a2 != 2846 )\n          return 2839;\n        return 2838;\n      }\n      if ( (_DWORD)a2 != 2848 )\n      {\n        if ( (_DWORD)a2 != 2849 )\n          return result;\n        return 2841;\n      }\n    }\n    else\n    {\n      if ( (int)a2 <= 2843 )\n      {\n        if ( (_DWORD)a2 != 2842 )\n          return 2839;\n        return 2838;\n      }\n      if ( (_DWORD)a2 != 2844 )\n        return 2841;\n    }\n    return 2840;\n  }\n  if ( (unsigned int)(a2 - 2823) < 0xF )\n    return 2704;\n  return result;\n}", "assembly": "; \n; EditorUI::convertToBaseKey from 0x1000804b0 to 0x10008058c (220 bytes)\n; \n; 2 xrefs:\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x1000805b8\n; > EditorUI::processSmartObjectsFromType @ 0x100479ef8\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 10:58:17 +0000\n; \nMOV             X0, X1                                                 ; +0x0, 0x1000804b0\nCMP             W1, #0xB06                                             ; +0x4, 0x1000804b4\nB.GT            loc_1000804D0                                          ; +0x8, 0x1000804b8\nSUB             W8, W0, #0xAF8                                         ; +0xc, 0x1000804bc\nCMP             W8, #0xF                                               ; +0x10, 0x1000804c0\nB.CS            loc_1000804EC                                          ; +0x14, 0x1000804c4\nMOV             W0, #0xA8F                                             ; +0x18, 0x1000804c8\nRET                                                                    ; +0x1c, 0x1000804cc\nCMP             W0, #0xB19                                             ; +0x20, 0x1000804d0\nB.GT            loc_10008050C                                          ; +0x24, 0x1000804d4\nSUB             W8, W0, #0xB07                                         ; +0x28, 0x1000804d8\nCMP             W8, #0xF                                               ; +0x2c, 0x1000804dc\nB.CS            locret_100080588                                       ; +0x30, 0x1000804e0\nMOV             W0, #0xA90                                             ; +0x34, 0x1000804e4\nRET                                                                    ; +0x38, 0x1000804e8\nSUB             W8, W0, #0x363                                         ; +0x3c, 0x1000804ec\nCMP             W8, #6                                                 ; +0x40, 0x1000804f0\nB.CC            loc_100080504                                          ; +0x44, 0x1000804f4\nSUB             W8, W0, #0x4F2                                         ; +0x48, 0x1000804f8\nCMP             W8, #2                                                 ; +0x4c, 0x1000804fc\nB.CS            locret_100080588                                       ; +0x50, 0x100080500\nMOV             W0, #0x365                                             ; +0x54, 0x100080504\nRET                                                                    ; +0x58, 0x100080508\nCMP             W0, #0xB1D                                             ; +0x5c, 0x10008050c\nB.GT            loc_100080530                                          ; +0x60, 0x100080510\nCMP             W0, #0xB1B                                             ; +0x64, 0x100080514\nB.GT            loc_100080550                                          ; +0x68, 0x100080518\nCMP             W0, #0xB1A                                             ; +0x6c, 0x10008051c\nB.EQ            loc_10008057C                                          ; +0x70, 0x100080520\nCMP             W0, #0xB1B                                             ; +0x74, 0x100080524\nB.EQ            loc_100080548                                          ; +0x78, 0x100080528\nB               locret_100080588                                       ; +0x7c, 0x10008052c\nCMP             W0, #0xB1F                                             ; +0x80, 0x100080530\nB.GT            loc_100080564                                          ; +0x84, 0x100080534\nCMP             W0, #0xB1E                                             ; +0x88, 0x100080538\nB.EQ            loc_10008057C                                          ; +0x8c, 0x10008053c\nCMP             W0, #0xB1F                                             ; +0x90, 0x100080540\nB.NE            locret_100080588                                       ; +0x94, 0x100080544\nMOV             W0, #0xB17                                             ; +0x98, 0x100080548\nRET                                                                    ; +0x9c, 0x10008054c\nCMP             W0, #0xB1C                                             ; +0xa0, 0x100080550\nB.EQ            loc_100080584                                          ; +0xa4, 0x100080554\nCMP             W0, #0xB1D                                             ; +0xa8, 0x100080558\nB.EQ            loc_100080574                                          ; +0xac, 0x10008055c\nB               locret_100080588                                       ; +0xb0, 0x100080560\nCMP             W0, #0xB20                                             ; +0xb4, 0x100080564\nB.EQ            loc_100080584                                          ; +0xb8, 0x100080568\nCMP             W0, #0xB21                                             ; +0xbc, 0x10008056c\nB.NE            locret_100080588                                       ; +0xc0, 0x100080570\nMOV             W0, #0xB19                                             ; +0xc4, 0x100080574\nRET                                                                    ; +0xc8, 0x100080578\nMOV             W0, #0xB16                                             ; +0xcc, 0x10008057c\nRET                                                                    ; +0xd0, 0x100080580\nMOV             W0, #0xB18                                             ; +0xd4, 0x100080584\nRET                                                                    ; +0xd8, 0x100080588", "xrefs": ["EditorUI::convertKeyBasedOnNeighbors @ 0x1000805b8", "EditorUI::processSmartObjectsFromType @ 0x100479ef8"], "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"}