{"type": "func", "start": 4295270320, "end": 4295270481, "name": "EditorUI::showLiveColorSelectForMode", "pseudocode": "// \n// EditorUI::showLiveColorSelectForMode from 0x100049fb0 to 0x10004a051 (161 bytes)\n// \n// 1 xrefs:\n// > LevelSettingsLayer::onLiveEdit @ 0x10026dfa2\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\nvoid __fastcall EditorUI::showLiveColorSelectForMode(EditorUI *a1, int a2)\n{\n  ColorSelectLiveOverlay *m_colorOverlay; // rdi\n  HSVLiveOverlay *m_hsvOverlay; // rdi\n  GameManager *v5; // rax\n  ColorAction *ColorAction; // rax\n  ColorSelectLiveOverlay *v7; // rax\n\n  m_colorOverlay = a1->m_colorOverlay;\n  if ( m_colorOverlay )\n  {\n    ColorSelectLiveOverlay::closeColorSelect(m_colorOverlay, nullptr);\n    a1->m_colorOverlay = nullptr;\n  }\n  m_hsvOverlay = a1->m_hsvOverlay;\n  if ( m_hsvOverlay )\n  {\n    HSVLiveOverlay::closeColorSelect(m_hsvOverlay, nullptr);\n    a1->m_hsvOverlay = nullptr;\n  }\n  v5 = GameManager::sharedState();\n  ColorAction = GJEffectManager::getColorAction(v5->m_levelEditorLayer->m_levelSettings->m_effectManager, a2);\n  v7 = ColorSelectLiveOverlay::createWithActions(ColorAction, nullptr);\n  a1->m_colorOverlay = v7;\n  v7->m_delegate = &a1->ColorSelectDelegate;\n  v7->m_scene = a1;\n  ((void (__fastcall *)(ColorSelectLiveOverlay *))v7->show)(v7);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForMode from 0x100049fb0 to 0x10004a051 (161 bytes)\n; \n; 1 xrefs:\n; > LevelSettingsLayer::onLiveEdit @ 0x10026dfa2\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\npush    rbp                                                            ; +0x0, 0x100049fb0\nmov     rbp, rsp                                                       ; +0x1, 0x100049fb1\npush    r14                                                            ; +0x4, 0x100049fb4\npush    rbx                                                            ; +0x6, 0x100049fb6\nmov     r14d, esi                                                      ; +0x7, 0x100049fb7\nmov     rbx, rdi                                                       ; +0xa, 0x100049fba\nmov     rdi, [rdi+548h]                                                ; +0xd, 0x100049fbd\ntest    rdi, rdi                                                       ; +0x14, 0x100049fc4\njz      short loc_100049FDB                                            ; +0x17, 0x100049fc7\nxor     esi, esi                                                       ; +0x19, 0x100049fc9\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x1b, 0x100049fcb\nmov     qword ptr [rbx+548h], 0                                        ; +0x20, 0x100049fd0\nmov     rdi, [rbx+550h]                                                ; +0x2b, 0x100049fdb\ntest    rdi, rdi                                                       ; +0x32, 0x100049fe2\njz      short loc_100049FF9                                            ; +0x35, 0x100049fe5\nxor     esi, esi                                                       ; +0x37, 0x100049fe7\ncall    HSVLiveOverlay__closeColorSelect                               ; +0x39, 0x100049fe9\nmov     qword ptr [rbx+550h], 0                                        ; +0x3e, 0x100049fee\ncall    GameManager__sharedState                                       ; +0x49, 0x100049ff9\nmov     rax, [rax+200h]                                                ; +0x4e, 0x100049ffe\nmov     rax, [rax+0CB0h]                                               ; +0x55, 0x10004a005\nmov     rdi, [rax+140h]                                                ; +0x5c, 0x10004a00c\nmov     esi, r14d                                                      ; +0x63, 0x10004a013\ncall    GJEffectManager__getColorAction                                ; +0x66, 0x10004a016\nmov     rdi, rax                                                       ; +0x6b, 0x10004a01b\nxor     esi, esi                                                       ; +0x6e, 0x10004a01e\ncall    ColorSelectLiveOverlay__createWithActions                      ; +0x70, 0x10004a020\nmov     [rbx+548h], rax                                                ; +0x75, 0x10004a025\nlea     rcx, [rbx+1A0h]                                                ; +0x7c, 0x10004a02c\nmov     [rax+2C0h], rcx                                                ; +0x83, 0x10004a033\nmov     [rax+230h], rbx                                                ; +0x8a, 0x10004a03a\nmov     rcx, [rax]                                                     ; +0x91, 0x10004a041\nmov     rdi, rax                                                       ; +0x94, 0x10004a044\npop     rbx                                                            ; +0x97, 0x10004a047\npop     r14                                                            ; +0x98, 0x10004a048\npop     rbp                                                            ; +0x9a, 0x10004a04a\njmp     qword ptr [rcx+508h]                                           ; +0x9b, 0x10004a04b", "xrefs": ["LevelSettingsLayer::onLiveEdit @ 0x10026dfa2"], "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"}