//
// LevelSettingsLayer::updateColorSprite from 0x6a95b0 to 0x6a960c (92 bytes)
//
// 6 xrefs:
// > LevelSettingsLayer::updateColorSprites @ 0x6a9618
// > LevelSettingsLayer::updateColorSprites @ 0x6a9622
// > LevelSettingsLayer::updateColorSprites @ 0x6a962c
// > LevelSettingsLayer::updateColorSprites @ 0x6a9636
// > LevelSettingsLayer::updateColorSprites @ 0x6a9640
// > LevelSettingsLayer::updateColorSprites @ 0x6a964e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:33 +0000
//
int __fastcall LevelSettingsLayer::updateColorSprite(int this, ColorChannelSprite *a2)
{
int v2; // r5
int v4; // r6
ColorAction *ColorAction; // r1
v2 = this;
if ( *(_DWORD *)(this + 616) )
{
v4 = (*(int (__fastcall **)(ColorChannelSprite *))(*(_DWORD *)a2 + 32))(a2);
if ( GJEffectManager::colorExists(*(GJEffectManager **)(*(_DWORD *)(*(_DWORD *)(v2 + 616) + 2084) + 264), v4) )
{
ColorAction = GJEffectManager::getColorAction(
*(GJEffectManager **)(*(_DWORD *)(*(_DWORD *)(v2 + 616) + 2084) + 264),
v4);
return ColorChannelSprite::updateValues(a2, ColorAction);
}
else
{
return (*(int (__fastcall **)(ColorChannelSprite *, __int16 *))(*(_DWORD *)a2 + 480))(a2, &word_BEF9C4);
}
}
return this;
}