//
// GJRobotSprite::updateGlowColor from 0x5e6428 to 0x5e6464 (60 bytes)
//
// 6 xrefs:
// > PlayerObject::updateGlowColor @ 0x438692
// > PlayerObject::updateGlowColor @ 0x43869e
// > PlayerObject::createRobot @ 0x44064a
// > PlayerObject::createSpider @ 0x440830
// > SimplePlayer::updateColors @ 0x50b506
// > SimplePlayer::updateColors @ 0x50b540
//
// 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:54:19 +0000
//
unsigned int __fastcall GJRobotSprite::updateGlowColor(int a1, int a2)
{
unsigned int v2; // r4
cocos2d::CCArray *v3; // r6
unsigned int result; // r0
int v5; // r0
int v6; // [sp+4h] [bp-4h] BYREF
v2 = 0;
v6 = a2;
v3 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 584) + 244))(*(_DWORD *)(a1 + 584));
while ( 1 )
{
result = cocos2d::CCArray::count(v3);
if ( v2 >= result )
break;
v5 = cocos2d::CCArray::objectAtIndex(v3, v2++);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v5 + 480))(v5, &v6);
}
return result;
}