//
// cocos2d::CCSprite::setChildOpacity from 0x100239298 to 0x100239338 (160 bytes)
//
// 75 xrefs:
// > ??> @ 0x100763700
// > ??> @ 0x100773830
// > ??> @ 0x100774168
// > ??> @ 0x1007752d0
// > ??> @ 0x100777e80
// > ??> @ 0x10077b620
// > ??> @ 0x10077bbc0
// > ??> @ 0x100785e70
// > ??> @ 0x100790c10
// > ??> @ 0x100799a00
// > ??> @ 0x1007ace58
// > ??> @ 0x1007ad410
// > ??> @ 0x1007b33c8
// > ??> @ 0x1007b8e88
// > ??> @ 0x1007b9fd8
// > ??> @ 0x1007c3ff8
// > ??> @ 0x1007c4830
// > ??> @ 0x1007c7738
// > ??> @ 0x1007c8218
// > ??> @ 0x1007c9a38
// > ??> @ 0x1007c9ff0
// > ??> @ 0x1007cfcc8
// > ??> @ 0x1007d04b0
// > ??> @ 0x1007d0cc0
// > ??> @ 0x1007e5488
// > ??> @ 0x1007ea4b0
// > ??> @ 0x1007eaa68
// > ??> @ 0x1007ec698
// > ??> @ 0x1007ecc20
// > ??> @ 0x1007efa48
// > ??> @ 0x1007f5530
// > ??> @ 0x1007f5d68
// > ??> @ 0x1007f6560
// > ??> @ 0x1007f6d58
// > ??> @ 0x1007f7550
// > ??> @ 0x1007f7d48
// > ??> @ 0x1007f8540
// > ??> @ 0x1007f8d38
// > ??> @ 0x1007f9520
// > ??> @ 0x1007f9d30
// > ??> @ 0x1007fa598
// > ??> @ 0x1007fada8
// > ??> @ 0x1007fb5b8
// > ??> @ 0x1007fbdc8
// > ??> @ 0x1007fc5d8
// > ??> @ 0x1007fcde8
// > ??> @ 0x1007fd5f8
// > ??> @ 0x1007fde08
// > ??> @ 0x1007fe618
// > ??> @ 0x1007fee28
// > ??> @ 0x1007ff650
// > ??> @ 0x1007ffea8
// > ??> @ 0x1008006d0
// > ??> @ 0x100800ef8
// > ??> @ 0x100801720
// > ??> @ 0x100801f48
// > ??> @ 0x100802758
// > ??> @ 0x100802f68
// > ??> @ 0x100803778
// > ??> @ 0x100803f88
// > ??> @ 0x100804798
// > ??> @ 0x100804fa8
// > ??> @ 0x1008057b8
// > ??> @ 0x100805fc8
// > ??> @ 0x1008067d8
// > ??> @ 0x100806fe8
// > ??> @ 0x1008077f8
// > ??> @ 0x100808008
// > ??> @ 0x100808818
// > ??> @ 0x100809028
// > ??> @ 0x100809838
// > ??> @ 0x10080a048
// > ??> @ 0x10080afd0
// > ??> @ 0x100810fe0
// > ??> @ 0x100816368
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCSprite::setChildOpacity(cocos2d::CCSprite *a1, unsigned __int8 a2)
{
cocos2d::CCArray *m_pChildren; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
__int64 v5; // x19
const void **arr; // x22
unsigned __int64 v7; // x23
void *v8; // x0
if ( a1->m_bHasChildren )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
num = data->num;
if ( (_DWORD)num )
{
v5 = a2;
arr = (const void **)data->arr;
v7 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
v8 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( v8 )
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v8 + 896LL))(v8, v5);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}