//
// CCPartAnimSprite::setBlendFunc from 0x3c6f60 to 0x3c6fdc (124 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCPartAnimSprite::setBlendFunc @ 0x3c6fe0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:35 +0000
//
_DWORD **__fastcall CCPartAnimSprite::setBlendFunc(_DWORD *a1, int a2, int a3)
{
_DWORD **result; // r0
_DWORD *v5; // r5
int v6; // r7
unsigned int v7; // r4
_DWORD **v8; // t1
a1[81] = a2;
a1[82] = a3;
result = (_DWORD **)(*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1);
if ( result )
{
result = (_DWORD **)(*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1);
if ( *result[13] )
{
v5 = *(_DWORD **)(*(_DWORD *)((*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1) + 52) + 12);
v6 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1) + 52) + 12);
result = (_DWORD **)(*(int (__fastcall **)(_DWORD *))(*a1 + 244))(a1);
v7 = v6 + 4 * (*result[13] + 0x3FFFFFFF);
while ( (unsigned int)v5 <= v7 )
{
v8 = (_DWORD **)*v5++;
result = v8;
if ( !v8 )
break;
result = (_DWORD **)((int (__fastcall *)(_DWORD **, int, int))(*result)[135])(result, a2, a3);
}
}
}
return result;
}