//
// ColorChannelSprite::updateBlending from 0x10000d038 to 0x10000d140 (264 bytes)
//
// 1 xrefs:
// > ColorChannelSprite::updateValues @ 0x10000d180
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall ColorChannelSprite::updateBlending(ColorChannelSprite *a1, bool a2)
{
_BOOL8 v2; // x19
cocos2d::CCLabelBMFont *m_blendingLabel; // x0
cocos2d::CCLabelBMFont *v5; // x0
cocos2d::CCLabelBMFont *v6; // x21
float v7; // s8
__n128 v8; // q1
__n128 v9; // q0
_BYTE v10[8]; // [xsp+8h] [xbp-38h] BYREF
cocos2d::CCPoint v11; // 0:kr00_8.8
v2 = a2;
m_blendingLabel = a1->m_blendingLabel;
if ( a2 )
{
if ( !m_blendingLabel )
{
v5 = cocos2d::CCLabelBMFont::create_1("•", "bigFont.fnt");
a1->m_blendingLabel = v5;
((void (__fastcall *)(ColorChannelSprite *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v5);
v6 = a1->m_blendingLabel;
v7 = (float)(*(float *)((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) * 0.5) + -10.0;
v8.n128_f32[0] = (float)(*(float *)(((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) + 4)
* 0.5)
+ 12.0;
v9.n128_f32[0] = v7;
v11 = sub_100022980(v9, v8);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *, float, float))v6->setPosition)(v6, v10, v11.x, v11.y);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_blendingLabel->setScale)(a1->m_blendingLabel, 0.5);
m_blendingLabel = a1->m_blendingLabel;
}
}
else if ( !m_blendingLabel )
{
return;
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BOOL8))m_blendingLabel->setVisible)(m_blendingLabel, v2);
}