//
// CreateParticlePopup::create_2 from 0x10046e820 to 0x10046e879 (89 bytes)
//
// 0 xrefs:
//
// 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
//
char *__fastcall CreateParticlePopup::create_2(__int64 a1, double a2)
{
char *result; // rax
char *v3; // rbx
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_100006B70(&v4, *(const void **)(a1 + 16), *(_QWORD *)(a1 + 8), a2);
}
else
{
__p = *(void **)(a1 + 16);
v4 = *(_OWORD *)a1;
}
result = CreateParticlePopup::create(0, 0, &v4);
if ( (v4 & 1) != 0 )
{
v3 = result;
operator delete(__p);
return v3;
}
return result;
}