//
// cocos2d::extension::CCControl::setOpacityModifyRGB from 0x10033db50 to 0x10033dbf6 (166 bytes)
//
// 10 xrefs:
// > ??> @ 0x100b1d860
// > ??> @ 0x100b1df58
// > ??> @ 0x100b1e7a0
// > ??> @ 0x100b1eea0
// > ??> @ 0x100b1fe50
// > ??> @ 0x100b235f8
// > ??> @ 0x100b2d0d8
// > ??> @ 0x100b2f610
// > ??> @ 0x100b30eb0
// > ??> @ 0x100b52640
//
// 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:28:42 +0000
//
_QWORD *__fastcall cocos2d::extension::CCControl::setOpacityModifyRGB(_BYTE *a1, unsigned __int8 a2)
{
_QWORD *result; // rax
const void **v3; // r12
unsigned __int64 v4; // r13
a1[426] = a2;
result = (_QWORD *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
result = (_QWORD *)result[7];
if ( *(_DWORD *)result )
{
v3 = (const void **)result[2];
v4 = (unsigned __int64)&v3[*(unsigned int *)result - 1];
do
{
if ( !*v3 )
break;
result = __dynamic_cast(
*v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*result + 48LL))(result, a2);
++v3;
}
while ( (unsigned __int64)v3 <= v4 );
}
}
return result;
}