//
// ColorChannelSprite::updateBlending from 0x49920c to 0x4992d4 (200 bytes)
//
// 2 xrefs:
// > ColorChannelSprite::updateValues @ 0x49930c
// > ColorChannelSprite::updateValues @ 0x499366
//
// 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 ColorChannelSprite::updateBlending(ColorChannelSprite *a1, bool a2)
{
_BOOL4 v3; // r7
cocos2d::CCLabelBMFont *m_blendingLabel; // r3
cocos2d::CCLabelBMFont *v5; // r0
ColorChannelSprite_vtbl *v6; // r3
cocos2d::CCLabelBMFont *v7; // r8
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
float width; // s15
const cocos2d::CCSize *v10; // r0
cocos2d::CCPoint v11; // [sp+4h] [bp-10h] BYREF
v3 = a2;
m_blendingLabel = a1->m_blendingLabel;
if ( a2 || m_blendingLabel )
{
if ( !m_blendingLabel )
{
v5 = cocos2d::CCLabelBMFont::create();
v6 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_blendingLabel = v5;
v6->addChild(a1, v5);
v7 = a1->m_blendingLabel;
setPosition = v7->setPosition;
width = a1->getContentSize(a1)->width;
v10 = a1->getContentSize(a1);
cocos2d::CCPoint::CCPoint(&v11, (float)(width * 0.5) - 10.0, (float)(v10->height * 0.5) + 12.0);
setPosition(v7, &v11);
((void (__fastcall *)(_DWORD, _DWORD))a1->m_blendingLabel->setScale)(a1->m_blendingLabel, 0.5);
}
a1->m_blendingLabel->setVisible(a1->m_blendingLabel, v3);
}
}