//
// cocos2d::extension::CCScale9Sprite::setBlendAdditive from 0x7ac9cc to 0x7aca0a (62 bytes)
//
// 3 xrefs:
// > AchievementBar::init @ 0x537288
// > GauntletNode::showUnlockAnimation @ 0x60a36a
// > GauntletNode::onUnlock @ 0x60d8da
//
// 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:03 +0000
//
int __fastcall cocos2d::extension::CCScale9Sprite::setBlendAdditive(cocos2d::extension::CCScale9Sprite *this, int a2)
{
bool v2; // zf
int v3; // r2
int v4; // r1
int v5; // r0
v2 = a2 == 0;
v3 = 770;
if ( !a2 )
v3 = 1;
v4 = 771;
v5 = *((_DWORD *)this + 93);
if ( !v2 )
v4 = 1;
return (*(int (__fastcall **)(int, int, int, void *, int, int))(*(_DWORD *)v5 + 456))(v5, v3, v4, &unk_BF1640, v3, v4);
}