//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x18004c720 to 0x18004c7d9 (185 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800ec698
// > ??> @ 0x180137948
// > ??> @ 0x1801379a0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1aa0
//
// 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 __fastcall cocos2d::CCLabelBMFont::setOpacityModifyRGB(cocos2d::CCLabelBMFont *this, char a2)
{
cocos2d::CCArray *v3; // rcx
__int64 v4; // rax
unsigned int *v5; // rbx
__int64 v6; // rax
_QWORD *v7; // rbx
_QWORD *i; // rsi
__int64 v9; // rax
BYTE2(this->m_sAdditionalTransform.ty) = a2;
v3 = *((cocos2d::CCArray **)this - 20);
if ( v3 )
{
if ( (unsigned int)cocos2d::CCArray::count(v3) )
{
v4 = *((_QWORD *)this - 20);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD **)v5 + 2);
for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )
{
if ( !*v7 )
break;
v9 = _RTDynamicCast(
*v7,
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&cocos2d::CCRGBAProtocol `RTTI Type Descriptor',
0);
if ( v9 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 48LL))(
v9,
BYTE2(this->m_sAdditionalTransform.ty));
}
}
}
}
}
}