//
// cocos2d::extension::CCControl::setOpacityModifyRGB from 0x180004370 to 0x180004415 (165 bytes)
//
// 14 xrefs:
// > ??> @ 0x180025af0
// > ??> @ 0x180026110
// > ??> @ 0x180026d20
// > ??> @ 0x180026dc8
// > ??> @ 0x180027398
// > ??> @ 0x1800279a0
// > ??> @ 0x180027f70
// > ??> @ 0x180028560
// > ??> @ 0x180028ba8
// > ??> @ 0x18002a088
// > ??> @ 0x18002fb0c
// > ??> @ 0x18002fb64
// > ??> @ 0x180032408
// > ??> @ 0x18004b378
//
// 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 12:15:35 +0000
//
void __fastcall cocos2d::extension::CCControl::setOpacityModifyRGB(
cocos2d::extension::CCControl *this,
unsigned __int8 a2)
{
__int64 v3; // rax
unsigned int *v4; // rbx
__int64 v5; // rax
_QWORD *v6; // rbx
_QWORD *i; // rdi
__int64 v8; // rax
*((_BYTE *)this + 24) = a2;
v3 = (*(__int64 (__fastcall **)(char *))(*((_QWORD *)this - 51) + 480LL))((char *)this - 408);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((_QWORD **)v4 + 2);
for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )
{
if ( !*v6 )
break;
v8 = _RTDynamicCast(
*v6,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCRGBAProtocol `RTTI Type Descriptor',
0);
if ( v8 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 48LL))(v8, a2);
}
}
}
}