{"type": "func", "start": 4295215088, "end": 4295215456, "name": "EditorUI::editColor", "pseudocode": "// \n// EditorUI::editColor from 0x10003c7f0 to 0x10003c960 (368 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onEditColor @ 0x10002ae5f\n// > EditorUI::checkLiveColorSelect @ 0x10003c68f\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::editColor(EditorUI *a1)\n{\n  ColorAction *v2; // r15\n  ColorAction *v3; // r12\n  EffectGameObject *v4; // r14\n  ColorSelectLiveOverlay *m_colorOverlay; // rdi\n  HSVLiveOverlay *m_hsvOverlay; // rdi\n  ColorSelectLiveOverlay *v7; // rax\n  GameObject *m_selectedObject; // rdi\n  unsigned int v9; // r14d\n  GameObject *v10; // rax\n  unsigned __int64 v11; // [rsp+8h] [rbp-38h] BYREF\n  unsigned __int64 v12; // [rsp+10h] [rbp-30h] BYREF\n  unsigned __int64 v13; // [rsp+18h] [rbp-28h] BYREF\n\n  v11 = 0;\n  v12 = 0;\n  v13 = 0;\n  EditorUI::getEditColorTargets(a1, (ColorAction **)&v11, (ColorAction **)&v12, (EffectGameObject **)&v13);\n  v2 = (ColorAction *)v11;\n  v3 = (ColorAction *)v12;\n  v4 = (EffectGameObject *)v13;\n  if ( v13 | v12 | v11 )\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    a1->m_colorOverlay = nullptr;\n    if ( v4 )\n      v7 = ColorSelectLiveOverlay::createWithObject(v4);\n    else\n      v7 = ColorSelectLiveOverlay::createWithActions(v2, v3);\n    a1->m_colorOverlay = v7;\n    v7->m_delegate = &a1->ColorSelectDelegate;\n    v7->m_scene = a1;\n    ((void (__fastcall *)(ColorSelectLiveOverlay *))v7->show)(v7);\n    if ( !v4 )\n    {\n      m_selectedObject = a1->m_selectedObject;\n      if ( m_selectedObject )\n      {\n        GameObject::deselectObject(m_selectedObject);\n      }\n      else if ( (unsigned int)sub_100720070(a1->m_selectedObjects) && (unsigned int)sub_100720070(a1->m_selectedObjects) )\n      {\n        v9 = 0;\n        do\n        {\n          v10 = (GameObject *)sub_1007200C0(a1->m_selectedObjects, v9);\n          GameObject::deselectObject(v10);\n          ++v9;\n        }\n        while ( v9 < (unsigned int)sub_100720070(a1->m_selectedObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::editColor from 0x10003c7f0 to 0x10003c960 (368 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onEditColor @ 0x10002ae5f\n; > EditorUI::checkLiveColorSelect @ 0x10003c68f\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, 0x10003c7f0\nmov     rbp, rsp                                                       ; +0x1, 0x10003c7f1\npush    r15                                                            ; +0x4, 0x10003c7f4\npush    r14                                                            ; +0x6, 0x10003c7f6\npush    r12                                                            ; +0x8, 0x10003c7f8\npush    rbx                                                            ; +0xa, 0x10003c7fa\nsub     rsp, 20h                                                       ; +0xb, 0x10003c7fb\nmov     rbx, rdi                                                       ; +0xf, 0x10003c7ff\nmov     [rbp+var_38], 0                                                ; +0x12, 0x10003c802\nmov     [rbp+var_30], 0                                                ; +0x1a, 0x10003c80a\nmov     [rbp+var_28], 0                                                ; +0x22, 0x10003c812\nlea     rsi, [rbp+var_38]                                              ; +0x2a, 0x10003c81a\nlea     rdx, [rbp+var_30]                                              ; +0x2e, 0x10003c81e\nlea     rcx, [rbp+var_28]                                              ; +0x32, 0x10003c822\ncall    EditorUI__getEditColorTargets                                  ; +0x36, 0x10003c826\nmov     r15, [rbp+var_38]                                              ; +0x3b, 0x10003c82b\nmov     r12, [rbp+var_30]                                              ; +0x3f, 0x10003c82f\nmov     rax, r15                                                       ; +0x43, 0x10003c833\nor      rax, r12                                                       ; +0x46, 0x10003c836\nmov     r14, [rbp+var_28]                                              ; +0x49, 0x10003c839\nor      rax, r14                                                       ; +0x4d, 0x10003c83d\njz      loc_10003C8D4                                                  ; +0x50, 0x10003c840\nmov     rdi, [rbx+548h]                                                ; +0x56, 0x10003c846\ntest    rdi, rdi                                                       ; +0x5d, 0x10003c84d\njz      short loc_10003C864                                            ; +0x60, 0x10003c850\nxor     esi, esi                                                       ; +0x62, 0x10003c852\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x64, 0x10003c854\nmov     qword ptr [rbx+548h], 0                                        ; +0x69, 0x10003c859\nmov     rdi, [rbx+550h]                                                ; +0x74, 0x10003c864\ntest    rdi, rdi                                                       ; +0x7b, 0x10003c86b\njz      short loc_10003C882                                            ; +0x7e, 0x10003c86e\nxor     esi, esi                                                       ; +0x80, 0x10003c870\ncall    HSVLiveOverlay__closeColorSelect                               ; +0x82, 0x10003c872\nmov     qword ptr [rbx+550h], 0                                        ; +0x87, 0x10003c877\nmov     qword ptr [rbx+548h], 0                                        ; +0x92, 0x10003c882\ntest    r14, r14                                                       ; +0x9d, 0x10003c88d\njz      short loc_10003C89C                                            ; +0xa0, 0x10003c890\nmov     rdi, r14                                                       ; +0xa2, 0x10003c892\ncall    ColorSelectLiveOverlay__createWithObject                       ; +0xa5, 0x10003c895\njmp     short loc_10003C8A7                                            ; +0xaa, 0x10003c89a\nmov     rdi, r15                                                       ; +0xac, 0x10003c89c\nmov     rsi, r12                                                       ; +0xaf, 0x10003c89f\ncall    ColorSelectLiveOverlay__createWithActions                      ; +0xb2, 0x10003c8a2\nmov     [rbx+548h], rax                                                ; +0xb7, 0x10003c8a7\nlea     rcx, [rbx+1A0h]                                                ; +0xbe, 0x10003c8ae\nmov     [rax+2C0h], rcx                                                ; +0xc5, 0x10003c8b5\nmov     [rax+230h], rbx                                                ; +0xcc, 0x10003c8bc\nmov     rcx, [rax]                                                     ; +0xd3, 0x10003c8c3\nmov     rdi, rax                                                       ; +0xd6, 0x10003c8c6\ncall    qword ptr [rcx+508h]                                           ; +0xd9, 0x10003c8c9\ntest    r14, r14                                                       ; +0xdf, 0x10003c8cf\njz      short loc_10003C8E1                                            ; +0xe2, 0x10003c8d2\nadd     rsp, 20h                                                       ; +0xe4, 0x10003c8d4\npop     rbx                                                            ; +0xe8, 0x10003c8d8\npop     r12                                                            ; +0xe9, 0x10003c8d9\npop     r14                                                            ; +0xeb, 0x10003c8db\npop     r15                                                            ; +0xed, 0x10003c8dd\npop     rbp                                                            ; +0xef, 0x10003c8df\nretn                                                                   ; +0xf0, 0x10003c8e0\nmov     rdi, [rbx+520h]                                                ; +0xf1, 0x10003c8e1\ntest    rdi, rdi                                                       ; +0xf8, 0x10003c8e8\njz      short loc_10003C8FE                                            ; +0xfb, 0x10003c8eb\nadd     rsp, 20h                                                       ; +0xfd, 0x10003c8ed\npop     rbx                                                            ; +0x101, 0x10003c8f1\npop     r12                                                            ; +0x102, 0x10003c8f2\npop     r14                                                            ; +0x104, 0x10003c8f4\npop     r15                                                            ; +0x106, 0x10003c8f6\npop     rbp                                                            ; +0x108, 0x10003c8f8\njmp     GameObject__deselectObject                                     ; +0x109, 0x10003c8f9\nmov     rdi, [rbx+328h]                                                ; +0x10e, 0x10003c8fe\ncall    sub_100720070                                                  ; +0x115, 0x10003c905\ntest    eax, eax                                                       ; +0x11a, 0x10003c90a\njz      short loc_10003C8D4                                            ; +0x11c, 0x10003c90c\nmov     rdi, [rbx+328h]                                                ; +0x11e, 0x10003c90e\ncall    sub_100720070                                                  ; +0x125, 0x10003c915\ntest    eax, eax                                                       ; +0x12a, 0x10003c91a\njz      short loc_10003C8D4                                            ; +0x12c, 0x10003c91c\nxor     r14d, r14d                                                     ; +0x12e, 0x10003c91e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x131, 0x10003c921\nmov     rdi, [rbx+328h]                                                ; +0x140, 0x10003c930\nmov     esi, r14d                                                      ; +0x147, 0x10003c937\ncall    sub_1007200C0                                                  ; +0x14a, 0x10003c93a\nmov     rdi, rax                                                       ; +0x14f, 0x10003c93f\ncall    GameObject__deselectObject                                     ; +0x152, 0x10003c942\ninc     r14d                                                           ; +0x157, 0x10003c947\nmov     rdi, [rbx+328h]                                                ; +0x15a, 0x10003c94a\ncall    sub_100720070                                                  ; +0x161, 0x10003c951\ncmp     r14d, eax                                                      ; +0x166, 0x10003c956\njb      short loc_10003C930                                            ; +0x169, 0x10003c959\njmp     loc_10003C8D4                                                  ; +0x16b, 0x10003c95b", "xrefs": ["EditorUI::onEditColor @ 0x10002ae5f", "EditorUI::checkLiveColorSelect @ 0x10003c68f"], "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"}