//
// cocos2d::CCParticleSystem::setBlendFunc from 0x18006b2b0 to 0x18006b2e4 (52 bytes)
//
// 15 xrefs:
// > ??> @ 0x180101288
// > ??> @ 0x180101908
// > ??> @ 0x180101f88
// > ??> @ 0x180102608
// > ??> @ 0x180102c88
// > ??> @ 0x180103308
// > ??> @ 0x180103988
// > ??> @ 0x180104008
// > ??> @ 0x180104688
// > ??> @ 0x180104d08
// > ??> @ 0x180105388
// > ??> @ 0x180105a50
// > ??> @ 0x1801066d8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bdf84
//
// 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:54 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::setBlendFunc(__int64 a1, unsigned __int64 a2)
{
__int64 result; // rax
__int64 v3; // rax
if ( *(_DWORD *)(a1 + 360) != (_DWORD)a2 || (result = HIDWORD(a2), *(_DWORD *)(a1 + 364) != HIDWORD(a2)) )
{
v3 = *(_QWORD *)(a1 - 320);
*(_QWORD *)(a1 + 360) = a2;
return (*(__int64 (__fastcall **)(__int64))(v3 + 1600))(a1 - 320);
}
return result;
}