//
// GameObject::editorColorForCustomMode from 0x44e0d0 to 0x44e10a (58 bytes)
//
// 1 xrefs:
// > GameObject::editorColorForMode @ 0x44e186
//
// 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:35 +0000
//
int __fastcall GameObject::editorColorForCustomMode(GameObject *this, int a2)
{
unsigned int v2; // r1
char *v3; // r1
unsigned __int8 v4; // r4
unsigned __int8 v5; // r2
unsigned __int8 v6; // r3
if ( a2 > 4 )
a2 -= 5;
v2 = a2 % 12;
if ( v2 > 0xB )
{
v6 = -1;
v5 = -1;
v4 = -1;
}
else
{
v3 = (char *)&word_BEBBDC + v2;
v4 = v3[4];
v5 = v3[16];
v6 = v3[28];
}
return v4 | (unsigned __int16)(v5 << 8) | (v6 << 16);
}