//
// cocos2d::CCParticleSystem::setBlendFunc from 0xd6e4d8 to 0xd6e520 (72 bytes)
//
// 15 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleSystem::setBlendFunc @ 0xd6e524
// > ??> @ 0xa3450
// > ??> @ 0x1528120
// > ??> @ 0x15287e0
// > ??> @ 0x1528ea0
// > ??> @ 0x1529560
// > ??> @ 0x1529c20
// > ??> @ 0x152a2e0
// > ??> @ 0x152a9a0
// > ??> @ 0x152b060
// > ??> @ 0x152b720
// > ??> @ 0x152bde0
// > ??> @ 0x152c4a0
// > ??> @ 0x152cba0
// > ??> @ 0x152d690
//
// 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::setBlendFunc(__int64 *a1, unsigned __int64 a2)
{
__int64 v3; // x3
__int64 result; // x0
if ( *((_DWORD *)a1 + 168) != (_DWORD)a2 || (result = HIDWORD(a2), *((_DWORD *)a1 + 169) != HIDWORD(a2)) )
{
v3 = *a1;
a1[84] = a2;
return (*(__int64 (__fastcall **)(__int64 *))(v3 + 1640))(a1);
}
return result;
}