{"type": "func", "start": 5371729472, "end": 5371729616, "name": "LevelEditorLayer::updatePreviewParticle", "pseudocode": "// \n// LevelEditorLayer::updatePreviewParticle from 0x1402e1640 to 0x1402e16d0 (144 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1402d7cda\n// > LevelEditorLayer::updatePreviewParticles @ 0x1402e1615\n// > <???> @ 0x1406d36d4\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 LevelEditorLayer::updatePreviewParticle(LevelEditorLayer *a1, ParticleGameObject *a2)\n{\n  ParticleGameObject_vtbl *v3; // rax\n  int v5; // eax\n\n  v3 = a2->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( a1->m_previewParticles )\n  {\n    a2->m_notPreviewing = 0;\n    if ( v3->isVisible(a2) )\n      a2->claimParticle(a2);\n    if ( a1->m_hideParticleIcons || a1->m_playbackMode == Playing )\n      v5 = 0;\n    else\n      v5 = 50;\n  }\n  else\n  {\n    a2->m_notPreviewing = 1;\n    v3->unclaimParticle(a2);\n    v5 = 0;\n    if ( a1->m_playbackMode != Playing )\n      v5 = 255;\n  }\n  ParticleGameObject::updateParticlePreviewArtOpacity(a2, (float)v5);\n}", "assembly": "; \n; LevelEditorLayer::updatePreviewParticle from 0x1402e1640 to 0x1402e16d0 (144 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1402d7cda\n; > LevelEditorLayer::updatePreviewParticles @ 0x1402e1615\n; > <???> @ 0x1406d36d4\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_0], rbx                                               ; +0x0, 0x1402e1640\npush    rdi                                                            ; +0x5, 0x1402e1645\nsub     rsp, 20h                                                       ; +0x6, 0x1402e1646\ncmp     byte ptr [rcx+37B3h], 0                                        ; +0xa, 0x1402e164a\nmov     rdi, rcx                                                       ; +0x11, 0x1402e1651\nmov     rax, [rdx]                                                     ; +0x14, 0x1402e1654\nmov     rcx, rdx                                                       ; +0x17, 0x1402e1657\nmov     rbx, rdx                                                       ; +0x1a, 0x1402e165a\njz      short loc_1402E1699                                            ; +0x1d, 0x1402e165d\nmov     byte ptr [rdx+719h], 0                                         ; +0x1f, 0x1402e165f\ncall    qword ptr [rax+148h]                                           ; +0x26, 0x1402e1666\ntest    al, al                                                         ; +0x2c, 0x1402e166c\njz      short loc_1402E167C                                            ; +0x2e, 0x1402e166e\nmov     rax, [rbx]                                                     ; +0x30, 0x1402e1670\nmov     rcx, rbx                                                       ; +0x33, 0x1402e1673\ncall    qword ptr [rax+4D0h]                                           ; +0x36, 0x1402e1676\ncmp     byte ptr [rdi+37B6h], 0                                        ; +0x3c, 0x1402e167c\njnz     short loc_1402E1695                                            ; +0x43, 0x1402e1683\ncmp     dword ptr [rdi+880h], 1                                        ; +0x45, 0x1402e1685\njz      short loc_1402E1695                                            ; +0x4c, 0x1402e168c\nmov     eax, 32h ; '2'                                                 ; +0x4e, 0x1402e168e\njmp     short loc_1402E16B7                                            ; +0x53, 0x1402e1693\nxor     eax, eax                                                       ; +0x55, 0x1402e1695\njmp     short loc_1402E16B7                                            ; +0x57, 0x1402e1697\nmov     byte ptr [rdx+719h], 1                                         ; +0x59, 0x1402e1699\ncall    qword ptr [rax+4D8h]                                           ; +0x60, 0x1402e16a0\nxor     eax, eax                                                       ; +0x66, 0x1402e16a6\nmov     ecx, 0FFh                                                      ; +0x68, 0x1402e16a8\ncmp     dword ptr [rdi+880h], 1                                        ; +0x6d, 0x1402e16ad\ncmovnz  eax, ecx                                                       ; +0x74, 0x1402e16b4\nmovd    xmm1, eax                                                      ; +0x77, 0x1402e16b7\nmov     rcx, rbx                                                       ; +0x7b, 0x1402e16bb\ncvtdq2ps xmm1, xmm1                                                    ; +0x7e, 0x1402e16be\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x81, 0x1402e16c1\nadd     rsp, 20h                                                       ; +0x86, 0x1402e16c6\npop     rdi                                                            ; +0x8a, 0x1402e16ca\njmp     ParticleGameObject__updateParticlePreviewArtOpacity            ; +0x8b, 0x1402e16cb", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1402d7cda", "LevelEditorLayer::updatePreviewParticles @ 0x1402e1615", "<???> @ 0x1406d36d4"], "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"}