//
// GameObject::getColorIndex from 0x44f806 to 0x44f864 (94 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::getNextColorChannel @ 0x4737ae
// > LevelEditorLayer::resetUnusedColorChannels @ 0x473ca2
//
// 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:48:36 +0000
//
int __fastcall GameObject::getColorIndex(GameObject *this)
{
int v1; // r3
v1 = *((_DWORD *)this + 223);
if ( v1 == 744 )
return 1003;
if ( v1 > 744 )
{
switch ( v1 )
{
case 900:
return 1009;
case 915:
return 1002;
case 899:
return *((_DWORD *)this + 222);
}
}
else
{
switch ( v1 )
{
case 30:
return 1001;
case 105:
return 1004;
case 29:
return 1000;
}
}
return 0;
}