//
// cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB from 0x1002b2b40 to 0x1002b2be8 (168 bytes)
//
// 2 xrefs:
// > sub_1002B2BE8 @ 0x1002b2bec
// > ??> @ 0x10091b730
//
// 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:02:21 +0000
//
_QWORD *__fastcall cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB(__int64 a1, char a2)
{
_QWORD *result; // x0
unsigned int *v4; // x9
__int64 v5; // x8
_QWORD **v6; // x22
unsigned __int64 v7; // x23
result = *(_QWORD **)(a1 + 432);
if ( result )
{
*(_BYTE *)(a1 + 512) = a2;
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*result + 488LL))(result);
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 *, _QWORD))(*result + 48LL))(
result,
*(unsigned __int8 *)(a1 + 512));
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
}
return result;
}