//
// LevelEditorLayer::updatePreviewParticles from 0x78da30 to 0x78dabc (140 bytes)
//
// 9 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x78dcdc
// > LevelEditorLayer::onStopPlaytest @ 0x78de7c
// > LevelEditorLayer::onPlaytest @ 0x7966d4
// > EditorPauseLayer::togglePreviewParticles @ 0x8b6b14
// > EditorOptionsLayer::onClose @ 0xa1d7f8
// > MapSelectLayer::init @ 0xac4498
// > EditorUI::handleEditorAction @ 0xbd7aa4
// > EditorUI::toggleViewOption @ 0xbfeb3c
// > ??> @ 0x8c6c8
//
// 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::updatePreviewParticles(cocos2d::CCArray **this)
{
GameManager *v2; // x0
GameManager *GameVariable; // x0
char v4; // w1
unsigned int v5; // w19
ParticleGameObject *v6; // x0
__int64 result; // x0
bool v8; // cf
unsigned int v9; // w1
GameManager *v10; // x0
v2 = (GameManager *)GameManager::sharedState((GameManager *)this);
GameVariable = (GameManager *)GameManager::getGameVariable(v2, "0117");
*((_BYTE *)this + 14012) = (_BYTE)GameVariable;
v4 = *((_BYTE *)this + 14016);
if ( !v4 )
{
v10 = (GameManager *)GameManager::sharedState(GameVariable);
v4 = GameManager::getGameVariable(v10, "0137");
}
*((_BYTE *)this + 14015) = v4;
v5 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 1761));
v8 = v5 >= (unsigned int)result;
v9 = v5++;
if ( v8 )
break;
v6 = (ParticleGameObject *)cocos2d::CCArray::objectAtIndex(*(this + 1761), v9);
LevelEditorLayer::updatePreviewParticle((LevelEditorLayer *)this, v6);
}
return result;
}