{"type": "func", "start": 5369884048, "end": 5369884377, "name": "EditorUI::editColor", "pseudocode": "// \n// EditorUI::editColor from 0x14011ed90 to 0x14011eed9 (329 bytes)\n// \n// 3 xrefs:\n// > EditorUI::checkLiveColorSelect @ 0x14011064b\n// > EditorUI::onEditColor @ 0x14011eadb\n// > <???> @ 0x1406c94f8\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 EditorUI::editColor(EditorUI *a1)\n{\n  unsigned int v1; // edi\n  EffectGameObject *v3; // rsi\n  ColorAction *v4; // rdx\n  EffectGameObject *v5; // r8\n  ColorAction *v6; // rcx\n  ColorSelectLiveOverlay *v7; // rax\n  ColorSelectLiveOverlay *v8; // rcx\n  ColorSelectDelegate *v9; // rax\n  GameObject *m_selectedObject; // rcx\n  GameObject *v11; // rax\n  __int128 v12; // [rsp+48h] [rbp+10h] BYREF\n  EffectGameObject *v13; // [rsp+58h] [rbp+20h] BYREF\n\n  v1 = 0;\n  v12 = 0u;\n  v13 = nullptr;\n  EditorUI::getEditColorTargets(a1, (ColorAction **)&v12 + 1, (ColorAction **)&v12, &v13);\n  v3 = v13;\n  if ( v12 != 0 || v13 )\n  {\n    EditorUI::closeLiveColorSelect(a1);\n    EditorUI::closeLiveHSVSelect(a1);\n    a1->m_colorOverlay = nullptr;\n    if ( v3 )\n    {\n      v4 = nullptr;\n      v5 = v3;\n      v6 = nullptr;\n    }\n    else\n    {\n      v4 = (ColorAction *)v12;\n      v5 = nullptr;\n      v6 = *((ColorAction **)&v12 + 1);\n    }\n    v7 = ColorSelectLiveOverlay::create(v6, v4, v5);\n    a1->m_colorOverlay = v7;\n    v8 = v7;\n    v9 = &a1->ColorSelectDelegate;\n    if ( !a1 )\n      v9 = nullptr;\n    v8->m_delegate = v9;\n    a1->m_colorOverlay->m_scene = a1;\n    a1->m_colorOverlay->show(a1->m_colorOverlay);\n    if ( !v3 )\n    {\n      m_selectedObject = a1->m_selectedObject;\n      if ( m_selectedObject )\n      {\n        m_selectedObject->m_isSelected = 0;\n        GameObject::updateObjectEditorColor(m_selectedObject);\n      }\n      else if ( cocos2d::CCArray::count(a1->m_selectedObjects) && cocos2d::CCArray::count(a1->m_selectedObjects) )\n      {\n        do\n        {\n          v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v1);\n          v11->m_isSelected = 0;\n          GameObject::updateObjectEditorColor(v11);\n          ++v1;\n        }\n        while ( v1 < cocos2d::CCArray::count(a1->m_selectedObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::editColor from 0x14011ed90 to 0x14011eed9 (329 bytes)\n; \n; 3 xrefs:\n; > EditorUI::checkLiveColorSelect @ 0x14011064b\n; > EditorUI::onEditColor @ 0x14011eadb\n; > <???> @ 0x1406c94f8\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    rbx                                                            ; +0x0, 0x14011ed90\npush    rsi                                                            ; +0x2, 0x14011ed92\npush    rdi                                                            ; +0x3, 0x14011ed93\nsub     rsp, 20h                                                       ; +0x4, 0x14011ed94\nxor     edi, edi                                                       ; +0x8, 0x14011ed98\nlea     r9, [rsp+38h+arg_18]                                           ; +0xa, 0x14011ed9a\nlea     r8, [rsp+38h+arg_8]                                            ; +0xf, 0x14011ed9f\nmov     qword ptr [rsp+38h+arg_8+8], rdi                               ; +0x14, 0x14011eda4\nlea     rdx, [rsp+38h+arg_8+8]                                         ; +0x19, 0x14011eda9\nmov     qword ptr [rsp+38h+arg_8], rdi                                 ; +0x1e, 0x14011edae\nmov     [rsp+38h+arg_18], rdi                                          ; +0x23, 0x14011edb3\nmov     rbx, rcx                                                       ; +0x28, 0x14011edb8\ncall    EditorUI__getEditColorTargets                                  ; +0x2b, 0x14011edbb\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x30, 0x14011edc0\ncmp     qword ptr [rsp+38h+arg_8+8], rdi                               ; +0x35, 0x14011edc5\njnz     short loc_14011EDDC                                            ; +0x3a, 0x14011edca\ncmp     qword ptr [rsp+38h+arg_8], rdi                                 ; +0x3c, 0x14011edcc\njnz     short loc_14011EDDC                                            ; +0x41, 0x14011edd1\ntest    rsi, rsi                                                       ; +0x43, 0x14011edd3\njz      loc_14011EED1                                                  ; +0x46, 0x14011edd6\nmov     rcx, rbx                                                       ; +0x4c, 0x14011eddc\ncall    EditorUI__closeLiveColorSelect                                 ; +0x4f, 0x14011eddf\nmov     rcx, rbx                                                       ; +0x54, 0x14011ede4\ncall    EditorUI__closeLiveHSVSelect                                   ; +0x57, 0x14011ede7\nmov     [rbx+560h], rdi                                                ; +0x5c, 0x14011edec\ntest    rsi, rsi                                                       ; +0x63, 0x14011edf3\njz      short loc_14011EE01                                            ; +0x66, 0x14011edf6\nxor     edx, edx                                                       ; +0x68, 0x14011edf8\nmov     r8, rsi                                                        ; +0x6a, 0x14011edfa\nxor     ecx, ecx                                                       ; +0x6d, 0x14011edfd\njmp     short loc_14011EE0E                                            ; +0x6f, 0x14011edff\nmov     rdx, qword ptr [rsp+38h+arg_8]                                 ; +0x71, 0x14011ee01\nxor     r8d, r8d                                                       ; +0x76, 0x14011ee06\nmov     rcx, qword ptr [rsp+38h+arg_8+8]                               ; +0x79, 0x14011ee09\ncall    ColorSelectLiveOverlay__create                                 ; +0x7e, 0x14011ee0e\nmov     [rbx+560h], rax                                                ; +0x83, 0x14011ee13\nmov     rcx, rax                                                       ; +0x8a, 0x14011ee1a\ntest    rbx, rbx                                                       ; +0x8d, 0x14011ee1d\nlea     rax, [rbx+1A0h]                                                ; +0x90, 0x14011ee20\ncmovz   rax, rdi                                                       ; +0x97, 0x14011ee27\nmov     [rcx+2C0h], rax                                                ; +0x9b, 0x14011ee2b\nmov     rax, [rbx+560h]                                                ; +0xa2, 0x14011ee32\nmov     [rax+230h], rbx                                                ; +0xa9, 0x14011ee39\nmov     rcx, [rbx+560h]                                                ; +0xb0, 0x14011ee40\nmov     rax, [rcx]                                                     ; +0xb7, 0x14011ee47\ncall    qword ptr [rax+410h]                                           ; +0xba, 0x14011ee4a\ntest    rsi, rsi                                                       ; +0xc0, 0x14011ee50\njnz     loc_14011EED1                                                  ; +0xc3, 0x14011ee53\nmov     rcx, [rbx+538h]                                                ; +0xc9, 0x14011ee59\ntest    rcx, rcx                                                       ; +0xd0, 0x14011ee60\njz      short loc_14011EE78                                            ; +0xd3, 0x14011ee63\nmov     [rcx+475h], dil                                                ; +0xd5, 0x14011ee65\nadd     rsp, 20h                                                       ; +0xdc, 0x14011ee6c\npop     rdi                                                            ; +0xe0, 0x14011ee70\npop     rsi                                                            ; +0xe1, 0x14011ee71\npop     rbx                                                            ; +0xe2, 0x14011ee72\njmp     GameObject__updateObjectEditorColor                            ; +0xe3, 0x14011ee73\nmov     rcx, [rbx+340h]                                                ; +0xe8, 0x14011ee78\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xef, 0x14011ee7f\ntest    eax, eax                                                       ; +0xf5, 0x14011ee85\njz      short loc_14011EED1                                            ; +0xf7, 0x14011ee87\nmov     rcx, [rbx+340h]                                                ; +0xf9, 0x14011ee89\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x100, 0x14011ee90\ntest    eax, eax                                                       ; +0x106, 0x14011ee96\njz      short loc_14011EED1                                            ; +0x108, 0x14011ee98\nnop     word ptr [rax+rax+00h]                                         ; +0x10a, 0x14011ee9a\nmov     rcx, [rbx+340h]                                                ; +0x110, 0x14011eea0\nmov     edx, edi                                                       ; +0x117, 0x14011eea7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x119, 0x14011eea9\nmov     rcx, rax                                                       ; +0x11f, 0x14011eeaf\nmov     byte ptr [rax+475h], 0                                         ; +0x122, 0x14011eeb2\ncall    GameObject__updateObjectEditorColor                            ; +0x129, 0x14011eeb9\nmov     rcx, [rbx+340h]                                                ; +0x12e, 0x14011eebe\ninc     edi                                                            ; +0x135, 0x14011eec5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x137, 0x14011eec7\ncmp     edi, eax                                                       ; +0x13d, 0x14011eecd\njb      short loc_14011EEA0                                            ; +0x13f, 0x14011eecf\nadd     rsp, 20h                                                       ; +0x141, 0x14011eed1\npop     rdi                                                            ; +0x145, 0x14011eed5\npop     rsi                                                            ; +0x146, 0x14011eed6\npop     rbx                                                            ; +0x147, 0x14011eed7\nretn                                                                   ; +0x148, 0x14011eed8", "xrefs": ["EditorUI::checkLiveColorSelect @ 0x14011064b", "EditorUI::onEditColor @ 0x14011eadb", "<???> @ 0x1406c94f8"], "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"}