//
// cocos2d::extension::CCControl::setOpacityModifyRGB from 0x1001a5e78 to 0x1001a5f18 (160 bytes)
//
// 5 xrefs:
// > sub_1001A5F18 @ 0x1001a5f1c
// > ??> @ 0x1007ae288
// > ??> @ 0x1007af590
// > ??> @ 0x1007b03b0
// > ??> @ 0x1007b6338
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::extension::CCControl::setOpacityModifyRGB(cocos2d::extension::CCControl *a1, bool a2)
{
_BOOL8 v2; // x19
__int64 v3; // x0
unsigned int *v4; // x9
__int64 v5; // x8
const void **v6; // x22
unsigned __int64 v7; // x23
void *v8; // x0
v2 = a2;
a1->m_bIsOpacityModifyRGB = a2;
v3 = ((__int64 (__fastcall *)(cocos2d::extension::CCControl *))a1->getChildren)(a1);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((const void ***)v4 + 2);
v7 = (unsigned __int64)&v6[v5 - 1];
do
{
if ( !*v6 )
break;
v8 = __dynamic_cast(
*v6,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_100770F10,
-2);
if ( v8 )
(*(void (__fastcall **)(void *, _BOOL8))(*(_QWORD *)v8 + 48LL))(v8, v2);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
}