//
// EditorUI::checkLiveColorSelect from 0xbdc9f0 to 0xbdcb14 (292 bytes)
//
// 3 xrefs:
// > EditorUI::selectObject @ 0xbdcbe4
// > EditorUI::selectObjects @ 0xbdcf9c
// > ??> @ 0x96520
//
// 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 13:03:43 +0000
//
__int64 __fastcall EditorUI::checkLiveColorSelect(__int64 this)
{
__int64 v1; // x19
__int64 v2; // x0
cocos2d::CCDelayTime *v3; // x0
cocos2d::CCSequence *v4; // x20
cocos2d::CCFiniteTimeAction *v5; // x0
cocos2d::CCAction *v6; // x20
unsigned int v7; // w20
__int64 v8; // x0
bool v9; // cf
unsigned int v10; // w1
v1 = this;
if ( *(_QWORD *)(this + 1544) )
{
EditorUI::closeLiveColorSelect(this);
EditorUI::editColor((cocos2d::CCArray **)v1);
v2 = *(_QWORD *)(v1 + 1496);
if ( v2 )
{
LABEL_3:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1528LL))(v2, 65280);
LABEL_4:
v3 = (cocos2d::CCDelayTime *)cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)v1, 124);
v4 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v3, 0.1);
v5 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v1, EditorUI::deselectObjectsColor, 0);
v6 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v4, v5, 0);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v6 + 72LL))(v6, 124);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)v1, v6);
}
LABEL_7:
if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 896)) )
{
v7 = 0;
while ( 1 )
{
v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 896));
v10 = v7++;
if ( v9 )
break;
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v1 + 896), v10);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1528LL))(v8, 65280);
}
}
goto LABEL_4;
}
if ( *(_QWORD *)(this + 1552) )
{
EditorUI::closeLiveHSVSelect(this);
EditorUI::editHSV((EditorUI *)v1);
v2 = *(_QWORD *)(v1 + 1496);
if ( v2 )
goto LABEL_3;
goto LABEL_7;
}
return this;
}