//
// LevelEditorLayer::updatePreviewParticle from 0x78d958 to 0x78da28 (208 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updatePreviewParticles @ 0x78da7c
// > LevelEditorLayer::addSpecial @ 0x7a073c
// > ??> @ 0xd1c38
//
// 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 12:53:27 +0000
//
__int64 __fastcall LevelEditorLayer::updatePreviewParticle(LevelEditorLayer *this, ParticleGameObject *a2)
{
char *v2; // x20
__int64 v4; // x2
char v5; // w0
ParticleGameObject *v6; // x1
float v7; // s0
v2 = (char *)this + 12288;
v4 = *(_QWORD *)a2;
if ( *((_BYTE *)this + 14012) )
{
*((_BYTE *)a2 + 1785) = 0;
v5 = (*(__int64 (__fastcall **)(ParticleGameObject *))(v4 + 352))(a2);
v6 = a2;
if ( v5 )
{
(*(void (__fastcall **)(ParticleGameObject *))(*(_QWORD *)a2 + 1400LL))(a2);
v6 = a2;
v7 = 0.0;
if ( !v2[1727] )
{
LABEL_4:
if ( *((_DWORD *)this + 493) != 1 )
v7 = 50.0;
}
}
else
{
v7 = 0.0;
if ( !v2[1727] )
goto LABEL_4;
}
}
else
{
*((_BYTE *)a2 + 1785) = 1;
(*(void (__fastcall **)(ParticleGameObject *))(v4 + 1408))(a2);
v7 = 0.0;
v6 = a2;
if ( *((_DWORD *)this + 493) != 1 )
return ParticleGameObject::updateParticlePreviewArtOpacity(a2, 255.0);
}
return ParticleGameObject::updateParticlePreviewArtOpacity(v6, v7);
}