{"type": "func", "start": 5372907936, "end": 5372908080, "name": "LevelEditorLayer::updatePreviewParticle", "pseudocode": "// \n// LevelEditorLayer::updatePreviewParticle from 0x1404011a0 to 0x140401230 (144 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1403f4c92\n// > LevelEditorLayer::updatePreviewParticles @ 0x140401175\n// > <???> @ 0x140925ae4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:54 +0000\n// \n\n__int64 __fastcall LevelEditorLayer::updatePreviewParticle(__int64 a1, _BYTE *a2)\n{\n  __int64 v2; // rax\n\n  v2 = *(_QWORD *)a2;\n  if ( *(_BYTE *)(a1 + 14668) )\n  {\n    a2[1817] = 0;\n    if ( (*(unsigned __int8 (__fastcall **)(_BYTE *))(v2 + 344))(a2) )\n      (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a2 + 1248LL))(a2);\n  }\n  else\n  {\n    a2[1817] = 1;\n    (*(void (__fastcall **)(_BYTE *))(v2 + 1256))(a2);\n  }\n  return ParticleGameObject::updateParticlePreviewArtOpacity(a2);\n}", "assembly": "; \n; LevelEditorLayer::updatePreviewParticle from 0x1404011a0 to 0x140401230 (144 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1403f4c92\n; > LevelEditorLayer::updatePreviewParticles @ 0x140401175\n; > <???> @ 0x140925ae4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:54 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404011a0\npush    rdi                                                            ; +0x5, 0x1404011a5\nsub     rsp, 20h                                                       ; +0x6, 0x1404011a6\ncmp     byte ptr [rcx+394Ch], 0                                        ; +0xa, 0x1404011aa\nmov     rdi, rcx                                                       ; +0x11, 0x1404011b1\nmov     rax, [rdx]                                                     ; +0x14, 0x1404011b4\nmov     rcx, rdx                                                       ; +0x17, 0x1404011b7\nmov     rbx, rdx                                                       ; +0x1a, 0x1404011ba\njz      short loc_1404011F9                                            ; +0x1d, 0x1404011bd\nmov     byte ptr [rdx+719h], 0                                         ; +0x1f, 0x1404011bf\ncall    qword ptr [rax+158h]                                           ; +0x26, 0x1404011c6\ntest    al, al                                                         ; +0x2c, 0x1404011cc\njz      short loc_1404011DC                                            ; +0x2e, 0x1404011ce\nmov     rax, [rbx]                                                     ; +0x30, 0x1404011d0\nmov     rcx, rbx                                                       ; +0x33, 0x1404011d3\ncall    qword ptr [rax+4E0h]                                           ; +0x36, 0x1404011d6\ncmp     byte ptr [rdi+394Fh], 0                                        ; +0x3c, 0x1404011dc\njnz     short loc_1404011F5                                            ; +0x43, 0x1404011e3\ncmp     dword ptr [rdi+89Ch], 1                                        ; +0x45, 0x1404011e5\njz      short loc_1404011F5                                            ; +0x4c, 0x1404011ec\nmov     eax, 32h ; '2'                                                 ; +0x4e, 0x1404011ee\njmp     short loc_140401217                                            ; +0x53, 0x1404011f3\nxor     eax, eax                                                       ; +0x55, 0x1404011f5\njmp     short loc_140401217                                            ; +0x57, 0x1404011f7\nmov     byte ptr [rdx+719h], 1                                         ; +0x59, 0x1404011f9\ncall    qword ptr [rax+4E8h]                                           ; +0x60, 0x140401200\nxor     eax, eax                                                       ; +0x66, 0x140401206\nmov     ecx, 0FFh                                                      ; +0x68, 0x140401208\ncmp     dword ptr [rdi+89Ch], 1                                        ; +0x6d, 0x14040120d\ncmovnz  eax, ecx                                                       ; +0x74, 0x140401214\nmovd    xmm1, eax                                                      ; +0x77, 0x140401217\nmov     rcx, rbx                                                       ; +0x7b, 0x14040121b\ncvtdq2ps xmm1, xmm1                                                    ; +0x7e, 0x14040121e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x81, 0x140401221\nadd     rsp, 20h                                                       ; +0x86, 0x140401226\npop     rdi                                                            ; +0x8a, 0x14040122a\njmp     ParticleGameObject__updateParticlePreviewArtOpacity            ; +0x8b, 0x14040122b", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1403f4c92", "LevelEditorLayer::updatePreviewParticles @ 0x140401175", "<???> @ 0x140925ae4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}