{"type": "func", "start": 5369884384, "end": 5369884574, "name": "EditorUI::showLiveColorSelectForMode", "pseudocode": "// \n// EditorUI::showLiveColorSelectForMode from 0x14011eee0 to 0x14011ef9e (190 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x1400a800b\n// > LevelSettingsLayer::onLiveEdit @ 0x14032195d\n// > <???> @ 0x1406c9504\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\n// Hidden C++ exception states: #wind=1\nvoid EditorUI::showLiveColorSelectForMode(EditorUI *a1, int a2)\n{\n  __int64 v4; // rax\n  ColorAction *ColorAction; // rax\n  ColorSelectLiveOverlay *v6; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  EditorUI::closeLiveColorSelect(a1);\n  EditorUI::closeLiveHSVSelect(a1);\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  ColorAction = GJEffectManager::getColorAction(\n                  *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 528) + 3504LL) + 320LL),\n                  a2);\n  v6 = ColorSelectLiveOverlay::create(ColorAction, nullptr, nullptr);\n  a1->m_colorOverlay = v6;\n  v6->m_delegate = &a1->ColorSelectDelegate;\n  a1->m_colorOverlay->m_scene = a1;\n  a1->m_colorOverlay->show(a1->m_colorOverlay);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForMode from 0x14011eee0 to 0x14011ef9e (190 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x1400a800b\n; > LevelSettingsLayer::onLiveEdit @ 0x14032195d\n; > <???> @ 0x1406c9504\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14011eee0\npush    rdi                                                            ; +0x5, 0x14011eee5\nsub     rsp, 20h                                                       ; +0x6, 0x14011eee6\nmov     edi, edx                                                       ; +0xa, 0x14011eeea\nmov     rbx, rcx                                                       ; +0xc, 0x14011eeec\ncall    EditorUI__closeLiveColorSelect                                 ; +0xf, 0x14011eeef\nmov     rcx, rbx                                                       ; +0x14, 0x14011eef4\ncall    EditorUI__closeLiveHSVSelect                                   ; +0x17, 0x14011eef7\nmov     rax, cs:qword_1406C2ED8                                        ; +0x1c, 0x14011eefc\ntest    rax, rax                                                       ; +0x23, 0x14011ef03\njnz     short loc_14011EF37                                            ; +0x26, 0x14011ef06\nmov     ecx, 668h; Size                                                ; +0x28, 0x14011ef08\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x14011ef0d\nmov     [rsp+28h+arg_0], rax                                           ; +0x32, 0x14011ef12\nmov     rcx, rax                                                       ; +0x37, 0x14011ef17\ncall    sub_14017AB00                                                  ; +0x3a, 0x14011ef1a\nnop                                                                    ; +0x3f, 0x14011ef1f\nmov     cs:qword_1406C2ED8, rax                                        ; +0x40, 0x14011ef20\nmov     rdx, [rax]                                                     ; +0x47, 0x14011ef27\nmov     rcx, rax                                                       ; +0x4a, 0x14011ef2a\ncall    qword ptr [rdx+48h]                                            ; +0x4d, 0x14011ef2d\nmov     rax, cs:qword_1406C2ED8                                        ; +0x50, 0x14011ef30\nmov     rax, [rax+210h]                                                ; +0x57, 0x14011ef37\nmov     rcx, [rax+0DB0h]                                               ; +0x5e, 0x14011ef3e\nmov     edx, edi                                                       ; +0x65, 0x14011ef45\nmov     rcx, [rcx+140h]                                                ; +0x67, 0x14011ef47\ncall    GJEffectManager__getColorAction                                ; +0x6e, 0x14011ef4e\nxor     r8d, r8d                                                       ; +0x73, 0x14011ef53\nxor     edx, edx                                                       ; +0x76, 0x14011ef56\nmov     rcx, rax                                                       ; +0x78, 0x14011ef58\ncall    ColorSelectLiveOverlay__create                                 ; +0x7b, 0x14011ef5b\nmov     [rbx+560h], rax                                                ; +0x80, 0x14011ef60\nlea     rcx, [rbx+1A0h]                                                ; +0x87, 0x14011ef67\nmov     [rax+2C0h], rcx                                                ; +0x8e, 0x14011ef6e\nmov     rax, [rbx+560h]                                                ; +0x95, 0x14011ef75\nmov     [rax+230h], rbx                                                ; +0x9c, 0x14011ef7c\nmov     rcx, [rbx+560h]                                                ; +0xa3, 0x14011ef83\nmov     rax, [rcx]                                                     ; +0xaa, 0x14011ef8a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xad, 0x14011ef8d\nadd     rsp, 20h                                                       ; +0xb2, 0x14011ef92\npop     rdi                                                            ; +0xb6, 0x14011ef96\njmp     qword ptr [rax+410h]                                           ; +0xb7, 0x14011ef97", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x1400a800b", "LevelSettingsLayer::onLiveEdit @ 0x14032195d", "<???> @ 0x1406c9504"], "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"}