//
// cocos2d::CCSprite::setChildColor from 0x18008f440 to 0x18008f4e3 (163 bytes)
//
// 9 xrefs:
// > ??> @ 0x1800f1d20
// > ??> @ 0x1800f2208
// > ??> @ 0x1800f2db8
// > ??> @ 0x18010a1f8
// > ??> @ 0x18010d210
// > ??> @ 0x180146738
// > ??> @ 0x180146790
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bff58
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:07 +0000
//
void __fastcall cocos2d::CCSprite::setChildColor(cocos2d::CCSprite *this, const struct cocos2d::_ccColor3B *a2)
{
__int64 v3; // rax
unsigned int *v4; // rbx
__int64 v5; // rax
_QWORD *v6; // rbx
_QWORD *i; // rdi
__int64 v8; // rax
if ( *((_BYTE *)this + 378) )
{
v3 = *((_QWORD *)this + 26);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((_QWORD **)v4 + 2);
for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )
{
if ( !*v6 )
break;
v8 = _RTDynamicCast(
*v6,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCSprite `RTTI Type Descriptor',
0);
if ( v8 )
(**(void (__fastcall ***)(__int64, const struct cocos2d::_ccColor3B *))(v8 + 320))(v8 + 320, a2);
}
}
}
}
}