//
// cocos2d::CCParticleSystem::updateBlendFunc from 0x1008b2700 to 0x1008b276a (106 bytes)
//
// 13 xrefs:
// > ??> @ 0x100b47c68
// > ??> @ 0x100b48338
// > ??> @ 0x100b48a08
// > ??> @ 0x100b490d8
// > ??> @ 0x100b497a8
// > ??> @ 0x100b49e78
// > ??> @ 0x100b4a548
// > ??> @ 0x100b4ac18
// > ??> @ 0x100b4b2e8
// > ??> @ 0x100b4b9b8
// > ??> @ 0x100b4c088
// > ??> @ 0x100b91f90
// > ??> @ 0x100baccb0
//
// 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 12:37:21 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::updateBlendFunc(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdi
v3 = *(_QWORD *)(a1 + 664);
if ( v3 )
{
result = cocos2d::CCTexture2D::hasPremultipliedAlpha(v3);
*(_BYTE *)(a1 + 680) = 0;
if ( *(_QWORD *)(a1 + 664) )
{
if ( *(_DWORD *)(a1 + 672) == 1 && *(_DWORD *)(a1 + 676) == 771 )
{
if ( (_BYTE)result )
{
*(_BYTE *)(a1 + 680) = 1;
}
else
{
*(_QWORD *)(a1 + 672) = 0x30300000302LL;
return 0x30300000302LL;
}
}
}
}
return result;
}