{"type": "func", "start": 5370535552, "end": 5370535651, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x1401bde80 to 0x1401bdee3 (99 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1401ab655\n// > <???> @ 0x14091a498\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:01 +0000\n// \n\nunsigned int __fastcall EditorUI::onEditColor(__int64 a1)\n{\n  unsigned int result; // eax\n\n  if ( *(_QWORD *)(a1 + 1568) || (result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944))) != 0 )\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1152) + 56LL))(*(_QWORD *)(a1 + 1152)) == 1 )\n      EditorUI::editHSV(a1);\n    else\n      EditorUI::editColor(a1);\n    return EditorUI::updateEditColorButton(a1);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onEditColor from 0x1401bde80 to 0x1401bdee3 (99 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1401ab655\n; > <???> @ 0x14091a498\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:01 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401bde80\nsub     rsp, 20h                                                       ; +0x2, 0x1401bde82\ncmp     qword ptr [rcx+620h], 0                                        ; +0x6, 0x1401bde86\nmov     rbx, rcx                                                       ; +0xe, 0x1401bde8e\njnz     short loc_1401BDEA4                                            ; +0x11, 0x1401bde91\nmov     rcx, [rcx+3B0h]                                                ; +0x13, 0x1401bde93\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a, 0x1401bde9a\ntest    eax, eax                                                       ; +0x20, 0x1401bdea0\njz      short loc_1401BDEDD                                            ; +0x22, 0x1401bdea2\nmov     rcx, [rbx+480h]                                                ; +0x24, 0x1401bdea4\nmov     rax, [rcx]                                                     ; +0x2b, 0x1401bdeab\ncall    qword ptr [rax+38h]                                            ; +0x2e, 0x1401bdeae\nmov     rcx, rbx                                                       ; +0x31, 0x1401bdeb1\ncmp     eax, 1                                                         ; +0x34, 0x1401bdeb4\njnz     short loc_1401BDECB                                            ; +0x37, 0x1401bdeb7\ncall    EditorUI__editHSV                                              ; +0x39, 0x1401bdeb9\nmov     rcx, rbx                                                       ; +0x3e, 0x1401bdebe\nadd     rsp, 20h                                                       ; +0x41, 0x1401bdec1\npop     rbx                                                            ; +0x45, 0x1401bdec5\njmp     EditorUI__updateEditColorButton                                ; +0x46, 0x1401bdec6\ncall    EditorUI__editColor                                            ; +0x4b, 0x1401bdecb\nmov     rcx, rbx                                                       ; +0x50, 0x1401bded0\nadd     rsp, 20h                                                       ; +0x53, 0x1401bded3\npop     rbx                                                            ; +0x57, 0x1401bded7\njmp     EditorUI__updateEditColorButton                                ; +0x58, 0x1401bded8\nadd     rsp, 20h                                                       ; +0x5d, 0x1401bdedd\npop     rbx                                                            ; +0x61, 0x1401bdee1\nretn                                                                   ; +0x62, 0x1401bdee2", "xrefs": ["EditorUI::init @ 0x1401ab655", "<???> @ 0x14091a498"], "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"}