//
// cocos2d::CCSprite::setChildOpacity from 0x7f12a4 to 0x7f12f6 (82 bytes)
//
// 0 xrefs:
//
// 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 12:01:04 +0000
//
_DWORD *__fastcall cocos2d::CCSprite::setChildOpacity(_DWORD *this, int a2)
{
int v3; // r3
_DWORD *v4; // r2
void **v5; // r4
void **v6; // r5
_DWORD *v7; // t1
if ( *((_BYTE *)this + 298) )
{
v3 = *(this + 48);
if ( v3 )
{
v4 = *(_DWORD **)(v3 + 52);
if ( *v4 )
{
v5 = (void **)v4[3];
v6 = &v5[*v4] + 0x3FFFFFFF;
while ( v5 <= v6 )
{
v7 = *v5++;
this = v7;
if ( !v7 )
break;
this = _dynamic_cast(
this,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( this )
this = (_DWORD *)(*(int (__fastcall **)(_DWORD *, int))(*this + 456))(this, a2);
}
}
}
}
return this;
}