//
// CreateParticlePopup::updateColorSprite from 0xafd1dc to 0xafd2bc (224 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::init @ 0xb02aa4
// > CreateParticlePopup::init @ 0xb02b90
// > ??> @ 0xdb910
//
// 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 13:01:18 +0000
//
__int64 __fastcall CreateParticlePopup::updateColorSprite(CreateParticlePopup *this, int a2)
{
float *v4; // x2
__int64 v5; // x5
float v6; // s1
float v7; // s0
_BYTE v8[8]; // [xsp+20h] [xbp+20h] BYREF
if ( a2 == 1 )
{
v4 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1352LL))(*((_QWORD *)this + 89));
v5 = *((_QWORD *)this + 118);
goto LABEL_5;
}
if ( a2 == 2 )
{
v4 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1384LL))(*((_QWORD *)this + 89));
v5 = *((_QWORD *)this + 119);
LABEL_5:
v6 = v4[2] * 255.0;
v7 = *v4 * 255.0;
v8[1] = (unsigned int)(float)(v4[1] * 255.0);
v8[2] = (unsigned int)v6;
v8[0] = (unsigned int)v7;
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 960LL))(v5, v8);
}
return _stack_chk_guard;
}