//
// GameObject::getColorIndex from 0x772998 to 0x772a18 (128 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::getNextColorChannel @ 0x7a94b0
// > LevelEditorLayer::resetUnusedColorChannels @ 0x7a9c34
// > ??> @ 0x54ad8
//
// This function is hookable on this platform (idp: arm, 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:53:13 +0000
//
__int64 __fastcall GameObject::getColorIndex(GameObject *this)
{
int v1; // w1
__int64 result; // x0
v1 = *((_DWORD *)this + 257);
if ( v1 == 744 )
return 1003;
if ( v1 <= 744 )
{
if ( v1 == 30 )
{
return 1001;
}
else
{
result = 1004;
if ( v1 != 105 )
{
result = 1000;
if ( v1 != 29 )
return 0;
}
}
}
else if ( v1 == 900 )
{
return 1009;
}
else
{
result = 1002;
if ( v1 != 915 )
{
if ( v1 == 899 )
return *((unsigned int *)this + 256);
else
return 0;
}
}
return result;
}