//
// CreateParticlePopup::create from 0xb052e4 to 0xb053a8 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0xf2668
//
// This function is hookable on this platform (idp: arm, 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 13:01:23 +0000
//
__int64 __fastcall CreateParticlePopup::create(char *a1)
{
char v2; // w0
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x20
__int64 v7; // [xsp+20h] [xbp+20h] BYREF
__int64 v8; // [xsp+28h] [xbp+28h]
void *v9; // [xsp+30h] [xbp+30h]
v2 = *a1;
v7 = 0;
v8 = 0;
v9 = nullptr;
if ( (v2 & 1) != 0 )
{
std::string::__init(&v7, *((void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
v3 = *(_QWORD *)a1;
v4 = *((_QWORD *)a1 + 1);
v9 = *((void **)a1 + 2);
v7 = v3;
v8 = v4;
}
v5 = CreateParticlePopup::create(nullptr, nullptr, (char *)&v7);
if ( (v7 & 1) != 0 )
operator delete(v9);
return v5;
}