//
// ParticleGameObject::updateParticlePreviewArtOpacity from 0x1001b2680 to 0x1001b26f8 (120 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1000dff79
// > LevelEditorLayer::updatePreviewParticle @ 0x1000ea1f0
// > LevelEditorLayer::updatePreviewParticles @ 0x1000ee83e
//
// 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
//
void __fastcall ParticleGameObject::updateParticlePreviewArtOpacity(ParticleGameObject *a1, float a2)
{
__int64 v2; // rax
cocos2d::CCSprite *m_colorSprite; // rdi
__int64 v4; // rax
v2 = ((__int64 (__fastcall *)(ParticleGameObject *, __int64))a1->getChildByTag)(a1, 1);
if ( v2 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 896LL))(v2, (unsigned __int8)(int)a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
{
v4 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))m_colorSprite->getChildByTag)(m_colorSprite, 1);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 896LL))(v4, (unsigned __int8)(int)a2);
}
}