//
// EditorUI::colorSelectClosed from 0x7c65b4 to 0x7c6618 (100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorUI::colorSelectClosed @ 0x7c661c
// > ??> @ 0xd05e8
// > ??> @ 0x1437280
//
// 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
//
unsigned __int8 **__fastcall EditorUI::colorSelectClosed(unsigned __int8 **this, cocos2d::CCNode *a2)
{
EditorUI *v2; // x19
unsigned __int8 *v3; // x2
unsigned __int8 *v4; // x2
int v5; // w20
v2 = (EditorUI *)this;
v3 = *(this + 193);
if ( v3 == (unsigned __int8 *)a2 )
{
v5 = v3[857];
*(this + 193) = nullptr;
this = (unsigned __int8 **)EditorUI::resetSelectedObjectsColor((EditorUI *)this);
}
else
{
v4 = *(this + 194);
if ( v4 != (unsigned __int8 *)a2 )
return this;
v5 = v4[730];
*(this + 194) = nullptr;
this = (unsigned __int8 **)EditorUI::resetSelectedObjectsColor((EditorUI *)this);
}
if ( v5 )
return (unsigned __int8 **)EditorUI::updateEditColorButton(v2);
return this;
}