//
// ParticleGameObject::updateSecondaryParticleOpacity from 0x140643180 to 0x1406431d6 (86 bytes)
//
// 1 xrefs:
// > ??> @ 0x14081f2b0
//
// This function is hookable on this platform (idp: pc, 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 11:35:35 +0000
//
__int64 __fastcall ParticleGameObject::updateSecondaryParticleOpacity(__int64 a1, unsigned __int8 a2)
{
__int64 v2; // r8
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 776);
if ( v2 )
{
if ( *(_BYTE *)(a1 + 817) )
{
*(float *)(v2 + 628) = (float)a2 / 255.0;
return a2;
}
else if ( *(_BYTE *)(a1 + 1800) )
{
*(float *)(v2 + 744) = (float)a2 / 255.0;
return a2;
}
}
return result;
}