{"type": "func", "start": 11562920, "end": 11563092, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0xb06fa8 to 0xb07054 (172 bytes)\n// \n// 3 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x7c3398\n// > EditorUI::convertKeyBasedOnNeighbors @ 0xb07094\n// > <???> @ 0xf15b8\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 13:01:24 +0000\n// \n\n__int64 __fastcall EditorUI::convertToBaseKey(EditorUI *this, int a2)\n{\n  __int64 result; // x0\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 (unsigned int)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 (unsigned int)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 (unsigned int)a2;\n  }\n  result = 2703;\n  if ( a2 < 2808 )\n    return (unsigned int)a2;\n  return result;\n}", "assembly": "; \n; EditorUI::convertToBaseKey from 0xb06fa8 to 0xb07054 (172 bytes)\n; \n; 3 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x7c3398\n; > EditorUI::convertKeyBasedOnNeighbors @ 0xb07094\n; > <???> @ 0xf15b8\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 13:01:24 +0000\n; \nCMP             W1, #0xB15                                             ; +0x0, 0xb06fa8\nB.LE            loc_B06FFC                                             ; +0x4, 0xb06fac\nCMP             W1, #0xB1D                                             ; +0x8, 0xb06fb0\nB.EQ            loc_B06FD8                                             ; +0xc, 0xb06fb4\nB.LE            loc_B06FE0                                             ; +0x10, 0xb06fb8\nCMP             W1, #0xB1F                                             ; +0x14, 0xb06fbc\nB.EQ            loc_B0703C                                             ; +0x18, 0xb06fc0\nB.LT            loc_B06FF4                                             ; +0x1c, 0xb06fc4\nCMP             W1, #0xB20                                             ; +0x20, 0xb06fc8\nB.EQ            loc_B07044                                             ; +0x24, 0xb06fcc\nCMP             W1, #0xB21                                             ; +0x28, 0xb06fd0\nB.NE            loc_B07034                                             ; +0x2c, 0xb06fd4\nMOV             W0, #0xB19                                             ; +0x30, 0xb06fd8\nRET                                                                    ; +0x34, 0xb06fdc\nCMP             W1, #0xB1B                                             ; +0x38, 0xb06fe0\nB.EQ            loc_B0703C                                             ; +0x3c, 0xb06fe4\nB.GT            loc_B07044                                             ; +0x40, 0xb06fe8\nCMP             W1, #0xB1A                                             ; +0x44, 0xb06fec\nB.NE            loc_B07034                                             ; +0x48, 0xb06ff0\nMOV             W0, #0xB16                                             ; +0x4c, 0xb06ff4\nRET                                                                    ; +0x50, 0xb06ff8\nCMP             W1, #0xB07                                             ; +0x54, 0xb06ffc\nB.GE            loc_B0704C                                             ; +0x58, 0xb07000\nCMP             W1, #0x4F3                                             ; +0x5c, 0xb07004\nB.GT            loc_B07028                                             ; +0x60, 0xb07008\nCMP             W1, #0x4F2                                             ; +0x64, 0xb0700c\nB.GE            loc_B07020                                             ; +0x68, 0xb07010\nSUB             W0, W1, #0x363                                         ; +0x6c, 0xb07014\nCMP             W0, #5                                                 ; +0x70, 0xb07018\nB.HI            loc_B07034                                             ; +0x74, 0xb0701c\nMOV             W0, #0x365                                             ; +0x78, 0xb07020\nRET                                                                    ; +0x7c, 0xb07024\nCMP             W1, #0xAF8                                             ; +0x80, 0xb07028\nMOV             W0, #0xA8F                                             ; +0x84, 0xb0702c\nB.GE            locret_B06FDC                                          ; +0x88, 0xb07030\nMOV             W0, W1                                                 ; +0x8c, 0xb07034\nRET                                                                    ; +0x90, 0xb07038\nMOV             W0, #0xB17                                             ; +0x94, 0xb0703c\nRET                                                                    ; +0x98, 0xb07040\nMOV             W0, #0xB18                                             ; +0x9c, 0xb07044\nRET                                                                    ; +0xa0, 0xb07048\nMOV             W0, #0xA90                                             ; +0xa4, 0xb0704c\nRET                                                                    ; +0xa8, 0xb07050", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x7c3398", "EditorUI::convertKeyBasedOnNeighbors @ 0xb07094", "<???> @ 0xf15b8"], "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"}