//
// GameObject::getRelativeSpriteColor from 0x77155c to 0x7715bc (96 bytes)
//
// 23 xrefs:
// > GameObject::updateCustomColorType @ 0x771a08
// > EditorUI::updateObjectInfoLabel @ 0x7cd0ec
// > EditorUI::updateObjectInfoLabel @ 0x7cd138
// > EditorUI::updateObjectInfoLabel @ 0x7cd234
// > EditorUI::updateObjectInfoLabel @ 0x7cd260
// > CustomizeObjectLayer::determineStartValues @ 0x98310c
// > CustomizeObjectLayer::determineStartValues @ 0x983124
// > CustomizeObjectLayer::determineStartValues @ 0x983198
// > CustomizeObjectLayer::determineStartValues @ 0x9831e4
// > CustomizeObjectLayer::hsvPopupClosed @ 0x983410
// > CustomizeObjectLayer::hsvPopupClosed @ 0x98345c
// > CustomizeObjectLayer::getActiveMode @ 0x98356c
// > CustomizeObjectLayer::getActiveMode @ 0x9835e4
// > CustomizeObjectLayer::updateSelected @ 0x9839fc
// > CustomizeObjectLayer::updateSelected @ 0x983aa0
// > ConfigureHSVWidget::getHSV @ 0xa3a5cc
// > GameObject::setupCustomSprites @ 0xac815c
// > HSVLiveOverlay::hsvChanged @ 0xb50650
// > HSVLiveOverlay::determineStartValues @ 0xb506f0
// > HSVLiveOverlay::determineStartValues @ 0xb50708
// > HSVLiveOverlay::determineStartValues @ 0xb50728
// > HSVLiveOverlay::determineStartValues @ 0xb50784
// > ??> @ 0x669d0
//
// 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::getRelativeSpriteColor(GameObject *this, int a2)
{
char isColorObject; // w0
isColorObject = GameObject::isColorObject(this);
if ( a2 == 2 )
{
if ( isColorObject )
return *((_QWORD *)this + 137);
return *((_QWORD *)this + 138);
}
else
{
if ( !isColorObject )
return *((_QWORD *)this + 137);
return 0;
}
}