//
// GameObject::getMainColorMode from 0x7712dc to 0x771324 (72 bytes)
//
// 18 xrefs:
// > GameObject::saveActiveColors @ 0x771ec0
// > GameObject::getColorKey @ 0x7822fc
// > LevelEditorLayer::updateObjectColors @ 0x78be18
// > LevelEditorLayer::updateObjectColors @ 0x78be44
// > LevelEditorLayer::updateVisibility @ 0x78e39c
// > LevelEditorLayer::updateVisibility @ 0x78e48c
// > LevelEditorLayer::updateVisibility @ 0x78e4b8
// > LevelEditorLayer::getNextColorChannel @ 0x7a9180
// > LevelEditorLayer::resetUnusedColorChannels @ 0x7a9900
// > EditorUI::enableButton @ 0x7c0b30
// > GJBaseGameLayer::triggerGradientCommand @ 0x9ad4c8
// > GameObject::setupCustomSprites @ 0xac878c
// > EditorUI::copyObjects @ 0xbda58c
// > EditorUI::canSelectObject @ 0xbdc828
// > EditorUI::findPassesFilters @ 0xbdc8cc
// > EditorUI::selectObjects @ 0xbdcd14
// > EditorUI::spriteFromObjectString @ 0xbde580
// > ??> @ 0x71e30
//
// 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::getMainColorMode(GameObject *this)
{
unsigned int *MainColor; // x0
unsigned int *v2; // x1
__int64 result; // x0
unsigned int v4; // w1
MainColor = (unsigned int *)GameObject::getMainColor(this);
v2 = MainColor;
if ( !MainColor )
return 0;
result = *MainColor;
v4 = v2[1];
if ( (_DWORD)result == v4 || !(_DWORD)result )
return v4;
return result;
}