//
// cocos2d::CCParticleSystem::updateBlendFunc from 0xd6e7a4 to 0xd6e824 (128 bytes)
//
// 14 xrefs:
// > ??> @ 0xf9bf8
// > ??> @ 0x1528188
// > ??> @ 0x1528848
// > ??> @ 0x1528f08
// > ??> @ 0x15295c8
// > ??> @ 0x1529c88
// > ??> @ 0x152a348
// > ??> @ 0x152aa08
// > ??> @ 0x152b0c8
// > ??> @ 0x152b788
// > ??> @ 0x152be48
// > ??> @ 0x152c508
// > ??> @ 0x152cc08
// > ??> @ 0x152d6f8
//
// This function is hookable on this platform (idp: arm, 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 13:07:58 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::updateBlendFunc(cocos2d::CCParticleSystem *this)
{
__int64 result; // x0
result = *((_QWORD *)this + 83);
if ( result )
{
LOBYTE(result) = cocos2d::CCTexture2D::hasPremultipliedAlpha((cocos2d::CCTexture2D *)result);
*((_BYTE *)this + 680) = 0;
result = (unsigned __int8)result;
if ( *((_QWORD *)this + 83) )
{
if ( *((_QWORD *)this + 84) == 0x30300000001LL )
{
if ( (_BYTE)result )
{
*((_BYTE *)this + 680) = 1;
return 1;
}
else
{
*((_DWORD *)this + 168) = 770;
result = 771;
*((_DWORD *)this + 169) = 771;
}
}
}
}
return result;
}