//
// cocos2d::CCSpriteBatchNode::updateBlendFunc from 0x1001559c0 to 0x100155a04 (68 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:25:04 +0000
//
__int64 __fastcall cocos2d::CCSpriteBatchNode::updateBlendFunc(__int64 a1)
{
__int64 v1; // rax
bool v2; // zf
__int64 result; // rax
int v4; // ecx
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 96LL))(*(_QWORD *)(a1 + 328));
v2 = (unsigned __int8)cocos2d::CCTexture2D::hasPremultipliedAlpha(v1) == 0;
result = 1;
v4 = 770;
if ( !v2 )
v4 = 1;
*(_DWORD *)(a1 + 336) = v4;
*(_DWORD *)(a1 + 340) = 771;
return result;
}