//
// cocos2d::extension::CCControl::setOpacityModifyRGB from 0x7a6664 to 0x7a66ba (86 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControl::setOpacityModifyRGB @ 0x7a66c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:58 +0000
//
_DWORD *__fastcall cocos2d::extension::CCControl::setOpacityModifyRGB(cocos2d::extension::CCControl *this, int a2)
{
_DWORD *result; // r0
_DWORD *v4; // r2
_DWORD *v5; // r4
_DWORD *v6; // r5
_DWORD *v7; // t1
*((_BYTE *)this + 330) = a2;
result = (_DWORD *)(*(int (__fastcall **)(cocos2d::extension::CCControl *))(*(_DWORD *)this + 244))(this);
if ( result )
{
v4 = (_DWORD *)result[13];
if ( *v4 )
{
v5 = (_DWORD *)v4[3];
v6 = &v5[*v4 - 1];
while ( v5 <= v6 )
{
v7 = (_DWORD *)*v5++;
result = v7;
if ( !v7 )
break;
result = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( result )
result = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*result + 24))(result, a2);
}
}
}
return result;
}