{"type": "func", "start": 4735600, "end": 4735648, "name": "EditorUI::onEditColor", "pseudocode": "// \n// EditorUI::onEditColor from 0x484270 to 0x4842a0 (48 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f217a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n// \n\nint __fastcall EditorUI::onEditColor(EditorUI *this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n  int v4; // r1\n  int v5; // r2\n  EffectGameObject *v6; // r3\n\n  result = EditorUI::editColorButtonUsable(this);\n  if ( result )\n  {\n    if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 193) + 32))(*((_DWORD *)this + 193)) == 1 )\n      EditorUI::editHSV((GameObject **)this);\n    else\n      EditorUI::editColor((cocos2d::CCArray **)this, v4, v5, v6);\n    return EditorUI::updateEditColorButton(this);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onEditColor from 0x484270 to 0x4842a0 (48 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f217a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x484270\nMOV             R4, R0                                                 ; +0x2, 0x484272\nBL              _ZN8EditorUI21editColorButtonUsableEv; EditorUI::editColorButtonUsable(void) ; +0x4, 0x484274\nCBZ             R0, locret_48429E                                      ; +0x8, 0x484278\nLDR.W           R0, [R4,#0x304]                                        ; +0xa, 0x48427a\nLDR             R3, [R0]                                               ; +0xe, 0x48427e\nLDR             R3, [R3,#0x20]                                         ; +0x10, 0x484280\nBLX             R3                                                     ; +0x12, 0x484282\nCMP             R0, #1                                                 ; +0x14, 0x484284\nMOV             R0, R4; this                                           ; +0x16, 0x484286\nBNE             loc_484290                                             ; +0x18, 0x484288\nBL              _ZN8EditorUI7editHSVEv; EditorUI::editHSV(void)        ; +0x1a, 0x48428a\nB               loc_484294                                             ; +0x1e, 0x48428e\nBL              _ZN8EditorUI9editColorEv; EditorUI::editColor(void)    ; +0x20, 0x484290\nMOV             R0, R4; this                                           ; +0x24, 0x484294\nPOP.W           {R4,LR}                                                ; +0x26, 0x484296\nB.W             _ZN8EditorUI21updateEditColorButtonEv; EditorUI::updateEditColorButton(void) ; +0x2a, 0x48429a\nPOP             {R4,PC}                                                ; +0x2e, 0x48429e", "xrefs": ["EditorUI::handleEditorAction @ 0x6f217a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}