//
// GameObject::setChildColor from 0x1002fe48c to 0x1002fe518 (140 bytes)
//
// 48 xrefs:
// > ParticleGameObject::setChildColor @ 0x100427ea4
// > AnimatedGameObject::setChildColor @ 0x10042b2a4
// > ??> @ 0x10091c510
// > ??> @ 0x100928790
// > ??> @ 0x100928f88
// > ??> @ 0x1009297a8
// > ??> @ 0x10094dfb0
// > ??> @ 0x10094e7b8
// > ??> @ 0x10094efc0
// > ??> @ 0x10094f7c8
// > ??> @ 0x10094ffd0
// > ??> @ 0x1009507d8
// > ??> @ 0x100950fe0
// > ??> @ 0x100951ff8
// > ??> @ 0x100952870
// > ??> @ 0x100953090
// > ??> @ 0x1009538b0
// > ??> @ 0x1009540d0
// > ??> @ 0x1009548f0
// > ??> @ 0x100955110
// > ??> @ 0x100955930
// > ??> @ 0x100956150
// > ??> @ 0x100956970
// > ??> @ 0x100957190
// > ??> @ 0x1009579c8
// > ??> @ 0x100958230
// > ??> @ 0x100958a68
// > ??> @ 0x1009592a0
// > ??> @ 0x100959ad8
// > ??> @ 0x10095a310
// > ??> @ 0x10095ab30
// > ??> @ 0x10095b350
// > ??> @ 0x10095bb70
// > ??> @ 0x10095c390
// > ??> @ 0x10095cbb0
// > ??> @ 0x10095d3d0
// > ??> @ 0x10095dbf0
// > ??> @ 0x10095e410
// > ??> @ 0x10095ec30
// > ??> @ 0x10095f450
// > ??> @ 0x10095fc70
// > ??> @ 0x100960490
// > ??> @ 0x100960cb0
// > ??> @ 0x1009614d0
// > ??> @ 0x100961cf0
// > ??> @ 0x100962510
// > ??> @ 0x100962d30
// > ??> @ 0x10096e130
//
// 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:03:04 +0000
//
__int64 __fastcall GameObject::setChildColor(__int64 a1, _BYTE *a2)
{
__int64 result; // x0
bool v5; // zf
__int16 v7; // w8
result = *(_QWORD *)(a1 + 888);
if ( result )
{
if ( *a2 )
v5 = 0;
else
v5 = a2[1] == 0;
if ( v5 && a2[2] == 0 )
{
if ( *(_WORD *)(a1 + 882) == 1 )
v7 = 2;
else
v7 = 1;
}
else
{
v7 = 0;
}
*(_WORD *)(a1 + 882) = v7;
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)result + 960LL))(result, a2);
return (*(__int64 (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 888) + 1096LL))(*(_QWORD *)(a1 + 888), a2);
}
return result;
}