//
// ParticleGameObject::createParticlePreviewArt from 0x1406426f0 to 0x140642871 (385 bytes)
//
// 2 xrefs:
// > GameObject::setupCustomSprites @ 0x1402bb294
// > ??> @ 0x1409310dc
//
// 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 11:35:35 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall ParticleGameObject::createParticlePreviewArt(_BYTE *a1)
{
__int64 result; // rax
__int64 v3; // rax
struct cocos2d::CCSprite *v4; // rax
__int64 v5; // rax
struct cocos2d::CCSprite *v6; // rax
__int128 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+30h] [rbp-18h]
__int64 v9; // [rsp+38h] [rbp-10h]
char v10; // [rsp+58h] [rbp+10h] BYREF
result = (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1);
if ( !result )
{
v7 = 0;
v8 = 0;
v9 = 0;
*(_QWORD *)&v7 = sub_14003D460(0x20u);
v8 = 26;
v9 = 31;
strcpy((char *)v7, "edit_eCParticleBtn_001.png");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const struct cocos2d::CCPoint *)&unk_14090BDD8);
v4 = GameObject::addCustomChild(a1, (const char *)&v7, v3, 1u);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v4 + 64LL))(v4, 1);
v7 = 0;
v8 = 0;
v9 = 0;
*(_QWORD *)&v7 = sub_14003D460(0x20u);
v8 = 31;
v9 = 31;
strcpy((char *)v7, "edit_eParticleBtn_color_001.png");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const struct cocos2d::CCPoint *)&unk_14090BDD8);
v6 = GameObject::addInternalCustomColorChild((__int64)a1, (const char *)&v7, v5, 0xFFFFFFFF);
return (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v6 + 64LL))(v6, 1);
}
return result;
}