//
// CreateParticlePopup::create from 0x10046e5b0 to 0x10046e7ea (570 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::create_1 @ 0x10046e5a2
// > CreateParticlePopup::create_2 @ 0x10046e858
//
// 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(__int64 a1, __int64 a2, __int128 *a3)
{
char *v4; // rbx
char v5; // r14
__int128 v7; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v4 = (char *)operator new(0x3B0u);
cocos2d::CCLayerColor::CCLayerColor(v4);
*((_QWORD *)v4 + 72) = 0;
*((_DWORD *)v4 + 146) = 0;
v4[588] = 0;
*((_OWORD *)v4 + 34) = 0;
*(_OWORD *)(v4 + 553) = 0;
*((_OWORD *)v4 + 37) = 0;
*((_QWORD *)v4 + 76) = 0;
*((_DWORD *)v4 + 154) = -1;
*((_WORD *)v4 + 310) = 0;
*((_DWORD *)v4 + 156) = -1;
v4[628] = 0;
*(_QWORD *)v4 = off_100939F88;
*((_QWORD *)v4 + 40) = off_10093A4E0;
*((_QWORD *)v4 + 41) = &off_10093A550;
*((_QWORD *)v4 + 42) = off_10093A568;
*((_QWORD *)v4 + 43) = off_10093A588;
*((_QWORD *)v4 + 44) = off_10093A5A8;
*((_QWORD *)v4 + 51) = off_10093A5D0;
*((_QWORD *)v4 + 54) = off_10093A650;
*((_QWORD *)v4 + 79) = off_10093A670;
*((_QWORD *)v4 + 80) = &off_10093A6B8;
*((_QWORD *)v4 + 81) = off_10093A6D0;
*(_OWORD *)(v4 + 665) = 0;
*((_OWORD *)v4 + 41) = 0;
*((_OWORD *)v4 + 43) = 0;
*((_DWORD *)v4 + 176) = -1;
sub_10028CC30(v4 + 708);
*((_QWORD *)v4 + 94) = 0;
v4[912] = 0;
*((_OWORD *)v4 + 45) = 0;
*((_QWORD *)v4 + 92) = 0;
*(_OWORD *)(v4 + 776) = 0;
*(_OWORD *)(v4 + 792) = 0;
*(_OWORD *)(v4 + 808) = 0;
*(_OWORD *)(v4 + 824) = 0;
*((_QWORD *)v4 + 105) = 0;
*(_OWORD *)(v4 + 916) = 0;
*(_QWORD *)(v4 + 932) = 0;
*((_DWORD *)v4 + 235) = -1082130432;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
sub_100006B70(&v7, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), 0.0);
}
else
{
__p = *((void **)a3 + 2);
v7 = *a3;
}
v5 = CreateParticlePopup::init(v4, a1, a2, &v7);
if ( (v7 & 1) != 0 )
operator delete(__p);
if ( v5 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}