{"type": "func", "start": 5369943168, "end": 5369943267, "name": "EditorUI::smartTypeForKey", "pseudocode": "// \n// EditorUI::smartTypeForKey from 0x14012d480 to 0x14012d4e3 (99 bytes)\n// \n// 2 xrefs:\n// > SelectArtLayer::init @ 0x14032274a\n// > SetupSmartBlockLayer::onCreate @ 0x1404587bc\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::smartTypeForKey(int a1)\n{\n  int result; // eax\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 0x14012d480 to 0x14012d4e3 (99 bytes)\n; \n; 2 xrefs:\n; > SelectArtLayer::init @ 0x14032274a\n; > SetupSmartBlockLayer::onCreate @ 0x1404587bc\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     ecx, 0Bh; switch 12 cases                                      ; +0x0, 0x14012d480\nja      short def_14012D499; jumptable 000000014012D499 default case, case 8 ; +0x3, 0x14012d483\nmovsxd  rax, ecx                                                       ; +0x5, 0x14012d485\nlea     rdx, cs:140000000h                                             ; +0x8, 0x14012d488\nmov     ecx, ds:(jpt_14012D499 - 140000000h)[rdx+rax*4]                ; +0xf, 0x14012d48f\nadd     rcx, rdx                                                       ; +0x16, 0x14012d496\njmp     rcx; switch jump                                               ; +0x19, 0x14012d499\nmov     eax, 597h; jumptable 000000014012D499 case 0                   ; +0x1b, 0x14012d49b\nretn                                                                   ; +0x20, 0x14012d4a0\nmov     eax, 5B5h; jumptable 000000014012D499 case 1                   ; +0x21, 0x14012d4a1\nretn                                                                   ; +0x26, 0x14012d4a6\nmov     eax, 745h; jumptable 000000014012D499 case 2                   ; +0x27, 0x14012d4a7\nretn                                                                   ; +0x2c, 0x14012d4ac\nmov     eax, 749h; jumptable 000000014012D499 case 3                   ; +0x2d, 0x14012d4ad\nretn                                                                   ; +0x32, 0x14012d4b2\nmov     eax, 74Dh; jumptable 000000014012D499 case 4                   ; +0x33, 0x14012d4b3\nretn                                                                   ; +0x38, 0x14012d4b8\nmov     eax, 752h; jumptable 000000014012D499 case 5                   ; +0x39, 0x14012d4b9\nretn                                                                   ; +0x3e, 0x14012d4be\nmov     eax, 756h; jumptable 000000014012D499 case 6                   ; +0x3f, 0x14012d4bf\nretn                                                                   ; +0x44, 0x14012d4c4\nmov     eax, 75Ah; jumptable 000000014012D499 case 7                   ; +0x45, 0x14012d4c5\nretn                                                                   ; +0x4a, 0x14012d4ca\nmov     eax, 0A90h; jumptable 000000014012D499 case 9                  ; +0x4b, 0x14012d4cb\nretn                                                                   ; +0x50, 0x14012d4d0\nmov     eax, 0B16h; jumptable 000000014012D499 case 10                 ; +0x51, 0x14012d4d1\nretn                                                                   ; +0x56, 0x14012d4d6\nmov     eax, 365h; jumptable 000000014012D499 case 11                  ; +0x57, 0x14012d4d7\nretn                                                                   ; +0x5c, 0x14012d4dc\nmov     eax, 0A8Fh; jumptable 000000014012D499 default case, case 8    ; +0x5d, 0x14012d4dd\nretn                                                                   ; +0x62, 0x14012d4e2", "xrefs": ["SelectArtLayer::init @ 0x14032274a", "SetupSmartBlockLayer::onCreate @ 0x1404587bc"], "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"}