//
// CCPartAnimSprite::setColor from 0x100375440 to 0x100375508 (200 bytes)
//
// 4 xrefs:
// > CCAnimatedSprite::switchToMode @ 0x100350992
// > CCAnimatedSprite::setColor @ 0x1003510ad
// > sub_1003510D0 @ 0x10035110d
// > GJRobotSprite::updateColors @ 0x1005dcd58
//
// 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 CCPartAnimSprite::setColor(CCPartAnimSprite *a1, cocos2d::ccColor3B a2)
{
__int64 v2; // rax
_QWORD *v3; // r14
__int64 v4; // r15
unsigned __int64 i; // r15
cocos2d::ccColor3B v6; // [rsp+0h] [rbp-1Ch] BYREF
char v7; // [rsp+3h] [rbp-19h]
v7 = HIBYTE(v2);
v6 = a2;
cocos2d::CCSprite::setColor(a1, &v6);
if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) )
{
if ( **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )
{
v3 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
v4 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
for ( i = v4
+ 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56)
- 8; (unsigned __int64)v3 <= i; ++v3 )
{
if ( !*v3 )
break;
(*(void (__fastcall **)(_QWORD, cocos2d::ccColor3B *))(*(_QWORD *)*v3 + 944LL))(*v3, &v6);
}
}
}
}