//
// CreateParticlePopup::updateColorSprite from 0x6647b4 to 0x664888 (212 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0x668492
// > CreateParticlePopup::init @ 0x668598
//
// 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:55:39 +0000
//
void *__fastcall CreateParticlePopup::updateColorSprite(CreateParticlePopup *this, int a2, int a3)
{
void *result; // r0
float *v5; // r0
unsigned int v6; // r3
float v7; // s15
int v8; // r0
float *v9; // r0
unsigned int v10; // r2
unsigned int v11; // r3
float v12; // s15
_DWORD v13[3]; // [sp+0h] [bp-Ch] BYREF
v13[0] = this;
v13[1] = a2;
v13[2] = a3;
result = &_stack_chk_guard;
if ( a2 == 1 )
{
v5 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 676))(*((_DWORD *)this + 136));
v6 = (unsigned int)(float)(v5[2] * 255.0);
v7 = *v5;
BYTE1(v13[0]) = (unsigned int)(float)(v5[1] * 255.0);
v8 = *((_DWORD *)this + 167);
BYTE2(v13[0]) = v6;
LOBYTE(v13[0]) = (unsigned int)(float)(v7 * 255.0);
}
else
{
if ( a2 != 2 )
return result;
v9 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 692))(*((_DWORD *)this + 136));
v10 = (unsigned int)(float)(v9[1] * 255.0);
v11 = (unsigned int)(float)(v9[2] * 255.0);
v12 = *v9;
v8 = *((_DWORD *)this + 168);
BYTE1(v13[0]) = v10;
BYTE2(v13[0]) = v11;
LOBYTE(v13[0]) = (unsigned int)(float)(v12 * 255.0);
}
return (void *)(*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 480))(v8, v13);
}