//
// GameObject::getSecondaryColorMode from 0x771324 to 0x77136c (72 bytes)
//
// 16 xrefs:
// > GameObject::saveActiveColors @ 0x771ecc
// > GameObject::getColorKey @ 0x7824fc
// > LevelEditorLayer::updateObjectColors @ 0x78c048
// > LevelEditorLayer::updateObjectColors @ 0x78c1b4
// > LevelEditorLayer::updateVisibility @ 0x78e86c
// > LevelEditorLayer::updateVisibility @ 0x78e9cc
// > LevelEditorLayer::updateVisibility @ 0x78ea0c
// > LevelEditorLayer::getNextColorChannel @ 0x7a918c
// > LevelEditorLayer::resetUnusedColorChannels @ 0x7a990c
// > GJBaseGameLayer::triggerGradientCommand @ 0x9ad4d4
// > EditorUI::copyObjects @ 0xbda69c
// > EditorUI::canSelectObject @ 0xbdc838
// > EditorUI::findPassesFilters @ 0xbdc8dc
// > EditorUI::selectObjects @ 0xbdcd24
// > EditorUI::spriteFromObjectString @ 0xbde5b0
// > ??> @ 0x714b8
//
// 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::getSecondaryColorMode(GameObject *this)
{
unsigned int *SecondaryColor; // x0
unsigned int *v2; // x1
__int64 result; // x0
unsigned int v4; // w1
SecondaryColor = (unsigned int *)GameObject::getSecondaryColor(this);
v2 = SecondaryColor;
if ( !SecondaryColor )
return 0;
result = *SecondaryColor;
v4 = v2[1];
if ( (_DWORD)result == v4 || !(_DWORD)result )
return v4;
return result;
}