//
// cocos2d::CCParticleSystem::setBlendFunc from 0x180069130 to 0x180069160 (48 bytes)
//
// 15 xrefs:
// > ??> @ 0x1800fad48
// > ??> @ 0x1800fb3b8
// > ??> @ 0x1800fba28
// > ??> @ 0x1800fc098
// > ??> @ 0x1800fc708
// > ??> @ 0x1800fcd78
// > ??> @ 0x1800fd3e8
// > ??> @ 0x1800fda58
// > ??> @ 0x1800fe0c8
// > ??> @ 0x1800fe738
// > ??> @ 0x1800feda8
// > ??> @ 0x1800ff5e8
// > ??> @ 0x180100088
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3c3c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall cocos2d::CCParticleSystem::setBlendFunc(
cocos2d::CCParticleSystem *this,
struct cocos2d::_ccBlendFunc a2)
{
__int64 result; // rax
if ( LODWORD(this->m_fElapsed) != a2.src || (result = a2.dst, LODWORD(this->modeA.gravity.x) != a2.dst) )
{
*(struct cocos2d::_ccBlendFunc *)&this->m_fElapsed = a2;
return (*(__int64 (__fastcall **)(char *))(*((_QWORD *)this - 40) + 1584LL))((char *)this - 320);
}
return result;
}