{"type": "func", "start": 5370777328, "end": 5370777427, "name": "EditorUI::smartTypeForKey", "pseudocode": "// \n// EditorUI::smartTypeForKey from 0x1401f8ef0 to 0x1401f8f53 (99 bytes)\n// \n// 2 xrefs:\n// > SelectArtLayer::init @ 0x14045b97b\n// > SetupSmartBlockLayer::onCreate @ 0x1405ee146\n// \n// This function is hookable on this platform (idp: pc, 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 11:28:10 +0000\n// \n\n__int64 __fastcall EditorUI::smartTypeForKey(int a1)\n{\n  __int64 result; // rax\n\n  switch ( a1 )\n  {\n    case 0:\n      result = 1431;\n      break;\n    case 1:\n      result = 1461;\n      break;\n    case 2:\n      result = 1861;\n      break;\n    case 3:\n      result = 1865;\n      break;\n    case 4:\n      result = 1869;\n      break;\n    case 5:\n      result = 1874;\n      break;\n    case 6:\n      result = 1878;\n      break;\n    case 7:\n      result = 1882;\n      break;\n    case 9:\n      result = 2704;\n      break;\n    case 10:\n      result = 2838;\n      break;\n    case 11:\n      result = 869;\n      break;\n    default:\n      result = 2703;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::smartTypeForKey from 0x1401f8ef0 to 0x1401f8f53 (99 bytes)\n; \n; 2 xrefs:\n; > SelectArtLayer::init @ 0x14045b97b\n; > SetupSmartBlockLayer::onCreate @ 0x1405ee146\n; \n; This function is hookable on this platform (idp: pc, 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 11:28:10 +0000\n; \ncmp     ecx, 0Bh; switch 12 cases                                      ; +0x0, 0x1401f8ef0\nja      short def_1401F8F09; jumptable 00000001401F8F09 default case, case 8 ; +0x3, 0x1401f8ef3\nmovsxd  rax, ecx                                                       ; +0x5, 0x1401f8ef5\nlea     rdx, cs:140000000h                                             ; +0x8, 0x1401f8ef8\nmov     ecx, ds:(jpt_1401F8F09 - 140000000h)[rdx+rax*4]                ; +0xf, 0x1401f8eff\nadd     rcx, rdx                                                       ; +0x16, 0x1401f8f06\njmp     rcx; switch jump                                               ; +0x19, 0x1401f8f09\nmov     eax, 597h; jumptable 00000001401F8F09 case 0                   ; +0x1b, 0x1401f8f0b\nretn                                                                   ; +0x20, 0x1401f8f10\nmov     eax, 5B5h; jumptable 00000001401F8F09 case 1                   ; +0x21, 0x1401f8f11\nretn                                                                   ; +0x26, 0x1401f8f16\nmov     eax, 745h; jumptable 00000001401F8F09 case 2                   ; +0x27, 0x1401f8f17\nretn                                                                   ; +0x2c, 0x1401f8f1c\nmov     eax, 749h; jumptable 00000001401F8F09 case 3                   ; +0x2d, 0x1401f8f1d\nretn                                                                   ; +0x32, 0x1401f8f22\nmov     eax, 74Dh; jumptable 00000001401F8F09 case 4                   ; +0x33, 0x1401f8f23\nretn                                                                   ; +0x38, 0x1401f8f28\nmov     eax, 752h; jumptable 00000001401F8F09 case 5                   ; +0x39, 0x1401f8f29\nretn                                                                   ; +0x3e, 0x1401f8f2e\nmov     eax, 756h; jumptable 00000001401F8F09 case 6                   ; +0x3f, 0x1401f8f2f\nretn                                                                   ; +0x44, 0x1401f8f34\nmov     eax, 75Ah; jumptable 00000001401F8F09 case 7                   ; +0x45, 0x1401f8f35\nretn                                                                   ; +0x4a, 0x1401f8f3a\nmov     eax, 0A90h; jumptable 00000001401F8F09 case 9                  ; +0x4b, 0x1401f8f3b\nretn                                                                   ; +0x50, 0x1401f8f40\nmov     eax, 0B16h; jumptable 00000001401F8F09 case 10                 ; +0x51, 0x1401f8f41\nretn                                                                   ; +0x56, 0x1401f8f46\nmov     eax, 365h; jumptable 00000001401F8F09 case 11                  ; +0x57, 0x1401f8f47\nretn                                                                   ; +0x5c, 0x1401f8f4c\nmov     eax, 0A8Fh; jumptable 00000001401F8F09 default case, case 8    ; +0x5d, 0x1401f8f4d\nretn                                                                   ; +0x62, 0x1401f8f52", "xrefs": ["SelectArtLayer::init @ 0x14045b97b", "SetupSmartBlockLayer::onCreate @ 0x1405ee146"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}