//
// cocos2d::CCSprite::setChildOpacity from 0xb1581c to 0xb158c8 (172 bytes)
//
// 80 xrefs:
// > ??> @ 0x5e8a8
// > ??> @ 0x1136330
// > ??> @ 0x11368e0
// > ??> @ 0x1137660
// > ??> @ 0x11397b0
// > ??> @ 0x1139d40
// > ??> @ 0x113cfc0
// > ??> @ 0x113d5e0
// > ??> @ 0x113ea10
// > ??> @ 0x1142f40
// > ??> @ 0x11434e0
// > ??> @ 0x1144e30
// > ??> @ 0x11453d0
// > ??> @ 0x1149810
// > ??> @ 0x1152b20
// > ??> @ 0x1153310
// > ??> @ 0x11538f0
// > ??> @ 0x11540c0
// > ??> @ 0x11548c0
// > ??> @ 0x1159b60
// > ??> @ 0x1162270
// > ??> @ 0x1162a70
// > ??> @ 0x1163270
// > ??> @ 0x1163a70
// > ??> @ 0x1164270
// > ??> @ 0x1164a70
// > ??> @ 0x1165270
// > ??> @ 0x1165a70
// > ??> @ 0x1166240
// > ??> @ 0x1166a40
// > ??> @ 0x1167240
// > ??> @ 0x1167a40
// > ??> @ 0x1168240
// > ??> @ 0x1168a80
// > ??> @ 0x1169280
// > ??> @ 0x1169a80
// > ??> @ 0x116a280
// > ??> @ 0x116aa80
// > ??> @ 0x116b290
// > ??> @ 0x116ba90
// > ??> @ 0x116c290
// > ??> @ 0x116ca90
// > ??> @ 0x116d290
// > ??> @ 0x116da90
// > ??> @ 0x116e290
// > ??> @ 0x116ea90
// > ??> @ 0x116f290
// > ??> @ 0x116fa90
// > ??> @ 0x1170290
// > ??> @ 0x1170a90
// > ??> @ 0x1171290
// > ??> @ 0x1171a90
// > ??> @ 0x1172290
// > ??> @ 0x1172a90
// > ??> @ 0x1173290
// > ??> @ 0x1173a90
// > ??> @ 0x1174290
// > ??> @ 0x1174a90
// > ??> @ 0x1175290
// > ??> @ 0x1175a90
// > ??> @ 0x1176290
// > ??> @ 0x1176a90
// > ??> @ 0x11772b0
// > ??> @ 0x1179100
// > ??> @ 0x1179690
// > ??> @ 0x1192720
// > ??> @ 0x1194410
// > ??> @ 0x11a0fe0
// > ??> @ 0x11a1580
// > ??> @ 0x11aab00
// > ??> @ 0x11b04c0
// > ??> @ 0x11b27c0
// > ??> @ 0x11d9f20
// > ??> @ 0x11ed7d0
// > ??> @ 0x11f7520
// > ??> @ 0x12022c0
// > ??> @ 0x1202850
// > ??> @ 0x12033b0
// > ??> @ 0x1218960
// > ??> @ 0x1219f90
//
// 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::CCSprite::setChildOpacity(cocos2d::CCSprite *a1, unsigned __int8 a2)
{
unsigned int v2; // w21
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x1
const void **arr; // x19
const void **v6; // x20
const void *i; // x0
void *v8; // x0
v2 = a2;
if ( a1->m_bHasChildren )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (const void **)data->arr;
v6 = &arr[data->num - 1];
if ( arr <= v6 )
{
for ( i = *arr; *arr; i = *arr )
{
v8 = _dynamic_cast(
i,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( v8 )
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v8 + 896LL))(v8, v2);
if ( v6 < ++arr )
break;
}
}
}
}
}
}