//
// CCPartAnimSprite::setBlendFunc from 0x2e6db4 to 0x2e6e30 (124 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x2e6e34
//
// 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)
{
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v4; // r7
cocos2d::CCObject **v5; // r4
int v6; // r0
int v7; // t1
a1->m_sBlendFunc = a2;
if ( a1->getChildren(a1) && a1->getChildren(a1)->data->num )
{
arr = a1->getChildren(a1)->data->arr;
v4 = a1->getChildren(a1)->data->arr;
v5 = &v4[a1->getChildren(a1)->data->num] + 0x3FFFFFFF;
while ( arr <= v5 )
{
v7 = (int)*arr++;
v6 = v7;
if ( !v7 )
break;
(*(void (__fastcall **)(int, GLenum, GLenum))(*(_DWORD *)v6 + 532))(v6, a2.src, a2.dst);
}
}
}