{"type": "func", "start": 5369883280, "end": 5369883379, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x14011ea90 to 0x14011eaf3 (99 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1400e0ce8\n// > <???> @ 0x1406c94e0\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::onEditColor(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  if ( a1->m_selectedObject || cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    if ( ((unsigned int (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_editHSVBtn->getTag)(\n           a1->m_editHSVBtn,\n           a2) == 1 )\n      EditorUI::editHSV(a1);\n    else\n      EditorUI::editColor(a1);\n    EditorUI::updateEditColorButton(a1);\n  }\n}", "assembly": "; \n; EditorUI::onEditColor from 0x14011ea90 to 0x14011eaf3 (99 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1400e0ce8\n; > <???> @ 0x1406c94e0\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, 0x14011ea90\nsub     rsp, 20h                                                       ; +0x2, 0x14011ea92\ncmp     qword ptr [rcx+538h], 0                                        ; +0x6, 0x14011ea96\nmov     rbx, rcx                                                       ; +0xe, 0x14011ea9e\njnz     short loc_14011EAB4                                            ; +0x11, 0x14011eaa1\nmov     rcx, [rcx+340h]                                                ; +0x13, 0x14011eaa3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a, 0x14011eaaa\ntest    eax, eax                                                       ; +0x20, 0x14011eab0\njz      short loc_14011EAED                                            ; +0x22, 0x14011eab2\nmov     rcx, [rbx+3F0h]                                                ; +0x24, 0x14011eab4\nmov     rax, [rcx]                                                     ; +0x2b, 0x14011eabb\ncall    qword ptr [rax+38h]                                            ; +0x2e, 0x14011eabe\nmov     rcx, rbx                                                       ; +0x31, 0x14011eac1\ncmp     eax, 1                                                         ; +0x34, 0x14011eac4\njnz     short loc_14011EADB                                            ; +0x37, 0x14011eac7\ncall    EditorUI__editHSV                                              ; +0x39, 0x14011eac9\nmov     rcx, rbx                                                       ; +0x3e, 0x14011eace\nadd     rsp, 20h                                                       ; +0x41, 0x14011ead1\npop     rbx                                                            ; +0x45, 0x14011ead5\njmp     EditorUI__updateEditColorButton                                ; +0x46, 0x14011ead6\ncall    EditorUI__editColor                                            ; +0x4b, 0x14011eadb\nmov     rcx, rbx                                                       ; +0x50, 0x14011eae0\nadd     rsp, 20h                                                       ; +0x53, 0x14011eae3\npop     rbx                                                            ; +0x57, 0x14011eae7\njmp     EditorUI__updateEditColorButton                                ; +0x58, 0x14011eae8\nadd     rsp, 20h                                                       ; +0x5d, 0x14011eaed\npop     rbx                                                            ; +0x61, 0x14011eaf1\nretn                                                                   ; +0x62, 0x14011eaf2", "xrefs": ["EditorUI::init @ 0x1400e0ce8", "<???> @ 0x1406c94e0"], "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"}