//
// LevelEditorLayer::updatePreviewParticles from 0x1402e1530 to 0x1402e1638 (264 bytes)
//
// 7 xrefs:
// > EditorPauseLayer::togglePreviewParticles @ 0x1400dd0e3
// > EditorUI::keyDown @ 0x1401261e6
// > EditorOptionsLayer::onClose @ 0x140291c84
// > LevelEditorLayer::updateEditorMode @ 0x1402dbddb
// > LevelEditorLayer::onPlaytest @ 0x1402e050a
// > LevelEditorLayer::onStopPlaytest @ 0x1402e0922
// > ??> @ 0x1406d36c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
void LevelEditorLayer::updatePreviewParticles(LevelEditorLayer *a1)
{
GameManager *v2; // rcx
GameManager *v3; // rcx
bool GameVariable; // al
unsigned int i; // edi
ParticleGameObject *v6; // rax
void *v7; // [rsp+30h] [rbp+8h]
void *v8; // [rsp+30h] [rbp+8h]
v2 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v2 = (GameManager *)qword_1406C2ED8;
}
a1->m_previewParticles = GameManager::getGameVariable(v2, "0117");
if ( a1->m_alwaysHideParticleIcons )
goto LABEL_7;
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
GameVariable = GameManager::getGameVariable(v3, "0137");
if ( GameVariable )
LABEL_7:
GameVariable = 1;
a1->m_hideParticleIcons = GameVariable;
for ( i = 0; i < cocos2d::CCArray::count(a1->m_particleObjects); ++i )
{
v6 = (ParticleGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_particleObjects, i);
LevelEditorLayer::updatePreviewParticle(a1, v6);
}
}