//
// cocos2d::CCSprite::setChildColor from 0x1002393a4 to 0x100239444 (160 bytes)
//
// 28 xrefs:
// > ??> @ 0x1007636f8
// > ??> @ 0x100773828
// > ??> @ 0x100774160
// > ??> @ 0x1007752c8
// > ??> @ 0x100777e78
// > ??> @ 0x10077b618
// > ??> @ 0x10077bbb8
// > ??> @ 0x100785e68
// > ??> @ 0x100790c08
// > ??> @ 0x1007999f8
// > ??> @ 0x1007ace50
// > ??> @ 0x1007ad408
// > ??> @ 0x1007b33c0
// > ??> @ 0x1007b8e80
// > ??> @ 0x1007b9fd0
// > ??> @ 0x1007c4828
// > ??> @ 0x1007c7730
// > ??> @ 0x1007c8210
// > ??> @ 0x1007c9a30
// > ??> @ 0x1007c9fe8
// > ??> @ 0x1007e5480
// > ??> @ 0x1007ea4a8
// > ??> @ 0x1007eaa60
// > ??> @ 0x1007ec690
// > ??> @ 0x1007ecc18
// > ??> @ 0x1007efa40
// > ??> @ 0x10080afc8
// > ??> @ 0x100810fd8
//
// 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::setChildColor(cocos2d::CCSprite *a1, const cocos2d::ccColor3B *a2)
{
cocos2d::CCArray *m_pChildren; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
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 )
{
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 *, const cocos2d::ccColor3B *))(*(_QWORD *)v8 + 944LL))(v8, a2);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}