{"type": "func", "start": 4295142944, "end": 4295143033, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x10002ae20 to 0x10002ae79 (89 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x10000aa02\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::onEditColor(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  if ( a1->m_selectedObject || (unsigned int)sub_100720070(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 0x10002ae20 to 0x10002ae79 (89 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x10000aa02\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, 0x10002ae20\nmov     rbp, rsp                                                       ; +0x1, 0x10002ae21\npush    rbx                                                            ; +0x4, 0x10002ae24\npush    rax                                                            ; +0x5, 0x10002ae25\nmov     rbx, rdi                                                       ; +0x6, 0x10002ae26\ncmp     qword ptr [rdi+520h], 0                                        ; +0x9, 0x10002ae29\njnz     short loc_10002AE43                                            ; +0x11, 0x10002ae31\nmov     rdi, [rbx+328h]                                                ; +0x13, 0x10002ae33\ncall    sub_100720070                                                  ; +0x1a, 0x10002ae3a\ntest    eax, eax                                                       ; +0x1f, 0x10002ae3f\njz      short loc_10002AE72                                            ; +0x21, 0x10002ae41\nmov     rdi, [rbx+3D8h]                                                ; +0x23, 0x10002ae43\nmov     rax, [rdi]                                                     ; +0x2a, 0x10002ae4a\ncall    qword ptr [rax+40h]                                            ; +0x2d, 0x10002ae4d\nmov     rdi, rbx                                                       ; +0x30, 0x10002ae50\ncmp     eax, 1                                                         ; +0x33, 0x10002ae53\njnz     short loc_10002AE5F                                            ; +0x36, 0x10002ae56\ncall    EditorUI__editHSV                                              ; +0x38, 0x10002ae58\njmp     short loc_10002AE64                                            ; +0x3d, 0x10002ae5d\ncall    EditorUI__editColor                                            ; +0x3f, 0x10002ae5f\nmov     rdi, rbx                                                       ; +0x44, 0x10002ae64\nadd     rsp, 8                                                         ; +0x47, 0x10002ae67\npop     rbx                                                            ; +0x4b, 0x10002ae6b\npop     rbp                                                            ; +0x4c, 0x10002ae6c\njmp     EditorUI__updateEditColorButton                                ; +0x4d, 0x10002ae6d\nadd     rsp, 8                                                         ; +0x52, 0x10002ae72\npop     rbx                                                            ; +0x56, 0x10002ae76\npop     rbp                                                            ; +0x57, 0x10002ae77\nretn                                                                   ; +0x58, 0x10002ae78", "xrefs": ["EditorUI::init @ 0x10000aa02"], "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"}