//
// LevelSettingsLayer::updateColorSprite from 0x10017bf58 to 0x10017c004 (172 bytes)
//
// 6 xrefs:
// > LevelSettingsLayer::updateColorSprites @ 0x10017b3ec
// > LevelSettingsLayer::updateColorSprites @ 0x10017b3f8
// > LevelSettingsLayer::updateColorSprites @ 0x10017b404
// > LevelSettingsLayer::updateColorSprites @ 0x10017b410
// > LevelSettingsLayer::updateColorSprites @ 0x10017b41c
// > LevelSettingsLayer::updateColorSprites @ 0x10017b430
//
// 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 LevelSettingsLayer::updateColorSprite(LevelSettingsLayer *a1, ColorChannelSprite *a2)
{
int v4; // w21
ColorAction *ColorAction; // x1
if ( a1->m_editorLayer )
{
v4 = ((__int64 (__fastcall *)(ColorChannelSprite *))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
{
((void (__fastcall *)(ColorChannelSprite *, void *))a2->setColor)(a2, &unk_100638E4E);
}
}
}