//
// cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB from 0x1003f5e50 to 0x1003f5efa (170 bytes)
//
// 1 xrefs:
// > ??> @ 0x100932f80
//
// 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::CCScale9Sprite::setOpacityModifyRGB(
cocos2d::extension::CCScale9Sprite *a1,
bool a2)
{
cocos2d::CCSpriteBatchNode *scale9Image; // rdi
__int64 v4; // rax
unsigned int *v5; // rax
const void **v6; // r12
unsigned __int64 v7; // r13
void *v8; // rax
scale9Image = a1->_scale9Image;
if ( scale9Image )
{
a1->_opacityModifyRGB = a2;
v4 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))scale9Image->getChildren)(scale9Image);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((const void ***)v5 + 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 *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v8 )
(*(void (__fastcall **)(void *, bool))(*(_QWORD *)v8 + 48LL))(v8, a1->_opacityModifyRGB);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
}
}