//
// GameObject::getColorIndex from 0x64b5a8 to 0x64b628 (128 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::getNextColorChannel @ 0x672d68
// > LevelEditorLayer::resetUnusedColorChannels @ 0x672fe8
// > ??> @ 0x3a308
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int GameObject::getColorIndex(GameObject *a1)
{
int m_objectID; // w1
int result; // w0
m_objectID = a1->m_objectID;
if ( m_objectID == 744 )
return 1003;
if ( m_objectID <= 744 )
{
if ( m_objectID == 30 )
{
return 1001;
}
else
{
result = 1004;
if ( m_objectID != 105 )
{
result = 1000;
if ( m_objectID != 29 )
return 0;
}
}
}
else if ( m_objectID == 900 )
{
return 1009;
}
else
{
result = 1002;
if ( m_objectID != 915 )
{
if ( m_objectID == 899 )
return a1->m_targetColor;
else
return 0;
}
}
return result;
}