//
// GameObject::updateBlendMode from 0x645a24 to 0x645ab4 (144 bytes)
//
// 5 xrefs:
// > PlayLayer::manualUpdateObjectColors @ 0x5c8f98
// > GameObject::addMainSpriteToParent @ 0x646608
// > LevelEditorLayer::manualUpdateObjectColors @ 0x65fca8
// > EditorUI::spriteFromObjectString @ 0x697040
// > ??> @ 0xb1678
//
// 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
//
void GameObject::updateBlendMode(GameObject *a1)
{
bool shouldBlendColor; // w0
cocos2d::CCSprite *m_colorSprite; // x1
GJSpriteColor *m_detailColor; // x1
int m_colorID; // w2
int m_defaultColorID; // w3
shouldBlendColor = GameObject::shouldBlendColor(a1, a1->m_baseColor, 1);
m_colorSprite = a1->m_colorSprite;
a1->m_shouldBlendBase = shouldBlendColor;
if ( m_colorSprite )
{
m_detailColor = a1->m_detailColor;
m_colorID = m_detailColor->m_colorID;
m_defaultColorID = m_detailColor->m_defaultColorID;
if ( m_detailColor->m_colorID == m_defaultColorID || !m_colorID )
{
if ( m_defaultColorID == 1012 )
goto LABEL_6;
}
else if ( m_colorID == 1012 )
{
LABEL_6:
a1->m_shouldBlendDetail = shouldBlendColor;
return;
}
shouldBlendColor = GameObject::shouldBlendColor(a1, m_detailColor, 0);
goto LABEL_6;
}
a1->m_shouldBlendDetail = 0;
}