//
// ParticleGameObject::updateSecondaryParticleOpacity from 0x86e014 to 0x86e058 (68 bytes)
//
// 2 xrefs:
// > ??> @ 0x91db0
// > ??> @ 0x1447ab8
//
// 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 12:55:44 +0000
//
float __fastcall ParticleGameObject::updateSecondaryParticleOpacity(ParticleGameObject *this, unsigned __int8 a2)
{
__int64 v2; // x2
float result; // s0
v2 = *((_QWORD *)this + 97);
if ( v2 )
{
if ( *((_BYTE *)this + 809) )
{
result = (float)a2 / 255.0;
*(float *)(v2 + 620) = result;
}
else if ( *((_BYTE *)this + 1768) )
{
result = (float)a2 / 255.0;
*(float *)(v2 + 736) = result;
}
}
return result;
}