//
// GameObject::setChildColor from 0x44b630 to 0x44b67e (78 bytes)
//
// 2 xrefs:
// > ParticleGameObject::setChildColor @ 0x4e627a
// > AnimatedGameObject::setChildColor @ 0x4e6342
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:34 +0000
//
int __fastcall GameObject::setChildColor(int a1, unsigned __int8 *a2)
{
int result; // r0
__int16 v5; // r3
result = *(_DWORD *)(a1 + 756);
if ( result )
{
if ( *a2 )
{
v5 = 0;
}
else
{
v5 = a2[1];
if ( a2[1] )
{
v5 = *a2;
}
else if ( !a2[2] )
{
if ( *(_WORD *)(a1 + 750) == 1 )
v5 = 2;
else
v5 = 1;
}
}
*(_WORD *)(a1 + 750) = v5;
(*(void (__fastcall **)(int, unsigned __int8 *))(*(_DWORD *)result + 480))(result, a2);
return (*(int (__fastcall **)(_DWORD, unsigned __int8 *))(**(_DWORD **)(a1 + 756) + 548))(*(_DWORD *)(a1 + 756), a2);
}
return result;
}