//
// GameObject::updateBlendMode from 0x355a7e to 0x355abe (64 bytes)
//
// 4 xrefs:
// > PlayLayer::manualUpdateObjectColors @ 0x30ebe2
// > GameObject::addMainSpriteToParent @ 0x3561f2
// > LevelEditorLayer::manualUpdateObjectColors @ 0x367b40
// > EditorUI::spriteFromObjectString @ 0x387bb2
//
// 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; // r0
cocos2d::CCSprite *m_colorSprite; // r3
bool v4; // r5
GJSpriteColor *m_detailColor; // r6
shouldBlendColor = GameObject::shouldBlendColor(a1, a1->m_baseColor, 1);
m_colorSprite = a1->m_colorSprite;
v4 = shouldBlendColor;
a1->m_shouldBlendBase = shouldBlendColor;
if ( m_colorSprite )
{
m_detailColor = a1->m_detailColor;
if ( GJSpriteColor::getColorMode(m_detailColor) != 1012 )
v4 = GameObject::shouldBlendColor(a1, m_detailColor, 0);
}
else
{
v4 = 0;
}
a1->m_shouldBlendDetail = v4;
}