//
// GameObject::isColorObject from 0x44ea5e to 0x44ea98 (58 bytes)
//
// 5 xrefs:
// > GameObject::getRelativeSpriteColor @ 0x44ea9e
// > LevelEditorLayer::updateVisibility @ 0x46300e
// > EditorUI::enableButton @ 0x4812a8
// > EditorUI::disableButton @ 0x4813c4
// > EditorUI::getCreateBtn @ 0x6f81e0
//
// 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
//
bool __fastcall GameObject::isColorObject(GameObject *this)
{
int v2; // r3
int v4; // r0
if ( *((_WORD *)this + 452) )
v2 = *((unsigned __int16 *)this + 452) == 1;
else
v2 = *((unsigned __int8 *)this + 1112);
if ( v2 )
return 0;
if ( GameObject::hasSecondaryColor(this) )
return 0;
v4 = *(_DWORD *)(*((_DWORD *)this + 240) + 4);
return v4 != 1004 && v4 != 0;
}