//
// GameObject::getMainColorMode from 0x100691350 to 0x10069136e (30 bytes)
//
// 17 xrefs:
// > EditorUI::updateCreateMenu @ 0x10000d126
// > EditorUI::updateCreateMenu @ 0x10000d2b6
// > EditorUI::enableButton @ 0x10000d662
// > LevelEditorLayer::updateVisibility @ 0x1000bdd6b
// > LevelEditorLayer::updateVisibility @ 0x1000be0be
// > LevelEditorLayer::updateVisibility @ 0x1000be123
// > LevelEditorLayer::updateObjectColors @ 0x1000be76f
// > LevelEditorLayer::updateObjectColors @ 0x1000be7d4
// > LevelEditorLayer::getNextColorChannel @ 0x1000c0e64
// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11c4
// > GJBaseGameLayer::triggerGradientCommand @ 0x1001168ea
// > GameObject::setupCustomSprites @ 0x10043a7b7
// > EditorUI::copyObjects @ 0x1005b611e
// > EditorUI::canSelectObject @ 0x1005b88cb
// > EditorUI::selectObjects @ 0x1005b8bc1
// > sub_1005B9640 @ 0x1005b96a1
// > EditorUI::spriteFromObjectString @ 0x100638958
//
// This function is hookable on this platform (idp: pc, 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:35:08 +0000
//
__int64 __fastcall GameObject::getMainColorMode(__int64 a1)
{
unsigned int *v1; // rcx
__int64 result; // rax
v1 = *(unsigned int **)(a1 + 1096);
if ( !v1 )
return 0;
result = *v1;
if ( !(_DWORD)result )
return v1[1];
return result;
}