//
// ParticleGameObject::setChildColor from 0x100427e80 to 0x100427f7c (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009517d8
//
// 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:05:02 +0000
//
__int64 __fastcall ParticleGameObject::setChildColor(__int64 a1, _BYTE *a2)
{
__int64 result; // x0
unsigned int v5; // s0
unsigned int v6; // s2
unsigned int v7; // s3
float *v8; // x19
unsigned int v9; // s0
float v10; // s8
unsigned int v11; // s0
float v12; // s9
float v13; // s10
int v14; // s0
_DWORD v15[4]; // [xsp+0h] [xbp-50h] BYREF
result = GameObject::setChildColor(a1, a2);
v8 = *(float **)(a1 + 776);
if ( v8 )
{
if ( *(_BYTE *)(a1 + 809) == 1 )
{
LOBYTE(v5) = *a2;
*(float *)&v9 = (float)v5;
v10 = *(float *)&v9 / 255.0;
LOBYTE(v9) = a2[1];
*(float *)&v11 = (float)v9;
v12 = *(float *)&v11 / 255.0;
LOBYTE(v11) = a2[2];
v13 = (float)v11 / 255.0;
v14 = *(_DWORD *)((*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 1384LL))(*(_QWORD *)(a1 + 776)) + 12);
*(float *)v15 = v10;
*(float *)&v15[1] = v12;
*(float *)&v15[2] = v13;
v15[3] = v14;
return (*(__int64 (__fastcall **)(float *, _DWORD *))(*(_QWORD *)v8 + 1392LL))(v8, v15);
}
else if ( *(_BYTE *)(a1 + 1768) == 1 )
{
LOBYTE(v5) = *a2;
LOBYTE(v6) = a2[1];
LOBYTE(v7) = a2[2];
v8[181] = (float)v5 / 255.0;
v8[182] = (float)v6 / 255.0;
v8[183] = (float)v7 / 255.0;
}
}
return result;
}