//
// EffectGameObject::getTargetColorIndex from 0x10019b640 to 0x10019b6a7 (103 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::updateCopyColor @ 0x10080a104
// > ColorSelectPopup::updateCopyColor @ 0x10080a16c
//
// 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:25:57 +0000
//
__int64 __fastcall EffectGameObject::getTargetColorIndex(__int64 a1)
{
int v1; // eax
v1 = *(_DWORD *)(a1 + 1028);
if ( v1 > 743 )
{
if ( v1 == 744 )
return 1003;
if ( v1 != 900 )
{
if ( v1 == 915 )
return 1002;
return *(unsigned int *)(a1 + 1024);
}
return 1009;
}
else
{
if ( v1 == 29 )
return 1000;
if ( v1 != 30 )
{
if ( v1 == 105 )
return 1004;
return *(unsigned int *)(a1 + 1024);
}
return 1001;
}
}