//
// ColorSelectPopup::updateColorValue from 0x100729440 to 0x100729506 (198 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall ColorSelectPopup::updateColorValue(ColorSelectPopup *a1)
{
EffectGameObject *m_gameObject; // rax
__int16 v3; // cx
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v5; // r14d
__int64 v6; // rax
__int16 v7; // cx
ColorAction *m_colorAction; // rax
__int16 v9; // cx
if ( !a1->m_initializing )
{
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
v3 = *(_WORD *)&a1->m_currentColor.r;
m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b;
*(_WORD *)&m_gameObject->m_triggerTargetColor.r = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
if ( (unsigned int)sub_100720070((__int64)m_gameObjects) )
{
v5 = 0;
do
{
v6 = sub_1007200C0((__int64)a1->m_gameObjects, v5);
v7 = *(_WORD *)&a1->m_currentColor.r;
*(_BYTE *)(v6 + 1450) = a1->m_currentColor.b;
*(_WORD *)(v6 + 1448) = v7;
++v5;
}
while ( v5 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) );
}
}
else
{
m_colorAction = a1->m_colorAction;
if ( m_colorAction )
{
v9 = *(_WORD *)&a1->m_currentColor.r;
m_colorAction->m_fromColor.b = a1->m_currentColor.b;
*(_WORD *)&m_colorAction->m_fromColor.r = v9;
}
}
}
}
}