//
// cocos2d::CCSprite::setChildOpacity from 0x18008f4f0 to 0x18008f597 (167 bytes)
//
// 9 xrefs:
// > ??> @ 0x1800f1d28
// > ??> @ 0x1800f2210
// > ??> @ 0x1800f2dc0
// > ??> @ 0x18010a200
// > ??> @ 0x18010d218
// > ??> @ 0x1801467a4
// > ??> @ 0x1801467fc
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bffac
//
// This function is hookable on this platform (idp: pc, 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:22:07 +0000
//
void __fastcall cocos2d::CCSprite::setChildOpacity(cocos2d::CCSprite *this, unsigned __int8 a2)
{
__int64 v3; // rax
unsigned int *v4; // rbx
__int64 v5; // rax
_QWORD *v6; // rbx
_QWORD *i; // rdi
__int64 v8; // rax
if ( *((_BYTE *)this + 378) )
{
v3 = *((_QWORD *)this + 26);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((_QWORD **)v4 + 2);
for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )
{
if ( !*v6 )
break;
v8 = _RTDynamicCast(
*v6,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCSprite `RTTI Type Descriptor',
0);
if ( v8 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v8 + 320) + 40LL))(v8 + 320, a2);
}
}
}
}
}