//
// cocos2d::extension::CCControl::setOpacityModifyRGB from 0x10023ade8 to 0x10023ae88 (160 bytes)
//
// 5 xrefs:
// > sub_10023AE88 @ 0x10023ae8c
// > ??> @ 0x100905678
// > ??> @ 0x100906ac0
// > ??> @ 0x100907988
// > ??> @ 0x10090dc80
//
// This function is hookable on this platform (idp: arm, 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 11:01:21 +0000
//
_QWORD *__fastcall cocos2d::extension::CCControl::setOpacityModifyRGB(_BYTE *a1, __int64 a2)
{
_QWORD *result; // x0
unsigned int *v4; // x9
__int64 v5; // x8
_QWORD **v6; // x22
unsigned __int64 v7; // x23
a1[426] = a2;
result = (_QWORD *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 488LL))(a1);
if ( result )
{
v4 = (unsigned int *)result[7];
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((_QWORD ***)v4 + 2);
v7 = (unsigned __int64)&v6[v5 - 1];
do
{
result = *v6;
if ( !*v6 )
break;
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_1008BD768,
-2);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(*result + 48LL))(result, a2);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
return result;
}