{"type": "func", "start": 10270604, "end": 10270776, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0x9cb78c to 0x9cb838 (172 bytes)\n// \n// 3 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x68a394\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x9cb878\n// > <???> @ 0xb8f08\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 EditorUI::convertToBaseKey(EditorUI *a1, int a2)\n{\n  int result; // w0\n\n  if ( a2 > 2837 )\n  {\n    if ( a2 == 2845 )\n      return 2841;\n    if ( a2 <= 2845 )\n    {\n      if ( a2 != 2843 )\n      {\n        if ( a2 > 2843 )\n          return 2840;\n        if ( a2 != 2842 )\n          return a2;\n        return 2838;\n      }\n    }\n    else if ( a2 != 2847 )\n    {\n      if ( a2 >= 2847 )\n      {\n        if ( a2 != 2848 )\n        {\n          if ( a2 == 2849 )\n            return 2841;\n          return a2;\n        }\n        return 2840;\n      }\n      return 2838;\n    }\n    return 2839;\n  }\n  if ( a2 >= 2823 )\n    return 2704;\n  if ( a2 <= 1267 )\n  {\n    if ( a2 >= 1266 || (unsigned int)(a2 - 867) <= 5 )\n      return 869;\n    return a2;\n  }\n  result = 2703;\n  if ( a2 < 2808 )\n    return a2;\n  return result;\n}", "assembly": "; \n; EditorUI::convertToBaseKey from 0x9cb78c to 0x9cb838 (172 bytes)\n; \n; 3 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x68a394\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x9cb878\n; > <???> @ 0xb8f08\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\nCMP             W1, #0xB15                                             ; +0x0, 0x9cb78c\nB.LE            loc_9CB7E0                                             ; +0x4, 0x9cb790\nCMP             W1, #0xB1D                                             ; +0x8, 0x9cb794\nB.EQ            loc_9CB7BC                                             ; +0xc, 0x9cb798\nB.LE            loc_9CB7C4                                             ; +0x10, 0x9cb79c\nCMP             W1, #0xB1F                                             ; +0x14, 0x9cb7a0\nB.EQ            loc_9CB820                                             ; +0x18, 0x9cb7a4\nB.LT            loc_9CB7D8                                             ; +0x1c, 0x9cb7a8\nCMP             W1, #0xB20                                             ; +0x20, 0x9cb7ac\nB.EQ            loc_9CB828                                             ; +0x24, 0x9cb7b0\nCMP             W1, #0xB21                                             ; +0x28, 0x9cb7b4\nB.NE            loc_9CB818                                             ; +0x2c, 0x9cb7b8\nMOV             W0, #0xB19                                             ; +0x30, 0x9cb7bc\nRET                                                                    ; +0x34, 0x9cb7c0\nCMP             W1, #0xB1B                                             ; +0x38, 0x9cb7c4\nB.EQ            loc_9CB820                                             ; +0x3c, 0x9cb7c8\nB.GT            loc_9CB828                                             ; +0x40, 0x9cb7cc\nCMP             W1, #0xB1A                                             ; +0x44, 0x9cb7d0\nB.NE            loc_9CB818                                             ; +0x48, 0x9cb7d4\nMOV             W0, #0xB16                                             ; +0x4c, 0x9cb7d8\nRET                                                                    ; +0x50, 0x9cb7dc\nCMP             W1, #0xB07                                             ; +0x54, 0x9cb7e0\nB.GE            loc_9CB830                                             ; +0x58, 0x9cb7e4\nCMP             W1, #0x4F3                                             ; +0x5c, 0x9cb7e8\nB.GT            loc_9CB80C                                             ; +0x60, 0x9cb7ec\nCMP             W1, #0x4F2                                             ; +0x64, 0x9cb7f0\nB.GE            loc_9CB804                                             ; +0x68, 0x9cb7f4\nSUB             W0, W1, #0x363                                         ; +0x6c, 0x9cb7f8\nCMP             W0, #5                                                 ; +0x70, 0x9cb7fc\nB.HI            loc_9CB818                                             ; +0x74, 0x9cb800\nMOV             W0, #0x365                                             ; +0x78, 0x9cb804\nRET                                                                    ; +0x7c, 0x9cb808\nCMP             W1, #0xAF8                                             ; +0x80, 0x9cb80c\nMOV             W0, #0xA8F                                             ; +0x84, 0x9cb810\nB.GE            locret_9CB7C0                                          ; +0x88, 0x9cb814\nMOV             W0, W1                                                 ; +0x8c, 0x9cb818\nRET                                                                    ; +0x90, 0x9cb81c\nMOV             W0, #0xB17                                             ; +0x94, 0x9cb820\nRET                                                                    ; +0x98, 0x9cb824\nMOV             W0, #0xB18                                             ; +0x9c, 0x9cb828\nRET                                                                    ; +0xa0, 0x9cb82c\nMOV             W0, #0xA90                                             ; +0xa4, 0x9cb830\nRET                                                                    ; +0xa8, 0x9cb834", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x68a394", "EditorUI::convertKeyBasedOnNeighbors @ 0x9cb878", "<???> @ 0xb8f08"], "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"}