//
// EffectGameObject::getTargetColorIndex from 0x4e82f8 to 0x4e8348 (80 bytes)
//
// 2 xrefs:
// > ColorSelectPopup::updateCopyColor @ 0x4df1de
// > ColorSelectPopup::updateCopyColor @ 0x4df218
//
// 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:51:06 +0000
//
int __fastcall EffectGameObject::getTargetColorIndex(EffectGameObject *this)
{
int v1; // r3
v1 = *((_DWORD *)this + 223);
if ( v1 == 105 )
return 1004;
if ( v1 > 105 )
{
switch ( v1 )
{
case 900:
return 1009;
case 915:
return 1002;
case 744:
return 1003;
}
return *((_DWORD *)this + 222);
}
if ( v1 != 29 )
{
if ( v1 == 30 )
return 1001;
return *((_DWORD *)this + 222);
}
return 1000;
}