{"type": "func", "start": 4300967664, "end": 4300967982, "name": "EditorUI::checkLiveColorSelect", "pseudocode": "// \n// EditorUI::checkLiveColorSelect from 0x1005b8ef0 to 0x1005b902e (318 bytes)\n// \n// 2 xrefs:\n// > EditorUI::selectObject @ 0x1005b8825\n// > EditorUI::selectObjects @ 0x1005b8ee4\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 12:32:43 +0000\n// \n\nvoid __fastcall EditorUI::checkLiveColorSelect(_QWORD *a1)\n{\n  __int64 v2; // rdi\n  _OWORD *v3; // r14\n  __int64 v4; // rax\n  __int64 v5; // r14\n  unsigned int v6; // r14d\n  __int64 v7; // rax\n\n  if ( a1[193] )\n  {\n    EditorUI::closeLiveColorSelect((__int64)a1);\n    EditorUI::editColor(a1);\n    v2 = a1[187];\n    if ( v2 )\n    {\nLABEL_3:\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1528LL))(v2, 65280);\nLABEL_4:\n      cocos2d::CCNode::stopActionByTag((__int64)a1, 124);\n      v3 = cocos2d::CCDelayTime::create((__m128)0x3DCCCCCDu);\n      v4 = cocos2d::CCCallFunc::create(a1, EditorUI::deselectObjectsColor, 0);\n      v5 = sub_10039EB60((__int64)v3, v4, 0);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 124);\n      cocos2d::CCNode::runAction((__int64)a1, v5);\n      return;\n    }\nLABEL_7:\n    if ( (unsigned int)sub_1007FEF90(a1[112]) && (unsigned int)sub_1007FEF90(a1[112]) )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_1007FEFE0(a1[112], v6);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1528LL))(v7, 65280);\n        ++v6;\n      }\n      while ( v6 < (unsigned int)sub_1007FEF90(a1[112]) );\n    }\n    goto LABEL_4;\n  }\n  if ( a1[194] )\n  {\n    EditorUI::closeLiveHSVSelect((__int64)a1);\n    EditorUI::editHSV(a1);\n    v2 = a1[187];\n    if ( v2 )\n      goto LABEL_3;\n    goto LABEL_7;\n  }\n}", "assembly": "; \n; EditorUI::checkLiveColorSelect from 0x1005b8ef0 to 0x1005b902e (318 bytes)\n; \n; 2 xrefs:\n; > EditorUI::selectObject @ 0x1005b8825\n; > EditorUI::selectObjects @ 0x1005b8ee4\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 12:32:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005b8ef0\nmov     rbp, rsp                                                       ; +0x1, 0x1005b8ef1\npush    r14                                                            ; +0x4, 0x1005b8ef4\npush    rbx                                                            ; +0x6, 0x1005b8ef6\nmov     rbx, rdi                                                       ; +0x7, 0x1005b8ef7\ncmp     qword ptr [rdi+608h], 0                                        ; +0xa, 0x1005b8efa\njz      loc_1005B8F93                                                  ; +0x12, 0x1005b8f02\nmov     rdi, rbx                                                       ; +0x18, 0x1005b8f08\ncall    EditorUI__closeLiveColorSelect                                 ; +0x1b, 0x1005b8f0b\nmov     rdi, rbx                                                       ; +0x20, 0x1005b8f10\ncall    EditorUI__editColor                                            ; +0x23, 0x1005b8f13\nmov     rdi, [rbx+5D8h]                                                ; +0x28, 0x1005b8f18\ntest    rdi, rdi                                                       ; +0x2f, 0x1005b8f1f\njz      loc_1005B8FC1                                                  ; +0x32, 0x1005b8f22\nmov     rax, [rdi]                                                     ; +0x38, 0x1005b8f28\nmov     esi, 0FF00h                                                    ; +0x3b, 0x1005b8f2b\ncall    qword ptr [rax+5F8h]                                           ; +0x40, 0x1005b8f30\nmov     rdi, rbx                                                       ; +0x46, 0x1005b8f36\nmov     esi, 7Ch ; '|'                                                 ; +0x49, 0x1005b8f39\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x4e, 0x1005b8f3e\nmovss   xmm0, cs:dword_100A03744                                       ; +0x53, 0x1005b8f43\ncall    cocos2d__CCDelayTime__create                                   ; +0x5b, 0x1005b8f4b\nmov     r14, rax                                                       ; +0x60, 0x1005b8f50\nlea     rsi, EditorUI__deselectObjectsColor                            ; +0x63, 0x1005b8f53\nmov     rdi, rbx                                                       ; +0x6a, 0x1005b8f5a\nxor     edx, edx                                                       ; +0x6d, 0x1005b8f5d\ncall    cocos2d__CCCallFunc__create                                    ; +0x6f, 0x1005b8f5f\nmov     rdi, r14                                                       ; +0x74, 0x1005b8f64\nmov     rsi, rax                                                       ; +0x77, 0x1005b8f67\nxor     edx, edx                                                       ; +0x7a, 0x1005b8f6a\nxor     eax, eax                                                       ; +0x7c, 0x1005b8f6c\ncall    sub_10039EB60                                                  ; +0x7e, 0x1005b8f6e\nmov     r14, rax                                                       ; +0x83, 0x1005b8f73\nmov     rax, [rax]                                                     ; +0x86, 0x1005b8f76\nmov     rdi, r14                                                       ; +0x89, 0x1005b8f79\nmov     esi, 7Ch ; '|'                                                 ; +0x8c, 0x1005b8f7c\ncall    qword ptr [rax+48h]                                            ; +0x91, 0x1005b8f81\nmov     rdi, rbx                                                       ; +0x94, 0x1005b8f84\nmov     rsi, r14                                                       ; +0x97, 0x1005b8f87\npop     rbx                                                            ; +0x9a, 0x1005b8f8a\npop     r14                                                            ; +0x9b, 0x1005b8f8b\npop     rbp                                                            ; +0x9d, 0x1005b8f8d\njmp     cocos2d__CCNode__runAction                                     ; +0x9e, 0x1005b8f8e\ncmp     qword ptr [rbx+610h], 0                                        ; +0xa3, 0x1005b8f93\njz      loc_1005B9029                                                  ; +0xab, 0x1005b8f9b\nmov     rdi, rbx                                                       ; +0xb1, 0x1005b8fa1\ncall    EditorUI__closeLiveHSVSelect                                   ; +0xb4, 0x1005b8fa4\nmov     rdi, rbx                                                       ; +0xb9, 0x1005b8fa9\ncall    EditorUI__editHSV                                              ; +0xbc, 0x1005b8fac\nmov     rdi, [rbx+5D8h]                                                ; +0xc1, 0x1005b8fb1\ntest    rdi, rdi                                                       ; +0xc8, 0x1005b8fb8\njnz     loc_1005B8F28                                                  ; +0xcb, 0x1005b8fbb\nmov     rdi, [rbx+380h]                                                ; +0xd1, 0x1005b8fc1\ncall    sub_1007FEF90                                                  ; +0xd8, 0x1005b8fc8\ntest    eax, eax                                                       ; +0xdd, 0x1005b8fcd\njz      loc_1005B8F36                                                  ; +0xdf, 0x1005b8fcf\nmov     rdi, [rbx+380h]                                                ; +0xe5, 0x1005b8fd5\ncall    sub_1007FEF90                                                  ; +0xec, 0x1005b8fdc\ntest    eax, eax                                                       ; +0xf1, 0x1005b8fe1\njz      loc_1005B8F36                                                  ; +0xf3, 0x1005b8fe3\nxor     r14d, r14d                                                     ; +0xf9, 0x1005b8fe9\nnop     dword ptr [rax+00h]                                            ; +0xfc, 0x1005b8fec\nmov     rdi, [rbx+380h]                                                ; +0x100, 0x1005b8ff0\nmov     esi, r14d                                                      ; +0x107, 0x1005b8ff7\ncall    sub_1007FEFE0                                                  ; +0x10a, 0x1005b8ffa\nmov     rcx, [rax]                                                     ; +0x10f, 0x1005b8fff\nmov     rdi, rax                                                       ; +0x112, 0x1005b9002\nmov     esi, 0FF00h                                                    ; +0x115, 0x1005b9005\ncall    qword ptr [rcx+5F8h]                                           ; +0x11a, 0x1005b900a\ninc     r14d                                                           ; +0x120, 0x1005b9010\nmov     rdi, [rbx+380h]                                                ; +0x123, 0x1005b9013\ncall    sub_1007FEF90                                                  ; +0x12a, 0x1005b901a\ncmp     r14d, eax                                                      ; +0x12f, 0x1005b901f\njb      short loc_1005B8FF0                                            ; +0x132, 0x1005b9022\njmp     loc_1005B8F36                                                  ; +0x134, 0x1005b9024\npop     rbx                                                            ; +0x139, 0x1005b9029\npop     r14                                                            ; +0x13a, 0x1005b902a\npop     rbp                                                            ; +0x13c, 0x1005b902c\nretn                                                                   ; +0x13d, 0x1005b902d", "xrefs": ["EditorUI::selectObject @ 0x1005b8825", "EditorUI::selectObjects @ 0x1005b8ee4"], "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"}