//
// ParticleGameObject::updateSecondaryParticleOpacity from 0x4e601c to 0x4e6056 (58 bytes)
//
// 0 xrefs:
//
// 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:51:05 +0000
//
int __fastcall ParticleGameObject::updateSecondaryParticleOpacity(int this, int a2)
{
int v2; // r3
v2 = *(_DWORD *)(this + 660);
if ( v2 )
{
if ( *(_BYTE *)(this + 677) )
{
*(float *)(v2 + 540) = (float)a2 / 255.0;
}
else if ( *(_BYTE *)(this + 1560) )
{
*(float *)(v2 + 652) = (float)a2 / 255.0;
}
}
return this;
}