{"type": "func", "start": 4295458044, "end": 4295458264, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0x100077cfc to 0x100077dd8 (220 bytes)\n// \n// 2 xrefs:\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e04\n// > EditorUI::processSmartObjectsFromType @ 0x1003f29d0\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\nint __fastcall EditorUI::convertToBaseKey(EditorUI *a1, int a2)\n{\n  int result; // w0\n\n  result = a2;\n  if ( 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 ( a2 > 2841 )\n  {\n    if ( a2 > 2845 )\n    {\n      if ( a2 <= 2847 )\n      {\n        if ( a2 != 2846 )\n          return 2839;\n        return 2838;\n      }\n      if ( a2 != 2848 )\n      {\n        if ( a2 != 2849 )\n          return result;\n        return 2841;\n      }\n    }\n    else\n    {\n      if ( a2 <= 2843 )\n      {\n        if ( a2 != 2842 )\n          return 2839;\n        return 2838;\n      }\n      if ( 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 0x100077cfc to 0x100077dd8 (220 bytes)\n; \n; 2 xrefs:\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100077e04\n; > EditorUI::processSmartObjectsFromType @ 0x1003f29d0\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\nMOV             X0, X1                                                 ; +0x0, 0x100077cfc\nCMP             W1, #0xB06                                             ; +0x4, 0x100077d00\nB.GT            loc_100077D1C                                          ; +0x8, 0x100077d04\nSUB             W8, W0, #0xAF8                                         ; +0xc, 0x100077d08\nCMP             W8, #0xF                                               ; +0x10, 0x100077d0c\nB.CS            loc_100077D38                                          ; +0x14, 0x100077d10\nMOV             W0, #0xA8F                                             ; +0x18, 0x100077d14\nRET                                                                    ; +0x1c, 0x100077d18\nCMP             W0, #0xB19                                             ; +0x20, 0x100077d1c\nB.GT            loc_100077D58                                          ; +0x24, 0x100077d20\nSUB             W8, W0, #0xB07                                         ; +0x28, 0x100077d24\nCMP             W8, #0xF                                               ; +0x2c, 0x100077d28\nB.CS            locret_100077DD4                                       ; +0x30, 0x100077d2c\nMOV             W0, #0xA90                                             ; +0x34, 0x100077d30\nRET                                                                    ; +0x38, 0x100077d34\nSUB             W8, W0, #0x363                                         ; +0x3c, 0x100077d38\nCMP             W8, #6                                                 ; +0x40, 0x100077d3c\nB.CC            loc_100077D50                                          ; +0x44, 0x100077d40\nSUB             W8, W0, #0x4F2                                         ; +0x48, 0x100077d44\nCMP             W8, #2                                                 ; +0x4c, 0x100077d48\nB.CS            locret_100077DD4                                       ; +0x50, 0x100077d4c\nMOV             W0, #0x365                                             ; +0x54, 0x100077d50\nRET                                                                    ; +0x58, 0x100077d54\nCMP             W0, #0xB1D                                             ; +0x5c, 0x100077d58\nB.GT            loc_100077D7C                                          ; +0x60, 0x100077d5c\nCMP             W0, #0xB1B                                             ; +0x64, 0x100077d60\nB.GT            loc_100077D9C                                          ; +0x68, 0x100077d64\nCMP             W0, #0xB1A                                             ; +0x6c, 0x100077d68\nB.EQ            loc_100077DC8                                          ; +0x70, 0x100077d6c\nCMP             W0, #0xB1B                                             ; +0x74, 0x100077d70\nB.EQ            loc_100077D94                                          ; +0x78, 0x100077d74\nB               locret_100077DD4                                       ; +0x7c, 0x100077d78\nCMP             W0, #0xB1F                                             ; +0x80, 0x100077d7c\nB.GT            loc_100077DB0                                          ; +0x84, 0x100077d80\nCMP             W0, #0xB1E                                             ; +0x88, 0x100077d84\nB.EQ            loc_100077DC8                                          ; +0x8c, 0x100077d88\nCMP             W0, #0xB1F                                             ; +0x90, 0x100077d8c\nB.NE            locret_100077DD4                                       ; +0x94, 0x100077d90\nMOV             W0, #0xB17                                             ; +0x98, 0x100077d94\nRET                                                                    ; +0x9c, 0x100077d98\nCMP             W0, #0xB1C                                             ; +0xa0, 0x100077d9c\nB.EQ            loc_100077DD0                                          ; +0xa4, 0x100077da0\nCMP             W0, #0xB1D                                             ; +0xa8, 0x100077da4\nB.EQ            loc_100077DC0                                          ; +0xac, 0x100077da8\nB               locret_100077DD4                                       ; +0xb0, 0x100077dac\nCMP             W0, #0xB20                                             ; +0xb4, 0x100077db0\nB.EQ            loc_100077DD0                                          ; +0xb8, 0x100077db4\nCMP             W0, #0xB21                                             ; +0xbc, 0x100077db8\nB.NE            locret_100077DD4                                       ; +0xc0, 0x100077dbc\nMOV             W0, #0xB19                                             ; +0xc4, 0x100077dc0\nRET                                                                    ; +0xc8, 0x100077dc4\nMOV             W0, #0xB16                                             ; +0xcc, 0x100077dc8\nRET                                                                    ; +0xd0, 0x100077dcc\nMOV             W0, #0xB18                                             ; +0xd4, 0x100077dd0\nRET                                                                    ; +0xd8, 0x100077dd4", "xrefs": ["EditorUI::convertKeyBasedOnNeighbors @ 0x100077e04", "EditorUI::processSmartObjectsFromType @ 0x1003f29d0"], "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"}