//
// cocos2d::CCSprite::setChildOpacity from 0x10028a6f0 to 0x10028a794 (164 bytes)
//
// 78 xrefs:
// > ??> @ 0x1008b4200
// > ??> @ 0x1008b81e8
// > ??> @ 0x1008c44a8
// > ??> @ 0x1008c4ce0
// > ??> @ 0x1008c54d8
// > ??> @ 0x1008c5cd0
// > ??> @ 0x1008c64c8
// > ??> @ 0x1008c6cc0
// > ??> @ 0x1008c74b8
// > ??> @ 0x1008c7cb0
// > ??> @ 0x1008c8498
// > ??> @ 0x1008c8ca8
// > ??> @ 0x1008c9520
// > ??> @ 0x1008c9d30
// > ??> @ 0x1008ca540
// > ??> @ 0x1008cad50
// > ??> @ 0x1008cb560
// > ??> @ 0x1008cbd70
// > ??> @ 0x1008cc580
// > ??> @ 0x1008ccd90
// > ??> @ 0x1008cd5a0
// > ??> @ 0x1008cddb0
// > ??> @ 0x1008ce5d8
// > ??> @ 0x1008cee30
// > ??> @ 0x1008cf658
// > ??> @ 0x1008cfe80
// > ??> @ 0x1008d06a8
// > ??> @ 0x1008d0ed0
// > ??> @ 0x1008d16e0
// > ??> @ 0x1008d1ef0
// > ??> @ 0x1008d2700
// > ??> @ 0x1008d2f10
// > ??> @ 0x1008d3720
// > ??> @ 0x1008d3f30
// > ??> @ 0x1008d4740
// > ??> @ 0x1008d4f50
// > ??> @ 0x1008d5760
// > ??> @ 0x1008d5f70
// > ??> @ 0x1008d6780
// > ??> @ 0x1008d6f90
// > ??> @ 0x1008d77a0
// > ??> @ 0x1008d7fb0
// > ??> @ 0x1008d87c0
// > ??> @ 0x1008d8fd0
// > ??> @ 0x1008dd5b0
// > ??> @ 0x1008e0ae0
// > ??> @ 0x1008f0758
// > ??> @ 0x1008f3ae8
// > ??> @ 0x100904ee0
// > ??> @ 0x100909ab8
// > ??> @ 0x10090baf0
// > ??> @ 0x100913598
// > ??> @ 0x100914840
// > ??> @ 0x1009153d0
// > ??> @ 0x10091c160
// > ??> @ 0x10091c6e8
// > ??> @ 0x10091db40
// > ??> @ 0x10091e0e0
// > ??> @ 0x100923778
// > ??> @ 0x100928110
// > ??> @ 0x10092ae68
// > ??> @ 0x100933b40
// > ??> @ 0x100934368
// > ??> @ 0x10093ca08
// > ??> @ 0x10093cfb8
// > ??> @ 0x100942248
// > ??> @ 0x10094e960
// > ??> @ 0x100971828
// > ??> @ 0x100972010
// > ??> @ 0x100972820
// > ??> @ 0x100974a88
// > ??> @ 0x100975040
// > ??> @ 0x1009755f8
// > ??> @ 0x10097a5e8
// > ??> @ 0x10097aba0
// > ??> @ 0x100985670
// > ??> @ 0x100991a58
// > ??> @ 0x100996280
//
// 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::CCSprite::setChildOpacity(cocos2d::CCSprite *a1, unsigned __int8 a2)
{
cocos2d::CCArray *m_pChildren; // rax
cocos2d::ccArray *data; // rax
const void **arr; // r12
unsigned __int64 v5; // r13
void *v6; // rax
if ( a1->m_bHasChildren )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (const void **)data->arr;
v5 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
v6 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( v6 )
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v6 + 896LL))(v6, a2);
++arr;
}
while ( (unsigned __int64)arr <= v5 );
}
}
}
}