{"type": "func", "start": 5371729200, "end": 5371729464, "name": "LevelEditorLayer::updatePreviewParticles", "pseudocode": "// \n// LevelEditorLayer::updatePreviewParticles from 0x1402e1530 to 0x1402e1638 (264 bytes)\n// \n// 7 xrefs:\n// > EditorPauseLayer::togglePreviewParticles @ 0x1400dd0e3\n// > EditorUI::keyDown @ 0x1401261e6\n// > EditorOptionsLayer::onClose @ 0x140291c84\n// > LevelEditorLayer::updateEditorMode @ 0x1402dbddb\n// > LevelEditorLayer::onPlaytest @ 0x1402e050a\n// > LevelEditorLayer::onStopPlaytest @ 0x1402e0922\n// > <???> @ 0x1406d36c8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid LevelEditorLayer::updatePreviewParticles(LevelEditorLayer *a1)\n{\n  GameManager *v2; // rcx\n  GameManager *v3; // rcx\n  bool GameVariable; // al\n  unsigned int i; // edi\n  ParticleGameObject *v6; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  a1->m_previewParticles = GameManager::getGameVariable(v2, \"0117\");\n  if ( a1->m_alwaysHideParticleIcons )\n    goto LABEL_7;\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v8 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v3, \"0137\");\n  if ( GameVariable )\nLABEL_7:\n    GameVariable = 1;\n  a1->m_hideParticleIcons = GameVariable;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_particleObjects); ++i )\n  {\n    v6 = (ParticleGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_particleObjects, i);\n    LevelEditorLayer::updatePreviewParticle(a1, v6);\n  }\n}", "assembly": "; \n; LevelEditorLayer::updatePreviewParticles from 0x1402e1530 to 0x1402e1638 (264 bytes)\n; \n; 7 xrefs:\n; > EditorPauseLayer::togglePreviewParticles @ 0x1400dd0e3\n; > EditorUI::keyDown @ 0x1401261e6\n; > EditorOptionsLayer::onClose @ 0x140291c84\n; > LevelEditorLayer::updateEditorMode @ 0x1402dbddb\n; > LevelEditorLayer::onPlaytest @ 0x1402e050a\n; > LevelEditorLayer::onStopPlaytest @ 0x1402e0922\n; > <???> @ 0x1406d36c8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402e1530\npush    rdi                                                            ; +0x5, 0x1402e1535\nsub     rsp, 20h                                                       ; +0x6, 0x1402e1536\nmov     rbx, rcx                                                       ; +0xa, 0x1402e153a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xd, 0x1402e153d\ntest    rcx, rcx                                                       ; +0x14, 0x1402e1544\njnz     short loc_1402E1578                                            ; +0x17, 0x1402e1547\nmov     ecx, 668h; Size                                                ; +0x19, 0x1402e1549\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1402e154e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x1402e1553\nmov     rcx, rax                                                       ; +0x28, 0x1402e1558\ncall    sub_14017AB00                                                  ; +0x2b, 0x1402e155b\nnop                                                                    ; +0x30, 0x1402e1560\nmov     cs:qword_1406C2ED8, rax                                        ; +0x31, 0x1402e1561\nmov     rdx, [rax]                                                     ; +0x38, 0x1402e1568\nmov     rcx, rax                                                       ; +0x3b, 0x1402e156b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x1402e156e\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x41, 0x1402e1571\nlea     rdx, a0117; \"0117\"                                             ; +0x48, 0x1402e1578\ncall    GameManager__getGameVariable                                   ; +0x4f, 0x1402e157f\nmov     [rbx+37B3h], al                                                ; +0x54, 0x1402e1584\ncmp     byte ptr [rbx+37B7h], 0                                        ; +0x5a, 0x1402e158a\njnz     short loc_1402E15DE                                            ; +0x61, 0x1402e1591\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x63, 0x1402e1593\ntest    rcx, rcx                                                       ; +0x6a, 0x1402e159a\njnz     short loc_1402E15CE                                            ; +0x6d, 0x1402e159d\nmov     ecx, 668h; Size                                                ; +0x6f, 0x1402e159f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x74, 0x1402e15a4\nmov     [rsp+28h+arg_0], rax                                           ; +0x79, 0x1402e15a9\nmov     rcx, rax                                                       ; +0x7e, 0x1402e15ae\ncall    sub_14017AB00                                                  ; +0x81, 0x1402e15b1\nnop                                                                    ; +0x86, 0x1402e15b6\nmov     cs:qword_1406C2ED8, rax                                        ; +0x87, 0x1402e15b7\nmov     rdx, [rax]                                                     ; +0x8e, 0x1402e15be\nmov     rcx, rax                                                       ; +0x91, 0x1402e15c1\ncall    qword ptr [rdx+48h]                                            ; +0x94, 0x1402e15c4\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x97, 0x1402e15c7\nlea     rdx, a0137; \"0137\"                                             ; +0x9e, 0x1402e15ce\ncall    GameManager__getGameVariable                                   ; +0xa5, 0x1402e15d5\ntest    al, al                                                         ; +0xaa, 0x1402e15da\njz      short loc_1402E15E0                                            ; +0xac, 0x1402e15dc\nmov     al, 1                                                          ; +0xae, 0x1402e15de\nmov     [rbx+37B6h], al                                                ; +0xb0, 0x1402e15e0\nxor     edi, edi                                                       ; +0xb6, 0x1402e15e6\nmov     rcx, [rbx+3800h]                                               ; +0xb8, 0x1402e15e8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbf, 0x1402e15ef\ntest    eax, eax                                                       ; +0xc5, 0x1402e15f5\njz      short loc_1402E162D                                            ; +0xc7, 0x1402e15f7\nnop     dword ptr [rax+00000000h]                                      ; +0xc9, 0x1402e15f9\nmov     edx, edi                                                       ; +0xd0, 0x1402e1600\nmov     rcx, [rbx+3800h]                                               ; +0xd2, 0x1402e1602\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xd9, 0x1402e1609\nmov     rdx, rax                                                       ; +0xdf, 0x1402e160f\nmov     rcx, rbx                                                       ; +0xe2, 0x1402e1612\ncall    LevelEditorLayer__updatePreviewParticle                        ; +0xe5, 0x1402e1615\ninc     edi                                                            ; +0xea, 0x1402e161a\nmov     rcx, [rbx+3800h]                                               ; +0xec, 0x1402e161c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf3, 0x1402e1623\ncmp     edi, eax                                                       ; +0xf9, 0x1402e1629\njb      short loc_1402E1600                                            ; +0xfb, 0x1402e162b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xfd, 0x1402e162d\nadd     rsp, 20h                                                       ; +0x102, 0x1402e1632\npop     rdi                                                            ; +0x106, 0x1402e1636\nretn                                                                   ; +0x107, 0x1402e1637", "xrefs": ["EditorPauseLayer::togglePreviewParticles @ 0x1400dd0e3", "EditorUI::keyDown @ 0x1401261e6", "EditorOptionsLayer::onClose @ 0x140291c84", "LevelEditorLayer::updateEditorMode @ 0x1402dbddb", "LevelEditorLayer::onPlaytest @ 0x1402e050a", "LevelEditorLayer::onStopPlaytest @ 0x1402e0922", "<???> @ 0x1406d36c8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}