//
// CCPartAnimSprite::setColor from 0x57716c to 0x577250 (228 bytes)
//
// 4 xrefs:
// > CCAnimatedSprite::switchToMode @ 0x571230
// > CCAnimatedSprite::setColor @ 0x5719c8
// > GJRobotSprite::updateColors @ 0x8e2d34
// > ??> @ 0x72840
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void CCPartAnimSprite::setColor(CCPartAnimSprite *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCObject **arr; // x19
cocos2d::ccArray *data; // x2
CCPartAnimSprite_vtbl *v5; // x1
CCPartAnimSprite *v6; // x0
cocos2d::CCObject **v7; // x20
unsigned __int64 v8; // x20
cocos2d::CCObject *v9; // x0
__int64 v10; // [xsp+38h] [xbp+38h] BYREF
v10 = *(_QWORD *)&a2.r;
cocos2d::CCSprite::setColor(a1, (const cocos2d::ccColor3B *)&v10);
if ( a1->getChildren(a1) )
{
if ( a1->getChildren(a1)->data->num )
{
arr = a1->getChildren(a1)->data->arr;
data = a1->getChildren(a1)->data;
v5 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = a1;
v7 = data->arr;
v8 = (unsigned __int64)&v7[v5->getChildren(v6)->data->num - 1];
while ( v8 >= (unsigned __int64)arr )
{
v9 = *arr;
if ( !*arr )
break;
++arr;
((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v9->__vftable[11].getTag)(v9, &v10);
}
}
}
}