//
// ColorSelectPopup::updateCustomColorIdx from 0x140093330 to 0x1400933c9 (153 bytes)
//
// 6 xrefs:
// > ColorSelectPopup::onUpdateCustomColor @ 0x140092d63
// > ColorSelectPopup::textChanged @ 0x140092eb6
// > ColorSelectPopup::colorSelectClosed @ 0x14009381c
// > ??> @ 0x14066959c
// > ??> @ 0x1406695ac
// > ??> @ 0x1406c70f8
//
// 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 ColorSelectPopup::updateCustomColorIdx(ColorSelectPopup *a1)
{
int m_colorID; // eax
EffectGameObject *m_gameObject; // rcx
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v5; // edi
struct cocos2d::CCObject *v6; // rax
m_colorID = a1->m_colorID;
if ( m_colorID < 1 )
m_colorID = 1;
m_gameObject = a1->m_gameObject;
a1->m_colorID = m_colorID;
if ( m_gameObject )
{
m_gameObject->m_targetColor = m_colorID;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v5 = 0;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5++);
v6[18].m_uAutoReleaseCount = a1->m_colorID;
}
while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
}
}