//
// GameObject::isColorObject from 0x7714ec to 0x77155c (112 bytes)
//
// 6 xrefs:
// > GameObject::getRelativeSpriteColor @ 0x771570
// > LevelEditorLayer::updateVisibility @ 0x78e820
// > EditorUI::enableButton @ 0x7c0b50
// > EditorUI::disableButton @ 0x7c0c70
// > EditorUI::getCreateBtn @ 0xbe26a4
// > ??> @ 0xc17c8
//
// 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::isColorObject(GameObject *this)
{
if ( *((_WORD *)this + 520) )
{
if ( *((_WORD *)this + 520) == 1 )
return 0;
}
else if ( *((_BYTE *)this + 1292) )
{
return 0;
}
if ( GameObject::hasSecondaryColor(this) )
return 0;
return (*(_DWORD *)(*((_QWORD *)this + 137) + 4LL) != 1004)
& (unsigned __int8)(*(_DWORD *)(*((_QWORD *)this + 137) + 4LL) != 0);
}