//
// cocos2d::CCParticleSystem::updateBlendFunc from 0x5dac3e to 0x5dac82 (68 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
//
void cocos2d::CCParticleSystem::updateBlendFunc(cocos2d::CCParticleSystem *a1)
{
cocos2d::CCTexture2D *m_pTexture; // r0
_BOOL4 hasPremultipliedAlpha; // r0
m_pTexture = a1->m_pTexture;
if ( m_pTexture )
{
hasPremultipliedAlpha = cocos2d::CCTexture2D::hasPremultipliedAlpha(m_pTexture);
a1->m_bOpacityModifyRGB = 0;
if ( a1->m_pTexture )
{
if ( a1->m_tBlendFunc.src == 1 && a1->m_tBlendFunc.dst == 771 )
{
if ( hasPremultipliedAlpha )
{
a1->m_bOpacityModifyRGB = 1;
}
else
{
a1->m_tBlendFunc.dst = 771;
a1->m_tBlendFunc.src = 770;
}
}
}
}
}