//
// GameObject::setChildColor from 0x1002611d0 to 0x10026125c (140 bytes)
//
// 47 xrefs:
// > ParticleGameObject::setChildColor @ 0x100381c18
// > AnimatedGameObject::setChildColor @ 0x100384f64
// > ??> @ 0x1007c3ff0
// > ??> @ 0x1007cfcc0
// > ??> @ 0x1007d04a8
// > ??> @ 0x1007d0cb8
// > ??> @ 0x1007f5d60
// > ??> @ 0x1007f6558
// > ??> @ 0x1007f6d50
// > ??> @ 0x1007f7548
// > ??> @ 0x1007f7d40
// > ??> @ 0x1007f8538
// > ??> @ 0x1007f8d30
// > ??> @ 0x1007f9d28
// > ??> @ 0x1007fa590
// > ??> @ 0x1007fada0
// > ??> @ 0x1007fb5b0
// > ??> @ 0x1007fbdc0
// > ??> @ 0x1007fc5d0
// > ??> @ 0x1007fcde0
// > ??> @ 0x1007fd5f0
// > ??> @ 0x1007fde00
// > ??> @ 0x1007fe610
// > ??> @ 0x1007fee20
// > ??> @ 0x1007ff648
// > ??> @ 0x1007ffea0
// > ??> @ 0x1008006c8
// > ??> @ 0x100800ef0
// > ??> @ 0x100801718
// > ??> @ 0x100801f40
// > ??> @ 0x100802750
// > ??> @ 0x100802f60
// > ??> @ 0x100803770
// > ??> @ 0x100803f80
// > ??> @ 0x100804790
// > ??> @ 0x100804fa0
// > ??> @ 0x1008057b0
// > ??> @ 0x100805fc0
// > ??> @ 0x1008067d0
// > ??> @ 0x100806fe0
// > ??> @ 0x1008077f0
// > ??> @ 0x100808000
// > ??> @ 0x100808810
// > ??> @ 0x100809020
// > ??> @ 0x100809830
// > ??> @ 0x10080a040
// > ??> @ 0x100816360
//
// 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 GameObject::setChildColor(GameObject *a1, const cocos2d::ccColor3B *a2)
{
cocos2d::CCSprite *m_colorSprite; // x0
bool v5; // zf
__int16 v7; // w8
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
if ( a2->r )
v5 = 0;
else
v5 = a2->g == 0;
if ( v5 && a2->b == 0 )
{
if ( a1->m_childColorType == 1 )
v7 = 2;
else
v7 = 1;
}
else
{
v7 = 0;
}
a1->m_childColorType = v7;
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))m_colorSprite->setColor)(m_colorSprite, a2);
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))a1->m_colorSprite->setChildColor)(
a1->m_colorSprite,
a2);
}
}