{"type": "func", "start": 5369614480, "end": 5369614568, "name": "EditorPauseLayer::togglePreviewParticles", "pseudocode": "// \n// EditorPauseLayer::togglePreviewParticles from 0x1400dd090 to 0x1400dd0e8 (88 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400dc22e\n// > <???> @ 0x1406c89ac\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\nvoid EditorPauseLayer::togglePreviewParticles(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  void *v3; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v3 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  GameManager::toggleGameVariable((GameManager *)a1, \"0117\");\n  LevelEditorLayer::updatePreviewParticles(a1->m_editorLayer);\n}", "assembly": "; \n; EditorPauseLayer::togglePreviewParticles from 0x1400dd090 to 0x1400dd0e8 (88 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400dc22e\n; > <???> @ 0x1406c89ac\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\npush    rbx                                                            ; +0x0, 0x1400dd090\nsub     rsp, 20h                                                       ; +0x2, 0x1400dd092\nmov     rbx, rcx                                                       ; +0x6, 0x1400dd096\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x9, 0x1400dd099\njnz     short loc_1400DD0CB                                            ; +0x11, 0x1400dd0a1\nmov     ecx, 668h; Size                                                ; +0x13, 0x1400dd0a3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x1400dd0a8\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1400dd0ad\nmov     rcx, rax                                                       ; +0x22, 0x1400dd0b2\ncall    sub_14017AB00                                                  ; +0x25, 0x1400dd0b5\nnop                                                                    ; +0x2a, 0x1400dd0ba\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2b, 0x1400dd0bb\nmov     rdx, [rax]                                                     ; +0x32, 0x1400dd0c2\nmov     rcx, rax                                                       ; +0x35, 0x1400dd0c5\ncall    qword ptr [rdx+48h]                                            ; +0x38, 0x1400dd0c8\nlea     rdx, a0117; \"0117\"                                             ; +0x3b, 0x1400dd0cb\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1400dd0d2\nmov     rcx, [rbx+248h]                                                ; +0x47, 0x1400dd0d7\nadd     rsp, 20h                                                       ; +0x4e, 0x1400dd0de\npop     rbx                                                            ; +0x52, 0x1400dd0e2\njmp     LevelEditorLayer__updatePreviewParticles                       ; +0x53, 0x1400dd0e3", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400dc22e", "<???> @ 0x1406c89ac"], "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"}