//
// ParticlePreviewLayer::init from 0xaff4e4 to 0xaff584 (160 bytes)
//
// 2 xrefs:
// > ParticlePreviewLayer::create @ 0xaff60c
// > ??> @ 0x56d88
//
// 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::init(ParticlePreviewLayer *this, cocos2d::CCParticleSystemQuad *a2)
{
unsigned __int8 v4; // w0
unsigned int v5; // w20
__int64 v6; // x3
_BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF
v8[0] = 0;
v8[1] = 0;
v8[2] = 0;
v8[3] = -1;
v4 = cocos2d::CCLayerColor::initWithColor(this, v8, 120.0, 180.0);
v5 = v4;
if ( v4 )
{
v6 = *(_QWORD *)this;
*((_QWORD *)this + 69) = a2;
(*(void (__fastcall **)(ParticlePreviewLayer *, cocos2d::CCParticleSystemQuad *, __int64))(v6 + 464))(this, a2, 100);
}
return v5;
}