//
// cocos2d::CCParticleSystem::updateBlendFunc from 0x18006a0d0 to 0x18006a13b (107 bytes)
//
// 15 xrefs:
// > ??> @ 0x1800fad30
// > ??> @ 0x1800fb3a0
// > ??> @ 0x1800fba10
// > ??> @ 0x1800fc080
// > ??> @ 0x1800fc6f0
// > ??> @ 0x1800fcd60
// > ??> @ 0x1800fd3d0
// > ??> @ 0x1800fda40
// > ??> @ 0x1800fe0b0
// > ??> @ 0x1800fe720
// > ??> @ 0x1800fed90
// > ??> @ 0x1800ff5d8
// > ??> @ 0x180100078
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3c6c
//
// 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 cocos2d::CCParticleSystem::updateBlendFunc(cocos2d::CCParticleSystem *this)
{
cocos2d::CCCamera *m_pTexture; // rcx
bool isDirty; // al
bool v4; // zf
m_pTexture = (cocos2d::CCCamera *)this->m_pTexture;
if ( m_pTexture )
{
isDirty = cocos2d::CCCamera::isDirty(m_pTexture);
v4 = this->m_pTexture == nullptr;
this->m_bOpacityModifyRGB = 0;
if ( !v4 && this->m_tBlendFunc.src == 1 && this->m_tBlendFunc.dst == 771 )
{
if ( isDirty )
{
this->m_bOpacityModifyRGB = 1;
}
else
{
this->m_tBlendFunc.src = 770;
this->m_tBlendFunc.dst = 771;
}
}
}
}