//
// GameObject::getSecondaryColorMode from 0x6484c4 to 0x64850c (72 bytes)
//
// 15 xrefs:
// > GameObject::saveActiveColors @ 0x64aadc
// > GameObject::getColorKey @ 0x656afc
// > LevelEditorLayer::updateObjectColors @ 0x65fa34
// > LevelEditorLayer::updateObjectColors @ 0x65fba0
// > LevelEditorLayer::updateVisibility @ 0x663258
// > LevelEditorLayer::updateVisibility @ 0x6633cc
// > LevelEditorLayer::updateVisibility @ 0x663574
// > LevelEditorLayer::getNextColorChannel @ 0x672c5c
// > LevelEditorLayer::resetUnusedColorChannels @ 0x672ed0
// > EditorUI::canSelectObject @ 0x6890ec
// > EditorUI::spriteFromObjectString @ 0x6970f0
// > EditorUI::selectObjects @ 0x6bea08
// > EditorUI::copyObjects @ 0x6c46b4
// > GJBaseGameLayer::triggerGradientCommand @ 0x86c258
// > ??> @ 0x515e8
//
// 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::getSecondaryColorMode(GameObject *a1)
{
GJSpriteColor *SecondaryColor; // x0
GJSpriteColor *v2; // x1
int result; // w0
int m_defaultColorID; // w1
SecondaryColor = GameObject::getSecondaryColor(a1);
v2 = SecondaryColor;
if ( !SecondaryColor )
return 0;
result = SecondaryColor->m_colorID;
m_defaultColorID = v2->m_defaultColorID;
if ( result == m_defaultColorID || !result )
return m_defaultColorID;
return result;
}