//
// EditorUI::checkLiveColorSelect from 0x1001a6174 to 0x1001a629c (296 bytes)
//
// 2 xrefs:
// > EditorUI::selectObject @ 0x1001a5b8c
// > EditorUI::selectObjects @ 0x1001a6170
//
// 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 11:00:03 +0000
//
double __fastcall EditorUI::checkLiveColorSelect(_QWORD *a1)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 v4; // x20
double result; // d0
__int64 v6; // x20
__int64 v7; // x0
if ( a1[193] )
{
sub_10047C104(a1);
sub_10047C974(a1);
}
else
{
if ( !a1[194] )
return result;
sub_10047CA98(a1);
sub_10047C854(a1);
}
v2 = a1[187];
if ( v2 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1528LL))(v2, 65280);
}
else if ( (unsigned int)sub_1002E757C(a1[112]) && (unsigned int)sub_1002E757C(a1[112]) )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(a1[112], v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1528LL))(v7, 65280);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_1002E757C(a1[112]) );
}
cocos2d::CCNode::stopActionByTag(a1, 124);
v3 = cocos2d::CCDelayTime::create(0.1);
cocos2d::CCCallFunc::create(a1, sub_1001A6CC8, 0);
v4 = sub_10021D420(v3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 124);
*(_QWORD *)&result = cocos2d::CCNode::runAction(a1, v4).n128_u64[0];
return result;
}