//
// cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB from 0x5a61b8 to 0x5a6214 (92 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB @ 0x5a6220
//
// 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 cocos2d::extension::CCScale9Sprite::setOpacityModifyRGB(cocos2d::extension::CCScale9Sprite *a1, bool a2)
{
cocos2d::CCSpriteBatchNode *scale9Image; // r0
cocos2d::CCSpriteBatchNode_vtbl *v4; // r3
int v5; // r0
_DWORD *v6; // r2
const void **v7; // r4
const void **v8; // r5
const void *v9; // r0
const void *v10; // t1
void *v11; // r0
scale9Image = a1->_scale9Image;
if ( scale9Image )
{
v4 = scale9Image->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->_opacityModifyRGB = a2;
v5 = (int)v4->getChildren(scale9Image);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (const void **)v6[3];
v8 = &v7[*v6] + 0x3FFFFFFF;
while ( v7 <= v8 )
{
v10 = *v7++;
v9 = v10;
if ( !v10 )
break;
v11 = _dynamic_cast(
v9,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v11 )
(*(void (__fastcall **)(void *, bool))(*(_DWORD *)v11 + 24))(v11, a1->_opacityModifyRGB);
}
}
}
}
}