{"type": "func", "start": 4299585776, "end": 4299585956, "name": "CreateParticlePopup::onPasteSettings", "pseudocode": "// \n// CreateParticlePopup::onPasteSettings from 0x1004678f0 to 0x1004679a4 (180 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::init @ 0x1004633fd\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 12:30:29 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onPasteSettings(__int64 *a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // r14\n  _QWORD *v6; // rdi\n\n  result = GameManager::sharedState();\n  if ( *(_QWORD *)(result + 552) )\n  {\n    v3 = GameManager::sharedState();\n    LevelEditorLayer::pasteParticleState(*(_QWORD *)(v3 + 552), a1[85], a1[86]);\n    v4 = sub_1007FEFE0(a1[93], 0);\n    if ( v4 )\n    {\n      v5 = *(_QWORD *)(v4 + 56);\n      while ( v5 )\n      {\n        v6 = *(_QWORD **)(v5 + 264);\n        v5 = *(_QWORD *)(v5 + 288);\n        v6[73] = 0;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1160LL))(v6, 0);\n      }\n    }\n    (*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1072))(a1, 0);\n    return (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 528))(a1, 1);\n  }\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::onPasteSettings from 0x1004678f0 to 0x1004679a4 (180 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::init @ 0x1004633fd\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 12:30:29 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004678f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004678f1\npush    r14                                                            ; +0x4, 0x1004678f4\npush    rbx                                                            ; +0x6, 0x1004678f6\nmov     rbx, rdi                                                       ; +0x7, 0x1004678f7\ncall    GameManager__sharedState                                       ; +0xa, 0x1004678fa\ncmp     qword ptr [rax+228h], 0                                        ; +0xf, 0x1004678ff\njz      loc_10046799F                                                  ; +0x17, 0x100467907\ncall    GameManager__sharedState                                       ; +0x1d, 0x10046790d\nmov     rdi, [rax+228h]                                                ; +0x22, 0x100467912\nmov     rsi, [rbx+2A8h]                                                ; +0x29, 0x100467919\nmov     rdx, [rbx+2B0h]                                                ; +0x30, 0x100467920\ncall    LevelEditorLayer__pasteParticleState                           ; +0x37, 0x100467927\nmov     rdi, [rbx+2E8h]                                                ; +0x3c, 0x10046792c\nxor     esi, esi                                                       ; +0x43, 0x100467933\ncall    sub_1007FEFE0                                                  ; +0x45, 0x100467935\ntest    rax, rax                                                       ; +0x4a, 0x10046793a\njz      short loc_100467979                                            ; +0x4d, 0x10046793d\nmov     r14, [rax+38h]                                                 ; +0x4f, 0x10046793f\ntest    r14, r14                                                       ; +0x53, 0x100467943\njz      short loc_100467979                                            ; +0x56, 0x100467946\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x100467948\nmov     rdi, [r14+108h]                                                ; +0x60, 0x100467950\nmov     r14, [r14+120h]                                                ; +0x67, 0x100467957\nmov     qword ptr [rdi+248h], 0                                        ; +0x6e, 0x10046795e\nmov     rax, [rdi]                                                     ; +0x79, 0x100467969\nxor     esi, esi                                                       ; +0x7c, 0x10046796c\ncall    qword ptr [rax+488h]                                           ; +0x7e, 0x10046796e\ntest    r14, r14                                                       ; +0x84, 0x100467974\njnz     short loc_100467950                                            ; +0x87, 0x100467977\nmov     rax, [rbx]                                                     ; +0x89, 0x100467979\nmov     rdi, rbx                                                       ; +0x8c, 0x10046797c\nxor     esi, esi                                                       ; +0x8f, 0x10046797f\ncall    qword ptr [rax+430h]                                           ; +0x91, 0x100467981\nmov     rax, [rbx]                                                     ; +0x97, 0x100467987\nmov     rax, [rax+210h]                                                ; +0x9a, 0x10046798a\nmov     rdi, rbx                                                       ; +0xa1, 0x100467991\nmov     esi, 1                                                         ; +0xa4, 0x100467994\npop     rbx                                                            ; +0xa9, 0x100467999\npop     r14                                                            ; +0xaa, 0x10046799a\npop     rbp                                                            ; +0xac, 0x10046799c\njmp     rax                                                            ; +0xad, 0x10046799d\npop     rbx                                                            ; +0xaf, 0x10046799f\npop     r14                                                            ; +0xb0, 0x1004679a0\npop     rbp                                                            ; +0xb2, 0x1004679a2\nretn                                                                   ; +0xb3, 0x1004679a3", "xrefs": ["CreateParticlePopup::init @ 0x1004633fd"], "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"}