//
// cocos2d::CCParticleSystem::setBlendAdditive from 0x7e3114 to 0x7e3148 (52 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:51 +0000
//
cocos2d::CCTexture2D *__fastcall cocos2d::CCParticleSystem::setBlendAdditive(cocos2d::CCTexture2D *this, int a2)
{
cocos2d::CCTexture2D *v2; // r4
int v3; // r3
int v4; // r3
v2 = this;
if ( a2 )
{
*((_DWORD *)this + 147) = 770;
v3 = 1;
}
else
{
this = *((cocos2d::CCTexture2D **)this + 146);
if ( !this || (this = (cocos2d::CCTexture2D *)cocos2d::CCTexture2D::hasPremultipliedAlpha(this)) != nullptr )
v4 = 1;
else
v4 = 770;
*((_DWORD *)v2 + 147) = v4;
v3 = 771;
}
*((_DWORD *)v2 + 148) = v3;
return this;
}