//
// ParticlePreviewLayer::create from 0xaff58c to 0xaff668 (220 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0xb01770
// > ??> @ 0x64738
//
// 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:19 +0000
//
__int64 __fastcall ParticlePreviewLayer::create(ParticlePreviewLayer *this, cocos2d::CCParticleSystemQuad *a2)
{
__int64 v3; // x19
v3 = operator new(0x238u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
*(_DWORD *)(v3 + 544) = 0;
*(_QWORD *)v3 = &off_14B0580;
*(_QWORD *)(v3 + 432) = &off_14B0C28;
*(_QWORD *)(v3 + 320) = off_14B0AA8;
*(_QWORD *)(v3 + 328) = &off_14B0B18;
*(_QWORD *)(v3 + 336) = off_14B0B30;
*(_QWORD *)(v3 + 344) = off_14B0B50;
*(_QWORD *)(v3 + 352) = off_14B0B78;
*(_QWORD *)(v3 + 408) = &off_14B0BA8;
*(_QWORD *)(v3 + 552) = 0;
*(_BYTE *)(v3 + 560) = 1;
if ( (unsigned __int8)ParticlePreviewLayer::init((ParticlePreviewLayer *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}