//
// ParticleGameObject::updateMainParticleOpacity from 0x86dfb4 to 0x86e010 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x45da8
// > ??> @ 0x1447ab0
//
// 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
//
__int64 __fastcall ParticleGameObject::updateMainParticleOpacity(__int64 this, unsigned __int8 a2)
{
__int64 v2; // x2
v2 = *(_QWORD *)(this + 776);
if ( v2 )
{
if ( *(_BYTE *)(this + 809) )
{
*(float *)(v2 + 588) = (float)a2 / 255.0;
this = *(_QWORD *)(this + 776);
*(_BYTE *)(this + 834) = a2;
}
else if ( *(_BYTE *)(this + 1768) )
{
*(float *)(v2 + 720) = (float)a2 / 255.0;
this = *(_QWORD *)(this + 776);
*(_BYTE *)(this + 834) = a2;
}
else
{
*(_BYTE *)(v2 + 834) = a2;
}
}
return this;
}