//
// EndPortalObject::updateColors from 0x1003860c0 to 0x100386176 (182 bytes)
//
// 1 xrefs:
// > PlayLayer::createObjectsFromSetupFinished @ 0x100084476
//
// 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:29:10 +0000
//
__int64 __fastcall EndPortalObject::updateColors(__int64 a1, int a2, double a3, __m128 a4, __m128 a5, __m128 a6)
{
__int64 v7; // rdi
__int64 v8; // rdi
__m128 v10; // [rsp+0h] [rbp-30h]
__m128 v11; // [rsp+10h] [rbp-20h] BYREF
__int16 v12; // [rsp+24h] [rbp-Ch] BYREF
char v13; // [rsp+26h] [rbp-Ah]
v12 = a2;
v13 = BYTE2(a2);
v7 = *(_QWORD *)(a1 + 776);
if ( v7 )
{
a6.f32[0] = (float)(unsigned __int8)a2 / 255.0;
a4.f32[0] = (float)BYTE1(a2) / 255.0;
a5.f32[0] = (float)((a2 & 0xFF0000u) >> 16) / 255.0;
v10 = _mm_movelh_ps(_mm_insert_ps(a6, a4, 16), _mm_blend_ps(a5, (__m128)xmmword_100A03610, 14));
v11 = v10;
(*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v7 + 1360LL))(v7, &v11);
v8 = *(_QWORD *)(a1 + 776);
v11 = v10;
(*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v8 + 1392LL))(v8, &v11);
}
return (*(__int64 (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 1352) + 960LL))(*(_QWORD *)(a1 + 1352), &v12);
}