//
// LevelEditorLayer::updatePreviewParticle from 0x1404011a0 to 0x140401230 (144 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1403f4c92
// > LevelEditorLayer::updatePreviewParticles @ 0x140401175
// > ??> @ 0x140925ae4
//
// 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:31:54 +0000
//
__int64 __fastcall LevelEditorLayer::updatePreviewParticle(__int64 a1, _BYTE *a2)
{
__int64 v2; // rax
v2 = *(_QWORD *)a2;
if ( *(_BYTE *)(a1 + 14668) )
{
a2[1817] = 0;
if ( (*(unsigned __int8 (__fastcall **)(_BYTE *))(v2 + 344))(a2) )
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 1248LL))(a2);
}
else
{
a2[1817] = 1;
(*(void (__fastcall **)(_BYTE *))(v2 + 1256))(a2);
}
return ParticleGameObject::updateParticlePreviewArtOpacity(a2);
}