//
// CCPartAnimSprite::setBlendFunc from 0x10007f46c to 0x10007f540 (212 bytes)
//
// 2 xrefs:
// > sub_10007F540 @ 0x10007f544
// > ??> @ 0x10077b608
//
// 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 *v4; // x21
__int64 v5; // x22
unsigned __int64 v6; // x20
a1->m_sBlendFunc = a2;
if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1)
&& **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )
{
v4 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
v5 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);
v6 = v5 + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) - 8;
while ( (unsigned __int64)v4 <= v6 && *v4 )
{
(*(void (__fastcall **)(_QWORD, cocos2d::ccBlendFunc))(*(_QWORD *)*v4 + 1064LL))(*v4, a2);
++v4;
}
}
}