//
// ParticlePreviewLayer::init from 0x1004776a0 to 0x1004776fd (93 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall ParticlePreviewLayer::init(ParticlePreviewLayer *a1, cocos2d::CCParticleSystemQuad *a2)
{
bool result; // al
bool v3; // bl
int v4; // [rsp+Ch] [rbp-14h] BYREF
v4 = -16777216;
result = cocos2d::CCLayerColor::initWithColor_1(a1, (const cocos2d::ccColor4B *)&v4, 120.0, 180.0);
if ( result )
{
a1->m_particleSystem = a2;
v3 = result;
((void (__fastcall *)(ParticlePreviewLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, a2, 100);
return v3;
}
return result;
}