//
// ParticleGameObject::createParticlePreviewArt from 0x100192af0 to 0x100192c22 (306 bytes)
//
// 1 xrefs:
// > GameObject::setupCustomSprites @ 0x100447f54
//
// 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 12:25:54 +0000
//
__int64 __fastcall ParticleGameObject::createParticlePreviewArt(__int64 a1)
{
__int64 result; // rax
__int64 v2; // r14
__int64 v3; // rbx
_QWORD v4[2]; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
_QWORD v6[2]; // [rsp+18h] [rbp-38h] BYREF
void *v7; // [rsp+28h] [rbp-28h]
_BYTE v8[32]; // [rsp+30h] [rbp-20h] BYREF
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1);
if ( !result )
{
__p = operator new(0x20u);
v4[0] = 33;
v4[1] = 26;
strcpy((char *)__p, "edit_eCParticleBtn_001.png");
sub_1002782D0(v8, &unk_100BE13A0);
v2 = GameObject::addCustomChild(a1, v4, v8, 1);
if ( (v4[0] & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 1);
v7 = operator new(0x20u);
v6[0] = 33;
v6[1] = 31;
strcpy((char *)v7, "edit_eParticleBtn_color_001.png");
sub_1002782D0(v8, &unk_100BE13A0);
v3 = GameObject::addInternalCustomColorChild(a1, v6, v8, 0xFFFFFFFFLL);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 1);
}
return result;
}