//
// ParticlePreviewLayer::create from 0x1004674d0 to 0x1004675de (270 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x10046316b
//
// 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:30:29 +0000
//
_QWORD *__fastcall ParticlePreviewLayer::create(__int64 a1)
{
_QWORD *v1; // rbx
int v3[5]; // [rsp+Ch] [rbp-14h] BYREF
v1 = operator new(0x238u);
cocos2d::CCLayerColor::CCLayerColor(v1);
*v1 = off_100B448D0;
v1[40] = off_100B44DF8;
v1[41] = &off_100B44E68;
v1[42] = off_100B44E80;
v1[43] = off_100B44EA0;
v1[44] = off_100B44EC8;
v1[51] = off_100B44EF8;
v1[54] = off_100B44F78;
*((_DWORD *)v1 + 136) = 0;
v1[69] = 0;
*((_BYTE *)v1 + 560) = 1;
v3[0] = -16777216;
if ( (unsigned __int8)cocos2d::CCLayerColor::initWithColor_1(v1, v3) )
{
v1[69] = a1;
(*(void (__fastcall **)(_QWORD *, __int64, __int64, float, float))(*v1 + 464LL))(v1, a1, 100, 120.0, 180.0);
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(_QWORD *, float, float))(*v1 + 16LL))(v1, 120.0, 180.0);
return nullptr;
}
return v1;
}