//
// ColorChannelSprite::updateBlending from 0x9f8a14 to 0x9f8b4c (312 bytes)
//
// 3 xrefs:
// > ColorChannelSprite::updateValues @ 0x9f8b98
// > ColorChannelSprite::updateValues @ 0x9f8c4c
// > ??> @ 0x81280
//
// This function is hookable on this platform (idp: arm, 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 12:59:15 +0000
//
__int64 __fastcall ColorChannelSprite::updateBlending(ColorChannelSprite *this, unsigned __int8 a2, const char *a3)
{
unsigned int v3; // w20
__int64 v5; // x0
__int64 v7; // x0
__int64 v8; // x23
void (__fastcall *v9)(__int64, _BYTE *); // x24
__int64 v10; // x0
float v11; // [xsp+50h] [xbp+50h]
_BYTE v12[8]; // [xsp+70h] [xbp+70h] BYREF
v3 = a2;
v5 = *((_QWORD *)this + 77);
if ( a2 )
{
if ( !v5 )
{
v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_111D688, "bigFont.fnt", a3);
*((_QWORD *)this + 77) = v7;
(*(void (__fastcall **)(ColorChannelSprite *, __int64))(*(_QWORD *)this + 456LL))(this, v7);
v8 = *((_QWORD *)this + 77);
v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);
v11 = (float)(*(float *)(*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5)
+ -10.0;
v10 = (*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v11, (float)(*(float *)(v10 + 4) * 0.5) + 12.0);
v9(v8, v12);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 77) + 160LL))(*((_QWORD *)this + 77), 0.5);
v5 = *((_QWORD *)this + 77);
}
goto LABEL_3;
}
if ( v5 )
LABEL_3:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v3);
return _stack_chk_guard;
}