//
// ParticleGameObject::createParticlePreviewArt from 0x1001b2520 to 0x1001b2652 (306 bytes)
//
// 1 xrefs:
// > GameObject::setupCustomSprites @ 0x100453b64
//
// 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 ParticleGameObject::createParticlePreviewArt(ParticleGameObject *a1)
{
double v1; // xmm0_8
__int64 v2; // r14
double v3; // xmm0_8
__int64 v4; // rbx
_QWORD v5[2]; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
_QWORD v7[2]; // [rsp+18h] [rbp-38h] BYREF
void *v8; // [rsp+28h] [rbp-28h]
_BYTE v9[32]; // [rsp+30h] [rbp-20h] BYREF
if ( !((__int64 (__fastcall *)(ParticleGameObject *, __int64))a1->getChildByTag)(a1, 1) )
{
__p = operator new(0x20u);
v5[0] = 33;
v5[1] = 26;
strcpy((char *)__p, "edit_eCParticleBtn_001.png");
v1 = sub_10028CC60(v9);
v2 = GameObject::addCustomChild(a1, v5, v9, 1, v1);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 1);
v8 = operator new(0x20u);
v7[0] = 33;
v7[1] = 31;
strcpy((char *)v8, "edit_eParticleBtn_color_001.png");
v3 = sub_10028CC60(v9);
v4 = GameObject::addInternalCustomColorChild(a1, v7, v9, 0xFFFFFFFFLL, v3);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 1);
}
}