//
// CreateParticlePopup::onPasteSettings from 0x1004732f0 to 0x1004733a4 (180 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x10046f19d
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CreateParticlePopup::onPasteSettings(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rax
__int64 v4; // rax
__int64 v5; // r14
_QWORD *v6; // rdi
if ( GameManager::sharedState()->m_levelEditorLayer )
{
v3 = GameManager::sharedState();
LevelEditorLayer::pasteParticleState(v3->m_levelEditorLayer, a1->m_targetObject, a1->m_targetObjects);
v4 = sub_1007200C0(a1->m_inputDicts, 0);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
while ( v5 )
{
v6 = *(_QWORD **)(v5 + 264);
v5 = *(_QWORD *)(v5 + 288);
v6[68] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1144LL))(v6, 0);
}
}
((void (__fastcall *)(CreateParticlePopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(CreateParticlePopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}
}