//
// ParticleGameObject::createParticlePreviewArt from 0x100381770 to 0x100381860 (240 bytes)
//
// 1 xrefs:
// > GameObject::setupCustomSprites @ 0x1002b6728
//
// 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)
{
cocos2d::CCSprite *v2; // x20
cocos2d::CCSprite *v3; // x19
void *v4[2]; // [xsp+8h] [xbp-48h] BYREF
char v5; // [xsp+1Fh] [xbp-31h]
float32x2_t v6; // [xsp+20h] [xbp-30h] BYREF
void *__p[2]; // [xsp+28h] [xbp-28h] BYREF
char v8; // [xsp+3Fh] [xbp-11h]
if ( !((__int64 (__fastcall *)(ParticleGameObject *, __int64))a1->getChildByTag)(a1, 1) )
{
sub_100009900(__p, "edit_eCParticleBtn_001.png");
sub_1000229B8((__int64 *)&v6, (__int64 *)&stru_10086E3B0);
v2 = GameObject::addCustomChild((__int64)a1, (const char *)__p, &v6, 1);
if ( v8 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v2->setTag)(v2, 1);
sub_100009900(v4, "edit_eParticleBtn_color_001.png");
sub_1000229B8((__int64 *)&v6, (__int64 *)&stru_10086E3B0);
v3 = GameObject::addInternalCustomColorChild((__int64)a1, (const char *)v4, &v6, 0xFFFFFFFFLL);
if ( v5 < 0 )
operator delete(v4[0]);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v3->setTag)(v3, 1);
}
}