//
// ParticleGameObject::setObjectColor from 0x100192ee0 to 0x100192fce (238 bytes)
//
// 1 xrefs:
// > ??> @ 0x100acbcf0
//
// 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:54 +0000
//
__int64 __fastcall ParticleGameObject::setObjectColor(__int64 a1, unsigned __int16 *a2, double a3, __m128 a4)
{
__int64 result; // rax
__int64 v5; // rbx
__m128 v6; // xmm0
__m128 inserted; // xmm1
__m128 v8; // [rsp+0h] [rbp-50h] BYREF
__m128 v9; // [rsp+10h] [rbp-40h]
__m128 v10; // [rsp+20h] [rbp-30h]
result = GameObject::setObjectColor();
v5 = *(_QWORD *)(a1 + 776);
if ( v5 )
{
if ( *(_BYTE *)(a1 + 809) == 1 )
{
v9 = _mm_div_ps(_mm_cvtepi32_ps(_mm_cvtepu8_epi32(_mm_cvtsi32_si128(*a2))), (__m128)xmmword_100A041D0);
v6 = 0;
v6.f32[0] = (float)*((unsigned __int8 *)a2 + 2) / 255.0;
v10 = v6;
v8 = _mm_movelh_ps(
v9,
_mm_insert_ps(
v6,
(__m128)*(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1352LL))(v5) + 12),
16));
return (*(__int64 (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v5 + 1360LL))(v5, &v8);
}
else if ( *(_BYTE *)(a1 + 1768) == 1 )
{
result = *((unsigned __int8 *)a2 + 2);
a4.f32[0] = (float)(int)result / 255.0;
inserted = _mm_insert_ps(a4, (__m128)*(unsigned int *)(v5 + 720), 16);
_mm_storel_ps(
(double *)(v5 + 708),
_mm_div_ps(_mm_cvtepi32_ps(_mm_cvtepu8_epi32(_mm_cvtsi32_si128(*a2))), (__m128)xmmword_100A041D0));
_mm_storel_ps((double *)(v5 + 716), inserted);
}
}
return result;
}