//
// LevelSettingsLayer::updateColorSprite from 0xb629e4 to 0xb62a88 (164 bytes)
//
// 7 xrefs:
// > LevelSettingsLayer::updateColorSprites @ 0xb62a9c
// > LevelSettingsLayer::updateColorSprites @ 0xb62aa8
// > LevelSettingsLayer::updateColorSprites @ 0xb62ab4
// > LevelSettingsLayer::updateColorSprites @ 0xb62ac0
// > LevelSettingsLayer::updateColorSprites @ 0xb62acc
// > LevelSettingsLayer::updateColorSprites @ 0xb62ae0
// > ??> @ 0x646a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:13 +0000
//
__int64 __fastcall LevelSettingsLayer::updateColorSprite(__int64 this, ColorChannelSprite *a2)
{
__int64 v3; // x20
int v4; // w21
ColorAction *ColorAction; // x0
if ( *(_QWORD *)(this + 856) )
{
v3 = this;
v4 = (*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)a2 + 64LL))(a2);
if ( GJEffectManager::colorExists(*(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v3 + 856) + 3272LL) + 320LL), v4) )
{
ColorAction = GJEffectManager::getColorAction(
*(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v3 + 856) + 3272LL) + 320LL),
v4);
return ColorChannelSprite::updateValues(a2, ColorAction);
}
else
{
return (*(__int64 (__fastcall **)(ColorChannelSprite *, void *))(*(_QWORD *)a2 + 960LL))(a2, &unk_1190520);
}
}
return this;
}