{"type": "func", "start": 4299633392, "end": 4299633572, "name": "CreateParticlePopup::onPasteSettings", "pseudocode": "// \n// CreateParticlePopup::onPasteSettings from 0x1004732f0 to 0x1004733a4 (180 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::init @ 0x10046f19d\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 __fastcall CreateParticlePopup::onPasteSettings(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // r14\n  _QWORD *v6; // rdi\n\n  if ( GameManager::sharedState()->m_levelEditorLayer )\n  {\n    v3 = GameManager::sharedState();\n    LevelEditorLayer::pasteParticleState(v3->m_levelEditorLayer, a1->m_targetObject, a1->m_targetObjects);\n    v4 = sub_1007200C0(a1->m_inputDicts, 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[68] = 0;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1144LL))(v6, 0);\n      }\n    }\n    ((void (__fastcall *)(CreateParticlePopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    ((void (__fastcall *)(CreateParticlePopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n  }\n}", "assembly": "; \n; CreateParticlePopup::onPasteSettings from 0x1004732f0 to 0x1004733a4 (180 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::init @ 0x10046f19d\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    rbp                                                            ; +0x0, 0x1004732f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004732f1\npush    r14                                                            ; +0x4, 0x1004732f4\npush    rbx                                                            ; +0x6, 0x1004732f6\nmov     rbx, rdi                                                       ; +0x7, 0x1004732f7\ncall    GameManager__sharedState                                       ; +0xa, 0x1004732fa\ncmp     qword ptr [rax+200h], 0                                        ; +0xf, 0x1004732ff\njz      loc_10047339F                                                  ; +0x17, 0x100473307\ncall    GameManager__sharedState                                       ; +0x1d, 0x10047330d\nmov     rdi, [rax+200h]                                                ; +0x22, 0x100473312\nmov     rsi, [rbx+290h]                                                ; +0x29, 0x100473319\nmov     rdx, [rbx+298h]                                                ; +0x30, 0x100473320\ncall    LevelEditorLayer__pasteParticleState                           ; +0x37, 0x100473327\nmov     rdi, [rbx+2D0h]                                                ; +0x3c, 0x10047332c\nxor     esi, esi                                                       ; +0x43, 0x100473333\ncall    sub_1007200C0                                                  ; +0x45, 0x100473335\ntest    rax, rax                                                       ; +0x4a, 0x10047333a\njz      short loc_100473379                                            ; +0x4d, 0x10047333d\nmov     r14, [rax+38h]                                                 ; +0x4f, 0x10047333f\ntest    r14, r14                                                       ; +0x53, 0x100473343\njz      short loc_100473379                                            ; +0x56, 0x100473346\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x100473348\nmov     rdi, [r14+108h]                                                ; +0x60, 0x100473350\nmov     r14, [r14+120h]                                                ; +0x67, 0x100473357\nmov     qword ptr [rdi+220h], 0                                        ; +0x6e, 0x10047335e\nmov     rax, [rdi]                                                     ; +0x79, 0x100473369\nxor     esi, esi                                                       ; +0x7c, 0x10047336c\ncall    qword ptr [rax+478h]                                           ; +0x7e, 0x10047336e\ntest    r14, r14                                                       ; +0x84, 0x100473374\njnz     short loc_100473350                                            ; +0x87, 0x100473377\nmov     rax, [rbx]                                                     ; +0x89, 0x100473379\nmov     rdi, rbx                                                       ; +0x8c, 0x10047337c\nxor     esi, esi                                                       ; +0x8f, 0x10047337f\ncall    qword ptr [rax+420h]                                           ; +0x91, 0x100473381\nmov     rax, [rbx]                                                     ; +0x97, 0x100473387\nmov     rax, [rax+200h]                                                ; +0x9a, 0x10047338a\nmov     rdi, rbx                                                       ; +0xa1, 0x100473391\nmov     esi, 1                                                         ; +0xa4, 0x100473394\npop     rbx                                                            ; +0xa9, 0x100473399\npop     r14                                                            ; +0xaa, 0x10047339a\npop     rbp                                                            ; +0xac, 0x10047339c\njmp     rax                                                            ; +0xad, 0x10047339d\npop     rbx                                                            ; +0xaf, 0x10047339f\npop     r14                                                            ; +0xb0, 0x1004733a0\npop     rbp                                                            ; +0xb2, 0x1004733a2\nretn                                                                   ; +0xb3, 0x1004733a3", "xrefs": ["CreateParticlePopup::init @ 0x10046f19d"], "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"}