//
// LevelSettingsLayer::updateColorSprite from 0x570514 to 0x570570 (92 bytes)
//
// 6 xrefs:
// > LevelSettingsLayer::updateColorSprites @ 0x57057c
// > LevelSettingsLayer::updateColorSprites @ 0x570586
// > LevelSettingsLayer::updateColorSprites @ 0x570590
// > LevelSettingsLayer::updateColorSprites @ 0x57059a
// > LevelSettingsLayer::updateColorSprites @ 0x5705a4
// > LevelSettingsLayer::updateColorSprites @ 0x5705b2
//
// 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 LevelSettingsLayer::updateColorSprite(LevelSettingsLayer *a1, ColorChannelSprite *a2)
{
int v4; // r6
ColorAction *ColorAction; // r1
if ( a1->m_editorLayer )
{
v4 = a2->getTag(a2);
if ( GJEffectManager::colorExists(a1->m_editorLayer->m_levelSettings->m_effectManager, v4) )
{
ColorAction = GJEffectManager::getColorAction(a1->m_editorLayer->m_levelSettings->m_effectManager, v4);
ColorChannelSprite::updateValues(a2, ColorAction);
}
else
{
a2->setColor(a2, (const cocos2d::ccColor3B *)&word_9AD82C);
}
}
}