//
// cocos2d::CCSprite::updateBlendFunc from 0x7f135c to 0x7f13a4 (72 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:01:04 +0000
//
int __fastcall cocos2d::CCSprite::updateBlendFunc(cocos2d::CCSprite *this)
{
cocos2d::CCTexture2D *v2; // r0
int v3; // r3
cocos2d::CCSprite *v4; // r0
int (__fastcall *v5)(cocos2d::CCSprite *); // r3
v2 = *((cocos2d::CCTexture2D **)this + 83);
if ( v2 && cocos2d::CCTexture2D::hasPremultipliedAlpha(v2) )
{
*((_DWORD *)this + 82) = 771;
v3 = *(_DWORD *)this;
v4 = this;
*((_DWORD *)this + 81) = 1;
v5 = *(int (__fastcall **)(cocos2d::CCSprite *))(v3 + 496);
}
else
{
*((_DWORD *)this + 81) = 770;
*((_DWORD *)this + 82) = 771;
v4 = this;
v5 = *(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)this + 496);
}
return v5(v4);
}