{"type": "func", "start": 6731028, "end": 6731182, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0x66b514 to 0x66b5ae (154 bytes)\n// \n// 2 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x482abe\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x66b5d2\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:45 +0000\n// \n\nint __fastcall EditorUI::convertToBaseKey(EditorUI *this, int a2)\n{\n  if ( a2 > 2837 )\n  {\n    if ( a2 != 2845 )\n    {\n      if ( a2 <= 2845 )\n      {\n        if ( a2 != 2843 )\n        {\n          if ( a2 <= 2843 )\n          {\n            if ( a2 != 2842 )\n              return a2;\n            return 2838;\n          }\n          return 2840;\n        }\n        return 2839;\n      }\n      if ( a2 == 2847 )\n        return 2839;\n      if ( a2 < 2847 )\n        return 2838;\n      if ( a2 == 2848 )\n        return 2840;\n      if ( a2 != 2849 )\n        return a2;\n    }\n    return 2841;\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  if ( a2 < 2808 )\n    return a2;\n  return 2703;\n}", "assembly": "; \n; EditorUI::convertToBaseKey from 0x66b514 to 0x66b5ae (154 bytes)\n; \n; 2 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x482abe\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x66b5d2\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:45 +0000\n; \nMOVW            R3, #0xB15                                             ; +0x0, 0x66b514\nCMP             R1, R3                                                 ; +0x4, 0x66b518\nBGT             loc_66B548                                             ; +0x6, 0x66b51a\nMOVW            R3, #0xB07                                             ; +0x8, 0x66b51c\nCMP             R1, R3                                                 ; +0xc, 0x66b520\nBGE             loc_66B580                                             ; +0xe, 0x66b522\nMOVW            R3, #0x4F3                                             ; +0x10, 0x66b524\nCMP             R1, R3                                                 ; +0x14, 0x66b528\nBGT             loc_66B53E                                             ; +0x16, 0x66b52a\nMOVW            R3, #0x4F2                                             ; +0x18, 0x66b52c\nCMP             R1, R3                                                 ; +0x1c, 0x66b530\nBGE             loc_66B59E                                             ; +0x1e, 0x66b532\nSUBW            R3, R1, #0x363                                         ; +0x20, 0x66b534\nCMP             R3, #5                                                 ; +0x24, 0x66b538\nBLS             loc_66B59E                                             ; +0x26, 0x66b53a\nB               loc_66B5A4                                             ; +0x28, 0x66b53c\nMOVW            R3, #0xAF8                                             ; +0x2a, 0x66b53e\nCMP             R1, R3                                                 ; +0x2e, 0x66b542\nBGE             loc_66B5A8                                             ; +0x30, 0x66b544\nB               loc_66B5A4                                             ; +0x32, 0x66b546\nMOVW            R3, #0xB1D                                             ; +0x34, 0x66b548\nCMP             R1, R3                                                 ; +0x38, 0x66b54c\nBEQ             loc_66B598                                             ; +0x3a, 0x66b54e\nBGT             loc_66B566                                             ; +0x3c, 0x66b550\nMOVW            R3, #0xB1B                                             ; +0x3e, 0x66b552\nCMP             R1, R3                                                 ; +0x42, 0x66b556\nBEQ             loc_66B58C                                             ; +0x44, 0x66b558\nBGT             loc_66B592                                             ; +0x46, 0x66b55a\nMOVW            R3, #0xB1A                                             ; +0x48, 0x66b55c\nCMP             R1, R3                                                 ; +0x4c, 0x66b560\nBEQ             loc_66B586                                             ; +0x4e, 0x66b562\nB               loc_66B5A4                                             ; +0x50, 0x66b564\nMOVW            R3, #0xB1F                                             ; +0x52, 0x66b566\nCMP             R1, R3                                                 ; +0x56, 0x66b56a\nBEQ             loc_66B58C                                             ; +0x58, 0x66b56c\nBLT             loc_66B586                                             ; +0x5a, 0x66b56e\nCMP.W           R1, #0xB20                                             ; +0x5c, 0x66b570\nBEQ             loc_66B592                                             ; +0x60, 0x66b574\nMOVW            R3, #0xB21                                             ; +0x62, 0x66b576\nCMP             R1, R3                                                 ; +0x66, 0x66b57a\nBEQ             loc_66B598                                             ; +0x68, 0x66b57c\nB               loc_66B5A4                                             ; +0x6a, 0x66b57e\nMOV.W           R0, #0xA90                                             ; +0x6c, 0x66b580\nBX              LR                                                     ; +0x70, 0x66b584\nMOVW            R0, #0xB16                                             ; +0x72, 0x66b586\nBX              LR                                                     ; +0x76, 0x66b58a\nMOVW            R0, #0xB17                                             ; +0x78, 0x66b58c\nBX              LR                                                     ; +0x7c, 0x66b590\nMOVW            R0, #0xB18                                             ; +0x7e, 0x66b592\nBX              LR                                                     ; +0x82, 0x66b596\nMOVW            R0, #0xB19                                             ; +0x84, 0x66b598\nBX              LR                                                     ; +0x88, 0x66b59c\nMOVW            R0, #0x365                                             ; +0x8a, 0x66b59e\nBX              LR                                                     ; +0x8e, 0x66b5a2\nMOV             R0, R1                                                 ; +0x90, 0x66b5a4\nBX              LR                                                     ; +0x92, 0x66b5a6\nMOVW            R0, #0xA8F                                             ; +0x94, 0x66b5a8\nBX              LR                                                     ; +0x98, 0x66b5ac", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x482abe", "EditorUI::convertKeyBasedOnNeighbors @ 0x66b5d2"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}