//
// GameObject::getRelativeSpriteColor from 0x358732 to 0x358756 (36 bytes)
//
// 22 xrefs:
// > GameObject::updateCustomColorType @ 0x358a26
// > EditorUI::updateObjectInfoLabel @ 0x3a071a
// > EditorUI::updateObjectInfoLabel @ 0x3a0744
// > EditorUI::updateObjectInfoLabel @ 0x3a07f4
// > EditorUI::updateObjectInfoLabel @ 0x3a080a
// > CustomizeObjectLayer::determineStartValues @ 0x461730
// > CustomizeObjectLayer::determineStartValues @ 0x461744
// > CustomizeObjectLayer::determineStartValues @ 0x461790
// > CustomizeObjectLayer::determineStartValues @ 0x4617a8
// > CustomizeObjectLayer::hsvPopupClosed @ 0x46193c
// > CustomizeObjectLayer::hsvPopupClosed @ 0x46196a
// > CustomizeObjectLayer::getActiveMode @ 0x461ae4
// > CustomizeObjectLayer::getActiveMode @ 0x461b20
// > CustomizeObjectLayer::updateSelected @ 0x461d1a
// > CustomizeObjectLayer::updateSelected @ 0x461d98
// > ConfigureHSVWidget::getHSV @ 0x4b7b9c
// > GameObject::setupCustomSprites @ 0x521f16
// > HSVLiveOverlay::hsvChanged @ 0x564366
// > HSVLiveOverlay::determineStartValues @ 0x5643da
// > HSVLiveOverlay::determineStartValues @ 0x5643f2
// > HSVLiveOverlay::determineStartValues @ 0x564408
// > HSVLiveOverlay::determineStartValues @ 0x56441c
//
// 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)
{
_BOOL4 isColorObject; // r0
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;
}
}