//
// cocos2d::CCParticleSystem::updateBlendFunc from 0x18006c260 to 0x18006c2cb (107 bytes)
//
// 15 xrefs:
// > ??> @ 0x180101270
// > ??> @ 0x1801018f0
// > ??> @ 0x180101f70
// > ??> @ 0x1801025f0
// > ??> @ 0x180102c70
// > ??> @ 0x1801032f0
// > ??> @ 0x180103970
// > ??> @ 0x180103ff0
// > ??> @ 0x180104670
// > ??> @ 0x180104cf0
// > ??> @ 0x180105370
// > ??> @ 0x180105a40
// > ??> @ 0x1801066c8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bdfb4
//
// This function is hookable on this platform (idp: pc, 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 11:21:55 +0000
//
void __fastcall cocos2d::CCParticleSystem::updateBlendFunc(cocos2d::CCParticleSystem *this)
{
cocos2d::CCCamera *v2; // rcx
char isDirty; // al
bool v4; // zf
v2 = *((cocos2d::CCCamera **)this + 84);
if ( v2 )
{
isDirty = cocos2d::CCCamera::isDirty(v2);
v4 = *((_QWORD *)this + 84) == 0;
*((_BYTE *)this + 688) = 0;
if ( !v4 && *((_DWORD *)this + 170) == 1 && *((_DWORD *)this + 171) == 771 )
{
if ( isDirty )
{
*((_BYTE *)this + 688) = 1;
}
else
{
*((_DWORD *)this + 170) = 770;
*((_DWORD *)this + 171) = 771;
}
}
}
}