//
// GJRobotSprite::updateGlowColor from 0x1002dd080 to 0x1002dd0fc (124 bytes)
//
// 6 xrefs:
// > PlayerObject::createRobot @ 0x1002b564c
// > PlayerObject::createSpider @ 0x1002b5934
// > PlayerObject::updateGlowColor @ 0x1002c9358
// > PlayerObject::updateGlowColor @ 0x1002c9370
// > SimplePlayer::updateColors @ 0x1003a2ed8
// > SimplePlayer::updateColors @ 0x1003a2f14
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:02:45 +0000
//
__int64 __fastcall GJRobotSprite::updateGlowColor(__int64 a1, int a2)
{
__int64 v2; // x19
__int64 result; // x0
__int64 v4; // x20
__int64 v5; // x0
__int16 v6; // [xsp+Ch] [xbp-14h] BYREF
char v7; // [xsp+Eh] [xbp-12h]
v6 = a2;
v7 = BYTE2(a2);
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 488LL))(*(_QWORD *)(a1 + 744));
result = sub_1002E757C(v2);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(v2, v4);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 960LL))(v5, &v6);
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(v2);
}
while ( (unsigned int)v4 < (unsigned int)result );
}
return result;
}