//
// cocos2d::extension::CCControl::setOpacityModifyRGB from 0x100352440 to 0x1003524e6 (166 bytes)
//
// 10 xrefs:
// > ??> @ 0x100915a10
// > ??> @ 0x1009160e8
// > ??> @ 0x100916910
// > ??> @ 0x100916ff0
// > ??> @ 0x100917f50
// > ??> @ 0x10091b458
// > ??> @ 0x100924b10
// > ??> @ 0x100926f78
// > ??> @ 0x100928758
// > ??> @ 0x100947830
//
// 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::extension::CCControl::setOpacityModifyRGB(cocos2d::extension::CCControl *a1, bool a2)
{
__int64 v2; // rax
unsigned int *v3; // rax
const void **v4; // r12
unsigned __int64 v5; // r13
void *v6; // rax
a1->m_bIsOpacityModifyRGB = a2;
v2 = ((__int64 (__fastcall *)(cocos2d::extension::CCControl *))a1->getChildren)(a1);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((const void ***)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
if ( !*v4 )
break;
v6 = __dynamic_cast(
*v4,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v6 )
(*(void (__fastcall **)(void *, bool))(*(_QWORD *)v6 + 48LL))(v6, a2);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
}