{"type": "func", "start": 4299048996, "end": 4299049104, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x1003e4824 to 0x1003e4890 (108 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x1003c632c\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_10024A36C((__int64)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 0x1003e4824 to 0x1003e4890 (108 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x1003c632c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003e4824\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003e4828\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003e482c\nMOV             X19, X0                                                ; +0xc, 0x1003e4830\nLDR             X8, [X0,#0x520]                                        ; +0x10, 0x1003e4834\nCBNZ            X8, loc_1003E4848                                      ; +0x14, 0x1003e4838\nLDR             X0, [X19,#0x328]                                       ; +0x18, 0x1003e483c\nBL              sub_10024A36C                                          ; +0x1c, 0x1003e4840\nCBZ             W0, loc_1003E4884                                      ; +0x20, 0x1003e4844\nLDR             X0, [X19,#0x3D8]                                       ; +0x24, 0x1003e4848\nLDR             X8, [X0]                                               ; +0x28, 0x1003e484c\nLDR             X8, [X8,#0x40]                                         ; +0x2c, 0x1003e4850\nBLR             X8                                                     ; +0x30, 0x1003e4854\nCMP             W0, #1                                                 ; +0x34, 0x1003e4858\nB.NE            loc_1003E486C                                          ; +0x38, 0x1003e485c\nMOV             X0, X19                                                ; +0x3c, 0x1003e4860\nBL              EditorUI__editHSV                                      ; +0x40, 0x1003e4864\nB               loc_1003E4874                                          ; +0x44, 0x1003e4868\nMOV             X0, X19                                                ; +0x48, 0x1003e486c\nBL              EditorUI__editColor                                    ; +0x4c, 0x1003e4870\nMOV             X0, X19                                                ; +0x50, 0x1003e4874\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x1003e4878\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x58, 0x1003e487c\nB               EditorUI__updateEditColorButton                        ; +0x5c, 0x1003e4880\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x1003e4884\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x1003e4888\nRET                                                                    ; +0x68, 0x1003e488c", "xrefs": ["EditorUI::init @ 0x1003c632c"], "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"}