//
// GravityEffectSprite::updateSpritesColor from 0x5d2ed0 to 0x5d2f54 (132 bytes)
//
// 2 xrefs:
// > PlayLayer::playGravityEffect @ 0x5d3118
// > ??> @ 0xa6bd8
//
// 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 GravityEffectSprite::updateSpritesColor(GravityEffectSprite *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCNode *v2; // x0
unsigned int v3; // w19
cocos2d::CCArray *v4; // x20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
v8 = *(_QWORD *)&a2.r;
v2 = a1->getChildByTag(a1, 1);
if ( v2 )
{
v3 = 0;
v4 = v2->getChildren(v2);
while ( 1 )
{
v6 = v3 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v3++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(v4, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 944LL))(v5, &v8);
}
}
}