//
// GameObject::editorColorForCustomMode from 0x770508 to 0x770598 (144 bytes)
//
// 2 xrefs:
// > GameObject::editorColorForMode @ 0x7706a8
// > ??> @ 0xcbe60
//
// 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:12 +0000
//
unsigned __int64 __fastcall GameObject::editorColorForCustomMode(GameObject *this, int a2)
{
__int64 v2; // x0
unsigned __int8 v3; // w3
unsigned __int8 v4; // w2
unsigned __int8 v5; // w1
if ( a2 >= 5 )
a2 -= 5;
v2 = (unsigned int)(a2 % 12);
if ( (unsigned int)v2 > 0xB )
{
v5 = -1;
v4 = -1;
v3 = -1;
}
else
{
v3 = byte_11415E0[v2];
v4 = byte_11415F0[v2];
v5 = byte_1141600[v2];
}
return v3 | (unsigned __int64)(unsigned __int16)(v4 << 8) | ((unsigned __int64)v5 << 16);
}