//
// LevelEditorLayer::copyParticleState from 0x466c4c to 0x466d30 (228 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::onCopySettings @ 0x666420
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:57 +0000
//
ParticleGameObject *__fastcall LevelEditorLayer::copyParticleState(
ParticleGameObject *this,
ParticleGameObject *a2,
int a3,
int a4)
{
ParticleGameObject *v4; // r5
int v6; // r0
cocos2d::CCObject **v7; // r9
int v8; // r9
void (__fastcall *v9)(int, ParticleGameObject **); // r10
int v10; // r9
ParticleGameObject *v11; // [sp+0h] [bp-10h] BYREF
ParticleGameObject *v12; // [sp+4h] [bp-Ch]
int v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = this;
v12 = a2;
v13 = a3;
v14 = a4;
v4 = this;
if ( a2 )
{
if ( !*((_DWORD *)this + 2943) )
{
v6 = ParticleGameObject::create(this);
*((_DWORD *)v4 + 2943) = v6;
(*(void (__fastcall **)(int))(*(_DWORD *)v6 + 632))(v6);
v7 = *((cocos2d::CCObject ***)v4 + 2943);
v11 = nullptr;
v12 = nullptr;
v13 = 0;
std::string::__init((int *)&v11, "edit_eCParticleBtn_001.png", 0x1Au);
GameObject::addColorSprite(v7, (int)&v11);
std::string::~string((int)&v11);
v8 = *((_DWORD *)v4 + 2943);
v9 = *(void (__fastcall **)(int, ParticleGameObject **))(*(_DWORD *)v8 + 636);
v11 = nullptr;
v12 = nullptr;
v13 = 0;
std::string::__init((int *)&v11, "edit_eCParticleBtn_001.png", 0x1Au);
v9(v8, &v11);
std::string::~string((int)&v11);
cocos2d::CCObject::retain(*((cocos2d::CCObject **)v4 + 2943));
}
v10 = *((_DWORD *)v4 + 2943);
std::string::basic_string((int *)&v11, (int)a2 + 1268);
ParticleGameObject::setParticleString(v10, &v11);
this = (ParticleGameObject *)std::string::~string((int)&v11);
*(_BYTE *)(*((_DWORD *)v4 + 2943) + 1560) = *((_BYTE *)a2 + 1560);
*(_BYTE *)(*((_DWORD *)v4 + 2943) + 1237) = *((_BYTE *)a2 + 1237);
}
return this;
}