//
// GravityEffectSprite::updateSpritesColor from 0x100086f90 to 0x100087015 (133 bytes)
//
// 0 xrefs:
//
// 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:20:04 +0000
//
__int64 __fastcall GravityEffectSprite::updateSpritesColor(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 result; // rax
__int64 v4; // rbx
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);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1);
if ( result )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 488LL))(result);
result = sub_1007FEF90(v4);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(v4, v5);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v7);
++v5;
result = sub_1007FEF90(v4);
}
while ( v5 < (unsigned int)result );
}
}
return result;
}