//
// GJRobotSprite::updateGlowColor from 0x1006ae8a0 to 0x1006ae915 (117 bytes)
//
// 6 xrefs:
// > SimplePlayer::updateColors @ 0x100357e27
// > SimplePlayer::updateColors @ 0x100357e89
// > PlayerObject::createRobot @ 0x1003e9391
// > PlayerObject::createSpider @ 0x1003e972c
// > PlayerObject::updateGlowColor @ 0x1004071e8
// > PlayerObject::updateGlowColor @ 0x100407203
//
// This function is hookable on this platform (idp: pc, 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 12:35:23 +0000
//
__int64 __fastcall GJRobotSprite::updateGlowColor(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v3; // rbx
__int64 result; // rax
unsigned int v5; // r14d
__int64 v6; // rax
__int16 v7; // [rsp+0h] [rbp-1Ch] BYREF
char v8; // [rsp+2h] [rbp-1Ah]
char v9; // [rsp+3h] [rbp-19h]
v9 = HIBYTE(v2);
v7 = a2;
v8 = BYTE2(a2);
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 488LL))(*(_QWORD *)(a1 + 744));
result = sub_1007FEF90(v3);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(v3, v5);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v7);
++v5;
result = sub_1007FEF90(v3);
}
while ( v5 < (unsigned int)result );
}
return result;
}