//
// AnimatedGameObject::updateChildSpriteColor from 0x1001976c0 to 0x100197735 (117 bytes)
//
// 4 xrefs:
// > PlayLayer::updateVisibility @ 0x1000852f0
// > LevelEditorLayer::updateVisibility @ 0x1000bdfaf
// > LevelEditorLayer::updateVisibility @ 0x1000be52d
// > LevelEditorLayer::updateObjectColors @ 0x1000beb92
//
// 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:25:56 +0000
//
__int64 __fastcall AnimatedGameObject::updateChildSpriteColor(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v3; // rdi
__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(result);
v7 = a2;
v8 = BYTE2(a2);
v3 = *(_QWORD *)(a1 + 1472);
if ( v3 )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);
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;
}