//
// CCPartAnimSprite::setBlendFunc from 0x1003752c0 to 0x100375376 (182 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091db28
//
// 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 __fastcall CCPartAnimSprite::setBlendFunc(CCPartAnimSprite *a1, cocos2d::ccBlendFunc a2)
{
_QWORD *v2; // r15
__int64 v3; // r12
unsigned __int64 i; // r14
a1->m_sBlendFunc = a2;
if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) )
{
if ( **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )
{
v2 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
v3 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
for ( i = v3
+ 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56)
- 8; (unsigned __int64)v2 <= i; ++v2 )
{
if ( !*v2 )
break;
(*(void (__fastcall **)(_QWORD, cocos2d::ccBlendFunc))(*(_QWORD *)*v2 + 1064LL))(*v2, a2);
}
}
}
}