//
// CreateParticlePopup::onPasteSettings from 0x1004678f0 to 0x1004679a4 (180 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x1004633fd
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:29 +0000
//
__int64 __fastcall CreateParticlePopup::onPasteSettings(__int64 *a1)
{
__int64 result; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // r14
_QWORD *v6; // rdi
result = GameManager::sharedState();
if ( *(_QWORD *)(result + 552) )
{
v3 = GameManager::sharedState();
LevelEditorLayer::pasteParticleState(*(_QWORD *)(v3 + 552), a1[85], a1[86]);
v4 = sub_1007FEFE0(a1[93], 0);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
while ( v5 )
{
v6 = *(_QWORD **)(v5 + 264);
v5 = *(_QWORD *)(v5 + 288);
v6[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1160LL))(v6, 0);
}
}
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1072))(a1, 0);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 528))(a1, 1);
}
return result;
}