//
// GameObject::getMainColorMode from 0x1002fb214 to 0x1002fb234 (32 bytes)
//
// 15 xrefs:
// > EditorUI::spriteFromObjectString @ 0x100184c14
// > EditorUI::copyObjects @ 0x100189ddc
// > EditorUI::canSelectObject @ 0x1001a5c38
// > EditorUI::selectObjects @ 0x1001a5e80
// > sub_1001A6778 @ 0x1001a67d8
// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b4c0
// > GameObject::setupCustomSprites @ 0x10034f7d8
// > LevelEditorLayer::updateVisibility @ 0x100400270
// > LevelEditorLayer::updateVisibility @ 0x1004002c8
// > LevelEditorLayer::updateVisibility @ 0x100400410
// > LevelEditorLayer::updateObjectColors @ 0x100400890
// > LevelEditorLayer::updateObjectColors @ 0x1004008e8
// > LevelEditorLayer::getNextColorChannel @ 0x100401ce0
// > LevelEditorLayer::resetUnusedColorChannels @ 0x100401e8c
// > EditorUI::enableButton @ 0x100474964
//
// 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 11:03:02 +0000
//
__int64 __fastcall GameObject::getMainColorMode(__int64 a1)
{
unsigned int *v1; // x8
unsigned int v2; // w8
v1 = *(unsigned int **)(a1 + 1096);
if ( !v1 )
return 0;
v2 = *v1;
if ( v2 )
return v2;
else
return *(unsigned int *)(*(_QWORD *)(a1 + 1096) + 4LL);
}