//
// ColorChannelSprite::updateBlending from 0x140363180 to 0x140363298 (280 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::updateColorSprite @ 0x1401426c5
// > GJColorSetupLayer::updateSpriteColor @ 0x14035f5b5
// > LevelSettingsLayer::updateColorSprite @ 0x14045ad70
// > ??> @ 0x1408ba830
// > ??> @ 0x1408ba840
// > ??> @ 0x140921524
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:30:53 +0000
//
void __fastcall ColorChannelSprite::updateBlending(struct cocos2d::CCLabelBMFont **a1, unsigned __int8 a2)
{
struct cocos2d::CCLabelBMFont **v2; // r14
struct cocos2d::CCLabelBMFont *v5; // rax
struct cocos2d::CCLabelBMFont *v6; // rcx
float *v7; // rbx
struct cocos2d::CCLabelBMFont *v8; // rsi
__int64 v9; // rdi
__int64 v10; // rax
__int64 v11; // rax
char v12; // [rsp+50h] [rbp+18h] BYREF
v2 = a1 + 77;
if ( a2 )
{
if ( !*v2 )
{
v5 = cocos2d::CCLabelBMFont::create((const char *)&dword_14070D0C8, (const char *)&qword_140704F78);
v6 = *a1;
*v2 = v5;
(*((void (__fastcall **)(struct cocos2d::CCLabelBMFont **, struct cocos2d::CCLabelBMFont *))v6 + 58))(a1, v5);
v7 = (float *)(*((__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont **))*a1 + 40))(a1);
v8 = *v2;
v9 = *(_QWORD *)*v2;
v10 = (*((__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont **))*a1 + 40))(a1);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v12,
(float)(*v7 * 0.5) - 10.0,
(float)(*(float *)(v10 + 4) * 0.5) + 12.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v9 + 184))(v8, v11);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)*v2 + 160LL))(*v2);
}
}
else if ( !*v2 )
{
return;
}
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)*v2 + 336LL))(*v2, a2);
}