//
// GameObject::getRelativeSpriteColor from 0x10069b7c0 to 0x10069b82e (110 bytes)
//
// 24 xrefs:
// > EditorUI::updateObjectInfoLabel @ 0x10000e9ce
// > EditorUI::updateObjectInfoLabel @ 0x10000ea14
// > EditorUI::updateObjectInfoLabel @ 0x10000eb5b
// > EditorUI::updateObjectInfoLabel @ 0x10000eb8a
// > CustomizeObjectLayer::determineStartValues @ 0x1001d973e
// > CustomizeObjectLayer::determineStartValues @ 0x1001d9759
// > CustomizeObjectLayer::determineStartValues @ 0x1001d97f6
// > CustomizeObjectLayer::determineStartValues @ 0x1001d9828
// > CustomizeObjectLayer::getActiveMode @ 0x1001da893
// > CustomizeObjectLayer::getActiveMode @ 0x1001da910
// > CustomizeObjectLayer::updateSelected @ 0x1001daf13
// > CustomizeObjectLayer::updateSelected @ 0x1001dafc3
// > CustomizeObjectLayer::updateSelected @ 0x1001db020
// > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db4ee
// > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db549
// > HSVLiveOverlay::determineStartValues @ 0x100254e8e
// > HSVLiveOverlay::determineStartValues @ 0x100254ea9
// > HSVLiveOverlay::determineStartValues @ 0x100254f28
// > HSVLiveOverlay::determineStartValues @ 0x100254f4a
// > HSVLiveOverlay::hsvChanged @ 0x10025539e
// > HSVLiveOverlay::hsvChanged @ 0x1002553f6
// > ConfigureHSVWidget::getHSV @ 0x10041ee08
// > ConfigureHSVWidget::getHSV @ 0x10041ef3b
// > GameObject::setupCustomSprites @ 0x10045121c
//
// 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:16 +0000
//
__int64 __fastcall GameObject::getRelativeSpriteColor(__int64 a1, int a2)
{
bool v2; // al
__int64 v3; // rcx
if ( *(_WORD *)(a1 + 1040) == 1 || !*(_WORD *)(a1 + 1040) && *(_BYTE *)(a1 + 1292) || *(_QWORD *)(a1 + 888) )
{
v2 = 0;
if ( a2 == 2 )
{
LABEL_6:
v3 = 8LL * !v2 + 1096;
return *(_QWORD *)(a1 + v3);
}
}
else
{
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 1096) + 4LL) != 1004 && *(_DWORD *)(*(_QWORD *)(a1 + 1096) + 4LL) != 0;
if ( a2 == 2 )
goto LABEL_6;
}
v3 = 1096;
if ( v2 )
return 0;
return *(_QWORD *)(a1 + v3);
}