//
// ParticleGameObject::updateMainParticleOpacity from 0x4e5fd0 to 0x4e6016 (70 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::updateMainParticleOpacity(int this, int a2)
{
int v2; // r3
v2 = *(_DWORD *)(this + 660);
if ( v2 )
{
if ( *(_BYTE *)(this + 677) )
{
*(float *)(v2 + 508) = (float)a2 / 255.0;
}
else
{
if ( !*(_BYTE *)(this + 1560) )
{
LABEL_7:
*(_BYTE *)(v2 + 742) = a2;
return this;
}
*(float *)(v2 + 636) = (float)a2 / 255.0;
}
v2 = *(_DWORD *)(this + 660);
goto LABEL_7;
}
return this;
}