//
// LevelSettingsLayer::updateColorSprite from 0x100258ff0 to 0x100259094 (164 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:27:27 +0000
//
__int64 __fastcall LevelSettingsLayer::updateColorSprite(__int64 a1, __int64 a2, double a3)
{
__int64 v3; // r15
__int64 ColorAction; // rax
__int64 result; // rax
if ( *(_QWORD *)(a1 + 856) )
{
v3 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (unsigned __int8)GJEffectManager::colorExists(
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 856) + 3272LL) + 320LL),
v3) )
{
ColorAction = GJEffectManager::getColorAction(
*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 856) + 3272LL) + 320LL),
(unsigned int)v3);
return ColorChannelSprite::updateValues(a2, ColorAction, a3);
}
else
{
return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 960LL))(a2, &unk_100A06A06);
}
}
return result;
}