//
// GameObject::getMainColorMode from 0x357364 to 0x357376 (18 bytes)
//
// 16 xrefs:
// > GameObject::saveActiveColors @ 0x358d18
// > GameObject::getColorKey @ 0x363330
// > LevelEditorLayer::updateObjectColors @ 0x3677fc
// > LevelEditorLayer::updateObjectColors @ 0x367834
// > LevelEditorLayer::updateVisibility @ 0x36962e
// > LevelEditorLayer::updateVisibility @ 0x36989a
// > LevelEditorLayer::updateVisibility @ 0x3698d6
// > LevelEditorLayer::getNextColorChannel @ 0x371bb2
// > LevelEditorLayer::resetUnusedColorChannels @ 0x371d12
// > EditorUI::enableButton @ 0x37c3be
// > EditorUI::canSelectObject @ 0x37d86c
// > EditorUI::spriteFromObjectString @ 0x387d54
// > EditorUI::selectObjects @ 0x3a30f6
// > EditorUI::copyObjects @ 0x3a6578
// > GJBaseGameLayer::triggerGradientCommand @ 0x47c9c6
// > GameObject::setupCustomSprites @ 0x521dec
//
// 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 GameObject::getMainColorMode(GameObject *a1)
{
int result; // r0
result = (int)GameObject::getMainColor(a1);
if ( result )
return GJSpriteColor::getColorMode((GJSpriteColor *)result);
return result;
}