//
// EditorUI::onEditColor from 0x7c607c to 0x7c60ec (112 bytes)
//
// 4 xrefs:
// > EditorUI::handleEditorAction @ 0xbd75b8
// > ??> @ 0x7e7c0
// > EditorUI::init @ 0x7d0398
// > ??> @ 0x1543468
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:54:08 +0000
//
__int64 __fastcall EditorUI::onEditColor(EditorUI *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
result = EditorUI::editColorButtonUsable(this);
if ( (_BYTE)result )
{
if ( (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 64LL))(*((_QWORD *)this + 138)) == 1 )
EditorUI::editHSV(this);
else
EditorUI::editColor((cocos2d::CCArray **)this);
return EditorUI::updateEditColorButton(this);
}
return result;
}