//
// GameObject::getRelativeSpriteColor from 0x64a178 to 0x64a1d8 (96 bytes)
//
// 23 xrefs:
// > GameObject::updateCustomColorType @ 0x64a61c
// > EditorUI::updateObjectInfoLabel @ 0x6baac0
// > EditorUI::updateObjectInfoLabel @ 0x6bab0c
// > EditorUI::updateObjectInfoLabel @ 0x6bac5c
// > EditorUI::updateObjectInfoLabel @ 0x6bac88
// > CustomizeObjectLayer::determineStartValues @ 0x8406a0
// > CustomizeObjectLayer::determineStartValues @ 0x8406b8
// > CustomizeObjectLayer::determineStartValues @ 0x84072c
// > CustomizeObjectLayer::determineStartValues @ 0x840778
// > CustomizeObjectLayer::hsvPopupClosed @ 0x8409a4
// > CustomizeObjectLayer::hsvPopupClosed @ 0x8409f0
// > CustomizeObjectLayer::getActiveMode @ 0x840df0
// > CustomizeObjectLayer::getActiveMode @ 0x840e68
// > CustomizeObjectLayer::updateSelected @ 0x841268
// > CustomizeObjectLayer::updateSelected @ 0x84130c
// > ConfigureHSVWidget::getHSV @ 0x8e2814
// > GameObject::setupCustomSprites @ 0x984f88
// > HSVLiveOverlay::hsvChanged @ 0xa23a2c
// > HSVLiveOverlay::determineStartValues @ 0xa23acc
// > HSVLiveOverlay::determineStartValues @ 0xa23ae4
// > HSVLiveOverlay::determineStartValues @ 0xa23b04
// > HSVLiveOverlay::determineStartValues @ 0xa23b60
// > ??> @ 0x48900
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GJSpriteColor *GameObject::getRelativeSpriteColor(GameObject *a1, int a2)
{
bool isColorObject; // w0
isColorObject = GameObject::isColorObject(a1);
if ( a2 == 2 )
{
if ( isColorObject )
return a1->m_baseColor;
return a1->m_detailColor;
}
else
{
if ( !isColorObject )
return a1->m_baseColor;
return nullptr;
}
}