//
// ParticlePreviewLayer::init from 0x665c1c to 0x665c72 (86 bytes)
//
// 1 xrefs:
// > ParticlePreviewLayer::create @ 0x665cea
//
// 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
//
int __fastcall ParticlePreviewLayer::init(ParticlePreviewLayer *this, cocos2d::CCParticleSystemQuad *a2, int a3)
{
int v5; // r6
int v6; // r3
_BYTE v8[4]; // [sp+0h] [bp-Ch] BYREF
cocos2d::CCParticleSystemQuad *v9; // [sp+4h] [bp-8h]
int v10; // [sp+8h] [bp-4h]
v9 = a2;
v10 = a3;
v8[0] = 0;
v8[1] = 0;
v8[2] = 0;
v8[3] = -1;
v5 = cocos2d::CCLayerColor::initWithColor(this, v8, 1123024896, 1127481344);
if ( v5 )
{
v6 = *(_DWORD *)this;
*((_DWORD *)this + 112) = a2;
(*(void (__fastcall **)(ParticlePreviewLayer *, cocos2d::CCParticleSystemQuad *, int))(v6 + 232))(this, a2, 100);
}
return v5;
}