{"type": "func", "start": 5370582752, "end": 5370583096, "name": "EditorUI::checkLiveColorSelect", "pseudocode": "// \n// EditorUI::checkLiveColorSelect from 0x1401c96e0 to 0x1401c9838 (344 bytes)\n// \n// 5 xrefs:\n// > EditorUI::selectObject @ 0x1401c757d\n// > EditorUI::selectObjects @ 0x1401c7e9e\n// > <???> @ 0x1408a2e8c\n// > <???> @ 0x1408a2e9c\n// > <???> @ 0x14091a8ac\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:06 +0000\n// \n\nvoid __fastcall EditorUI::checkLiveColorSelect(__int64 a1)\n{\n  __int64 v2; // rcx\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v4; // rax\n  __int64 v5; // rbx\n  struct cocos2d::CCFiniteTimeAction *v6; // rax\n  struct cocos2d::CCAction *v7; // rbx\n  __int16 v8; // [rsp+30h] [rbp+8h] BYREF\n  char v9; // [rsp+32h] [rbp+Ah]\n\n  if ( *(_QWORD *)(a1 + 1616) )\n  {\n    EditorUI::closeLiveColorSelect(a1);\n    EditorUI::editColor(a1);\n  }\n  else\n  {\n    if ( !*(_QWORD *)(a1 + 1624) )\n      return;\n    EditorUI::closeLiveHSVSelect(a1);\n    EditorUI::editHSV((_QWORD *)a1);\n  }\n  v2 = *(_QWORD *)(a1 + 1568);\n  if ( v2 )\n  {\n    v8 = -256;\n    v9 = 0;\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 1376LL))(v2, &v8);\n  }\n  else if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); ++i )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), i);\n      v8 = -256;\n      v9 = 0;\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v4 + 1376LL))(v4, &v8);\n    }\n  }\n  cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 124);\n  v5 = cocos2d::CCCallFunc::create(a1, EditorUI::deselectObjectsColor);\n  v6 = cocos2d::CCDelayTime::create(0.1);\n  v7 = cocos2d::CCSequence::create(v6, v5, 0);\n  (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v7 + 64LL))(v7, 124);\n  cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v7);\n}", "assembly": "; \n; EditorUI::checkLiveColorSelect from 0x1401c96e0 to 0x1401c9838 (344 bytes)\n; \n; 5 xrefs:\n; > EditorUI::selectObject @ 0x1401c757d\n; > EditorUI::selectObjects @ 0x1401c7e9e\n; > <???> @ 0x1408a2e8c\n; > <???> @ 0x1408a2e9c\n; > <???> @ 0x14091a8ac\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:06 +0000\n; \npush    rdi                                                            ; +0x0, 0x1401c96e0\nsub     rsp, 20h                                                       ; +0x2, 0x1401c96e2\ncmp     qword ptr [rcx+650h], 0                                        ; +0x6, 0x1401c96e6\nmov     rdi, rcx                                                       ; +0xe, 0x1401c96ee\njz      short loc_1401C9702                                            ; +0x11, 0x1401c96f1\ncall    EditorUI__closeLiveColorSelect                                 ; +0x13, 0x1401c96f3\nmov     rcx, rdi                                                       ; +0x18, 0x1401c96f8\ncall    EditorUI__editColor                                            ; +0x1b, 0x1401c96fb\njmp     short loc_1401C971D                                            ; +0x20, 0x1401c9700\ncmp     qword ptr [rcx+658h], 0                                        ; +0x22, 0x1401c9702\njz      loc_1401C9832                                                  ; +0x2a, 0x1401c970a\ncall    EditorUI__closeLiveHSVSelect                                   ; +0x30, 0x1401c9710\nmov     rcx, rdi                                                       ; +0x35, 0x1401c9715\ncall    EditorUI__editHSV                                              ; +0x38, 0x1401c9718\nmov     rcx, [rdi+620h]                                                ; +0x3d, 0x1401c971d\nmov     [rsp+28h+arg_8], rbx                                           ; +0x44, 0x1401c9724\ntest    rcx, rcx                                                       ; +0x49, 0x1401c9729\njz      short loc_1401C9755                                            ; +0x4c, 0x1401c972c\nmovzx   eax, cs:word_1407032A4                                         ; +0x4e, 0x1401c972e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x55, 0x1401c9735\nmov     [rsp+28h+arg_0], ax                                            ; +0x5a, 0x1401c973a\nmovzx   eax, cs:byte_1407032A6                                         ; +0x5f, 0x1401c973f\nmov     [rsp+28h+arg_2], al                                            ; +0x66, 0x1401c9746\nmov     rax, [rcx]                                                     ; +0x6a, 0x1401c974a\ncall    qword ptr [rax+560h]                                           ; +0x6d, 0x1401c974d\njmp     short loc_1401C97CE                                            ; +0x73, 0x1401c9753\nmov     rcx, [rdi+3B0h]                                                ; +0x75, 0x1401c9755\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7c, 0x1401c975c\ntest    eax, eax                                                       ; +0x82, 0x1401c9762\njz      short loc_1401C97CE                                            ; +0x84, 0x1401c9764\nmov     rcx, [rdi+3B0h]                                                ; +0x86, 0x1401c9766\nxor     ebx, ebx                                                       ; +0x8d, 0x1401c976d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8f, 0x1401c976f\ntest    eax, eax                                                       ; +0x95, 0x1401c9775\njz      short loc_1401C97CE                                            ; +0x97, 0x1401c9777\nnop     dword ptr [rax+00000000h]                                      ; +0x99, 0x1401c9779\nmov     rcx, [rdi+3B0h]                                                ; +0xa0, 0x1401c9780\nmov     edx, ebx                                                       ; +0xa7, 0x1401c9787\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa9, 0x1401c9789\nmovzx   ecx, cs:word_1407032A4                                         ; +0xaf, 0x1401c978f\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xb6, 0x1401c9796\nmov     [rsp+28h+arg_0], cx                                            ; +0xbb, 0x1401c979b\nmovzx   ecx, cs:byte_1407032A6                                         ; +0xc0, 0x1401c97a0\nmov     [rsp+28h+arg_2], cl                                            ; +0xc7, 0x1401c97a7\nmov     rcx, [rax]                                                     ; +0xcb, 0x1401c97ab\nmov     r8, [rcx+560h]                                                 ; +0xce, 0x1401c97ae\nmov     rcx, rax                                                       ; +0xd5, 0x1401c97b5\ncall    r8                                                             ; +0xd8, 0x1401c97b8\nmov     rcx, [rdi+3B0h]                                                ; +0xdb, 0x1401c97bb\ninc     ebx                                                            ; +0xe2, 0x1401c97c2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe4, 0x1401c97c4\ncmp     ebx, eax                                                       ; +0xea, 0x1401c97ca\njb      short loc_1401C9780                                            ; +0xec, 0x1401c97cc\nmov     edx, 7Ch ; '|'                                                 ; +0xee, 0x1401c97ce\nmov     rcx, rdi                                                       ; +0xf3, 0x1401c97d3\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0xf6, 0x1401c97d6\nlea     rdx, EditorUI__deselectObjectsColor                            ; +0xfc, 0x1401c97dc\nmov     rcx, rdi                                                       ; +0x103, 0x1401c97e3\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x106, 0x1401c97e6\nmovss   xmm0, cs:dword_140834E00                                       ; +0x10c, 0x1401c97ec\nmov     rbx, rax                                                       ; +0x114, 0x1401c97f4\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x117, 0x1401c97f7\nxor     r8d, r8d                                                       ; +0x11d, 0x1401c97fd\nmov     rdx, rbx                                                       ; +0x120, 0x1401c9800\nmov     rcx, rax                                                       ; +0x123, 0x1401c9803\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x126, 0x1401c9806\nmov     edx, 7Ch ; '|'                                                 ; +0x12c, 0x1401c980c\nmov     rbx, rax                                                       ; +0x131, 0x1401c9811\nmov     rcx, [rax]                                                     ; +0x134, 0x1401c9814\nmov     r8, [rcx+40h]                                                  ; +0x137, 0x1401c9817\nmov     rcx, rax                                                       ; +0x13b, 0x1401c981b\ncall    r8                                                             ; +0x13e, 0x1401c981e\nmov     rdx, rbx                                                       ; +0x141, 0x1401c9821\nmov     rcx, rdi                                                       ; +0x144, 0x1401c9824\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x147, 0x1401c9827\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x14d, 0x1401c982d\nadd     rsp, 20h                                                       ; +0x152, 0x1401c9832\npop     rdi                                                            ; +0x156, 0x1401c9836\nretn                                                                   ; +0x157, 0x1401c9837", "xrefs": ["EditorUI::selectObject @ 0x1401c757d", "EditorUI::selectObjects @ 0x1401c7e9e", "<???> @ 0x1408a2e8c", "<???> @ 0x1408a2e9c", "<???> @ 0x14091a8ac"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}