{"type": "func", "start": 4295214688, "end": 4295215038, "name": "EditorUI::checkLiveColorSelect", "pseudocode": "// \n// EditorUI::checkLiveColorSelect from 0x10003c660 to 0x10003c7be (350 bytes)\n// \n// 2 xrefs:\n// > EditorUI::selectObject @ 0x10002e845\n// > EditorUI::selectObjects @ 0x10003c654\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::checkLiveColorSelect(EditorUI *a1)\n{\n  ColorSelectLiveOverlay *m_colorOverlay; // rdi\n  GameObject *m_selectedObject; // rdi\n  unsigned int v4; // r14d\n  unsigned int v5; // eax\n  int v6; // ecx\n  int v7; // r8d\n  int v8; // r9d\n  cocos2d::CCAction *v9; // r14\n  HSVLiveOverlay *m_hsvOverlay; // rdi\n  unsigned int v11; // r14d\n  __int64 v12; // 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    EditorUI::editColor(a1);\n    m_selectedObject = a1->m_selectedObject;\n    if ( m_selectedObject )\n    {\nLABEL_3:\n      ((void (__fastcall *)(GameObject *, __int64))m_selectedObject->selectObject)(m_selectedObject, 65280);\nLABEL_4:\n      cocos2d::CCNode::stopActionByTag(a1, 124);\n      v4 = (unsigned int)cocos2d::CCDelayTime::create(0.1);\n      v5 = (unsigned int)cocos2d::CCCallFunc::create(\n                           a1,\n                           (cocos2d::SEL_CallFunc)(unsigned __int64)EditorUI::deselectObjectsColor);\n      v9 = (cocos2d::CCAction *)sub_1003B5760(v4, v5, 0, v6, v7, v8);\n      ((void (__fastcall *)(cocos2d::CCAction *, __int64))v9->setTag)(v9, 124);\n      cocos2d::CCNode::runAction(a1, v9);\n      return;\n    }\nLABEL_7:\n    if ( (unsigned int)sub_100720070(a1->m_selectedObjects) && (unsigned int)sub_100720070(a1->m_selectedObjects) )\n    {\n      v11 = 0;\n      do\n      {\n        v12 = sub_1007200C0(a1->m_selectedObjects, v11);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 1512LL))(v12, 65280);\n        ++v11;\n      }\n      while ( v11 < (unsigned int)sub_100720070(a1->m_selectedObjects) );\n    }\n    goto LABEL_4;\n  }\n  m_hsvOverlay = a1->m_hsvOverlay;\n  if ( m_hsvOverlay )\n  {\n    HSVLiveOverlay::closeColorSelect(m_hsvOverlay, nullptr);\n    a1->m_hsvOverlay = nullptr;\n    EditorUI::editHSV(a1);\n    m_selectedObject = a1->m_selectedObject;\n    if ( m_selectedObject )\n      goto LABEL_3;\n    goto LABEL_7;\n  }\n}", "assembly": "; \n; EditorUI::checkLiveColorSelect from 0x10003c660 to 0x10003c7be (350 bytes)\n; \n; 2 xrefs:\n; > EditorUI::selectObject @ 0x10002e845\n; > EditorUI::selectObjects @ 0x10003c654\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, 0x10003c660\nmov     rbp, rsp                                                       ; +0x1, 0x10003c661\npush    r14                                                            ; +0x4, 0x10003c664\npush    rbx                                                            ; +0x6, 0x10003c666\nmov     rbx, rdi                                                       ; +0x7, 0x10003c667\nmov     rdi, [rdi+548h]                                                ; +0xa, 0x10003c66a\ntest    rdi, rdi                                                       ; +0x11, 0x10003c671\njz      loc_10003C70F                                                  ; +0x14, 0x10003c674\nxor     esi, esi                                                       ; +0x1a, 0x10003c67a\ncall    ColorSelectLiveOverlay__closeColorSelect                       ; +0x1c, 0x10003c67c\nmov     qword ptr [rbx+548h], 0                                        ; +0x21, 0x10003c681\nmov     rdi, rbx                                                       ; +0x2c, 0x10003c68c\ncall    EditorUI__editColor                                            ; +0x2f, 0x10003c68f\nmov     rdi, [rbx+520h]                                                ; +0x34, 0x10003c694\ntest    rdi, rdi                                                       ; +0x3b, 0x10003c69b\njz      loc_10003C749                                                  ; +0x3e, 0x10003c69e\nmov     rax, [rdi]                                                     ; +0x44, 0x10003c6a4\nmov     esi, 0FF00h                                                    ; +0x47, 0x10003c6a7\ncall    qword ptr [rax+5E8h]                                           ; +0x4c, 0x10003c6ac\nmov     rdi, rbx                                                       ; +0x52, 0x10003c6b2\nmov     esi, 7Ch ; '|'                                                 ; +0x55, 0x10003c6b5\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x5a, 0x10003c6ba\nmovss   xmm0, cs:dword_100815058                                       ; +0x5f, 0x10003c6bf\ncall    cocos2d__CCDelayTime__create                                   ; +0x67, 0x10003c6c7\nmov     r14, rax                                                       ; +0x6c, 0x10003c6cc\nlea     rsi, EditorUI__deselectObjectsColor                            ; +0x6f, 0x10003c6cf\nmov     rdi, rbx                                                       ; +0x76, 0x10003c6d6\nxor     edx, edx                                                       ; +0x79, 0x10003c6d9\ncall    cocos2d__CCCallFunc__create                                    ; +0x7b, 0x10003c6db\nmov     rdi, r14                                                       ; +0x80, 0x10003c6e0\nmov     rsi, rax                                                       ; +0x83, 0x10003c6e3\nxor     edx, edx                                                       ; +0x86, 0x10003c6e6\nxor     eax, eax                                                       ; +0x88, 0x10003c6e8\ncall    sub_1003B5760                                                  ; +0x8a, 0x10003c6ea\nmov     r14, rax                                                       ; +0x8f, 0x10003c6ef\nmov     rax, [rax]                                                     ; +0x92, 0x10003c6f2\nmov     rdi, r14                                                       ; +0x95, 0x10003c6f5\nmov     esi, 7Ch ; '|'                                                 ; +0x98, 0x10003c6f8\ncall    qword ptr [rax+48h]                                            ; +0x9d, 0x10003c6fd\nmov     rdi, rbx                                                       ; +0xa0, 0x10003c700\nmov     rsi, r14                                                       ; +0xa3, 0x10003c703\npop     rbx                                                            ; +0xa6, 0x10003c706\npop     r14                                                            ; +0xa7, 0x10003c707\npop     rbp                                                            ; +0xa9, 0x10003c709\njmp     cocos2d__CCNode__runAction                                     ; +0xaa, 0x10003c70a\nmov     rdi, [rbx+550h]                                                ; +0xaf, 0x10003c70f\ntest    rdi, rdi                                                       ; +0xb6, 0x10003c716\njz      loc_10003C7B9                                                  ; +0xb9, 0x10003c719\nxor     esi, esi                                                       ; +0xbf, 0x10003c71f\ncall    HSVLiveOverlay__closeColorSelect                               ; +0xc1, 0x10003c721\nmov     qword ptr [rbx+550h], 0                                        ; +0xc6, 0x10003c726\nmov     rdi, rbx                                                       ; +0xd1, 0x10003c731\ncall    EditorUI__editHSV                                              ; +0xd4, 0x10003c734\nmov     rdi, [rbx+520h]                                                ; +0xd9, 0x10003c739\ntest    rdi, rdi                                                       ; +0xe0, 0x10003c740\njnz     loc_10003C6A4                                                  ; +0xe3, 0x10003c743\nmov     rdi, [rbx+328h]                                                ; +0xe9, 0x10003c749\ncall    sub_100720070                                                  ; +0xf0, 0x10003c750\ntest    eax, eax                                                       ; +0xf5, 0x10003c755\njz      loc_10003C6B2                                                  ; +0xf7, 0x10003c757\nmov     rdi, [rbx+328h]                                                ; +0xfd, 0x10003c75d\ncall    sub_100720070                                                  ; +0x104, 0x10003c764\ntest    eax, eax                                                       ; +0x109, 0x10003c769\njz      loc_10003C6B2                                                  ; +0x10b, 0x10003c76b\nxor     r14d, r14d                                                     ; +0x111, 0x10003c771\nnop     word ptr [rax+rax+00000000h]                                   ; +0x114, 0x10003c774\nmov     rdi, [rbx+328h]                                                ; +0x120, 0x10003c780\nmov     esi, r14d                                                      ; +0x127, 0x10003c787\ncall    sub_1007200C0                                                  ; +0x12a, 0x10003c78a\nmov     rcx, [rax]                                                     ; +0x12f, 0x10003c78f\nmov     rdi, rax                                                       ; +0x132, 0x10003c792\nmov     esi, 0FF00h                                                    ; +0x135, 0x10003c795\ncall    qword ptr [rcx+5E8h]                                           ; +0x13a, 0x10003c79a\ninc     r14d                                                           ; +0x140, 0x10003c7a0\nmov     rdi, [rbx+328h]                                                ; +0x143, 0x10003c7a3\ncall    sub_100720070                                                  ; +0x14a, 0x10003c7aa\ncmp     r14d, eax                                                      ; +0x14f, 0x10003c7af\njb      short loc_10003C780                                            ; +0x152, 0x10003c7b2\njmp     loc_10003C6B2                                                  ; +0x154, 0x10003c7b4\npop     rbx                                                            ; +0x159, 0x10003c7b9\npop     r14                                                            ; +0x15a, 0x10003c7ba\npop     rbp                                                            ; +0x15c, 0x10003c7bc\nretn                                                                   ; +0x15d, 0x10003c7bd", "xrefs": ["EditorUI::selectObject @ 0x10002e845", "EditorUI::selectObjects @ 0x10003c654"], "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"}