//
// ParticleGameObject::updateMainParticleOpacity from 0x100427f7c to 0x100427fc0 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x100951a10
//
// 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 11:05:02 +0000
//
__int64 __fastcall ParticleGameObject::updateMainParticleOpacity(__int64 result, unsigned int a2)
{
__int64 v2; // x8
__int64 v3; // x9
v2 = *(_QWORD *)(result + 776);
if ( v2 )
{
if ( (*(_BYTE *)(result + 809) & 1) != 0 )
{
v3 = 588;
}
else
{
if ( *(_BYTE *)(result + 1768) != 1 )
{
LABEL_7:
*(_BYTE *)(v2 + 838) = a2;
return result;
}
v3 = 720;
}
*(float *)(v2 + v3) = (float)a2 / 255.0;
goto LABEL_7;
}
return result;
}