//
// ColorChannelSprite::updateBlending from 0x140258d20 to 0x140258e2b (267 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x1400a8612
// > GJColorSetupLayer::updateSpriteColor @ 0x140256ac5
// > LevelSettingsLayer::updateColorSprite @ 0x140321b30
// > ??> @ 0x140684760
// > ??> @ 0x140684770
// > ??> @ 0x1406cfbb8
//
// 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)
{
float v2; // xmm0_4
cocos2d::CCLabelBMFont **p_m_blendingLabel; // rdi
struct cocos2d::CCLabelBMFont *v6; // rax
ColorChannelSprite_vtbl *v7; // r8
cocos2d::CCLabelBMFont_vtbl *v8; // rbx
const cocos2d::CCSize *v9; // rax
const cocos2d::CCPoint *v10; // rax
p_m_blendingLabel = &a1->m_blendingLabel;
if ( a2 )
{
if ( !*p_m_blendingLabel )
{
v6 = cocos2d::CCLabelBMFont::create((const char *)&dword_140531F08, (const char *)&qword_14052A4D8);
v7 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
*p_m_blendingLabel = v6;
v7->addChild_1(a1, v6);
v8 = (*p_m_blendingLabel)->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->getContentSize(a1);
v9 = a1->getContentSize(a1);
cocos2d::CCPoint::CCPoint(v2, (float)(v9->width * 0.5) - 10.0);
v8->setPosition_0(*p_m_blendingLabel, v10);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))(*p_m_blendingLabel)->setScale_0)(*p_m_blendingLabel);
}
}
else if ( !*p_m_blendingLabel )
{
return;
}
(*p_m_blendingLabel)->setVisible(*p_m_blendingLabel, a2);
}