//
// GJSpriteColor::getColorMode from 0x35388c to 0x35389a (14 bytes)
//
// 19 xrefs:
// > GameObject::shouldBlendColor @ 0x35443c
// > GameObject::updateBlendMode @ 0x355a9e
// > GameObject::updateObjectEditorColor @ 0x356bc6
// > GameObject::updateObjectEditorColor @ 0x356c00
// > GameObject::getMainColorMode @ 0x357370
// > GameObject::getSecondaryColorMode @ 0x357382
// > GameObject::duplicateColorMode @ 0x358772
// > GameObject::duplicateColorMode @ 0x358780
// > GameObject::duplicateColorMode @ 0x3587a8
// > EditorUI::getEditColorTargets @ 0x37fac2
// > EditorUI::getEditColorTargets @ 0x37fae0
// > EditorUI::getEditColorTargets @ 0x37fb98
// > EditorUI::getEditColorTargets @ 0x37fbbe
// > EditorUI::updateObjectInfoLabel @ 0x3a0720
// > EditorUI::updateObjectInfoLabel @ 0x3a074a
// > EditorUI::updateObjectInfoLabel @ 0x3a07fe
// > EditorUI::updateObjectInfoLabel @ 0x3a0814
// > EditorUI::pasteObjects @ 0x3a39be
// > EditorUI::pasteObjects @ 0x3a39f6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int GJSpriteColor::getColorMode(GJSpriteColor *a1)
{
int result; // r0
int m_defaultColorID; // r3
result = a1->m_colorID;
m_defaultColorID = a1->m_defaultColorID;
if ( m_defaultColorID != result && !result )
return m_defaultColorID;
return result;
}