//
// cocos2d::CCSprite::setChildColor from 0xb158c8 to 0xb15974 (172 bytes)
//
// 33 xrefs:
// > ??> @ 0x60018
// > ??> @ 0x1136328
// > ??> @ 0x11368d8
// > ??> @ 0x1137658
// > ??> @ 0x11397a8
// > ??> @ 0x1139d38
// > ??> @ 0x113cfb8
// > ??> @ 0x113d5d8
// > ??> @ 0x113ea08
// > ??> @ 0x1142f38
// > ??> @ 0x11434d8
// > ??> @ 0x1144e28
// > ??> @ 0x11453c8
// > ??> @ 0x1149808
// > ??> @ 0x1153308
// > ??> @ 0x1159b58
// > ??> @ 0x11790f8
// > ??> @ 0x1179688
// > ??> @ 0x1192718
// > ??> @ 0x1194408
// > ??> @ 0x11a0fd8
// > ??> @ 0x11a1578
// > ??> @ 0x11aaaf8
// > ??> @ 0x11b04b8
// > ??> @ 0x11b27b8
// > ??> @ 0x11d9f18
// > ??> @ 0x11ed7c8
// > ??> @ 0x11f7518
// > ??> @ 0x12022b8
// > ??> @ 0x1202848
// > ??> @ 0x12033a8
// > ??> @ 0x1218958
// > ??> @ 0x1219f88
//
// 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::setChildColor(cocos2d::CCSprite *a1, const cocos2d::ccColor3B *a2)
{
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x0
const void **arr; // x19
const void **v5; // x20
const void *i; // x0
void *v8; // x0
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 = &arr[data->num - 1];
if ( arr <= v5 )
{
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 *, const cocos2d::ccColor3B *))(*(_QWORD *)v8 + 944LL))(v8, a2);
if ( v5 < ++arr )
break;
}
}
}
}
}
}