//
// ParticlePreviewLayer::create from 0x665c80 to 0x665d12 (146 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x6676cc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:40 +0000
//
cocos2d::CCLayerColor *__fastcall ParticlePreviewLayer::create(
ParticlePreviewLayer *this,
cocos2d::CCParticleSystemQuad *a2)
{
cocos2d::CCLayerColor *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (cocos2d::CCLayerColor *)operator new(0x1C8u);
cocos2d::CCLayerColor::CCLayerColor(v3);
*(_DWORD *)v3 = &off_CD1F98;
*((_DWORD *)v3 + 66) = &off_CD222C;
*((_DWORD *)v3 + 67) = &off_CD2264;
*((_DWORD *)v3 + 68) = &off_CD2270;
*((_DWORD *)v3 + 69) = &off_CD2280;
*((_DWORD *)v3 + 70) = &off_CD2294;
*((_DWORD *)v3 + 79) = &off_CD22AC;
*((_DWORD *)v3 + 83) = &off_CD22EC;
*((_DWORD *)v3 + 110) = 0;
*((_DWORD *)v3 + 112) = 0;
*((_BYTE *)v3 + 452) = 1;
if ( ParticlePreviewLayer::init(v3, this, (int)&off_CD22AC) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}