//
// CCPartAnimSprite::setBlendFunc from 0x576bb0 to 0x576c90 (224 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x576c94
// > ??> @ 0x54330
// > ??> @ 0x1139798
//
// 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
//
void CCPartAnimSprite::setBlendFunc(CCPartAnimSprite *a1, cocos2d::ccBlendFunc a2)
{
GLenum dst; // w2
CCPartAnimSprite_vtbl *v4; // x1
cocos2d::CCObject **arr; // x19
cocos2d::ccArray *data; // x2
CCPartAnimSprite_vtbl *v8; // x1
CCPartAnimSprite *v9; // x0
cocos2d::CCObject **v10; // x20
unsigned __int64 v11; // x20
cocos2d::CCObject *v12; // x0
dst = a2.dst;
v4 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_sBlendFunc.src = a2.src;
a1->m_sBlendFunc.dst = dst;
if ( ((__int64 (*)(void))v4->getChildren)() )
{
if ( a1->getChildren(a1)->data->num )
{
arr = a1->getChildren(a1)->data->arr;
data = a1->getChildren(a1)->data;
v8 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v9 = a1;
v10 = data->arr;
v11 = (unsigned __int64)&v10[v8->getChildren(v9)->data->num - 1];
while ( v11 >= (unsigned __int64)arr )
{
v12 = *arr;
if ( !*arr )
break;
++arr;
((void (__fastcall *)(cocos2d::CCObject *, cocos2d::ccBlendFunc))v12->__vftable[13].isEqual)(v12, a2);
}
}
}
}