//
// GravityEffectSprite::updateSpritesColor from 0x4028bc to 0x4028fe (66 bytes)
//
// 1 xrefs:
// > PlayLayer::playGravityEffect @ 0x402aaa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:25 +0000
//
unsigned int __fastcall GravityEffectSprite::updateSpritesColor(int a1, int a2)
{
unsigned int result; // r0
unsigned int v3; // r4
cocos2d::CCArray *v4; // r5
int v5; // r0
int v6; // [sp+4h] [bp-4h] BYREF
v6 = a2;
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 240))(a1, 1);
if ( result )
{
v3 = 0;
v4 = (cocos2d::CCArray *)(*(int (__fastcall **)(unsigned int))(*(_DWORD *)result + 244))(result);
while ( 1 )
{
result = cocos2d::CCArray::count(v4);
if ( v3 >= result )
break;
v5 = cocos2d::CCArray::objectAtIndex(v4, v3++);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v5 + 480))(v5, &v6);
}
}
return result;
}