//
// CCPartAnimSprite::setBlendFunc from 0x140046760 to 0x14004682d (205 bytes)
//
// 4 xrefs:
// > ??> @ 0x14052ff88
// > ??> @ 0x140662c30
// > ??> @ 0x140662c40
// > ??> @ 0x1406c4800
//
// 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)
{
char *p_m_nUpdateScriptHandler; // r14
unsigned __int64 v4; // rdi
__int64 v5; // rsi
unsigned __int64 i; // rsi
p_m_nUpdateScriptHandler = (char *)&a1[-1].m_nUpdateScriptHandler;
*(cocos2d::ccBlendFunc *)&a1->m_fRotationY = a2;
if ( (*(__int64 (__fastcall **)(int *))(*(_QWORD *)&a1[-1].m_nUpdateScriptHandler + 464LL))(&a1[-1].m_nUpdateScriptHandler) )
{
if ( **(_DWORD **)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)p_m_nUpdateScriptHandler + 464LL))(p_m_nUpdateScriptHandler)
+ 56) )
{
v4 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)p_m_nUpdateScriptHandler + 464LL))(p_m_nUpdateScriptHandler)
+ 56)
+ 16LL);
v5 = 8LL
* **(unsigned int **)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)p_m_nUpdateScriptHandler + 464LL))(p_m_nUpdateScriptHandler)
+ 56);
for ( i = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(char *))(*(_QWORD *)p_m_nUpdateScriptHandler + 464LL))(p_m_nUpdateScriptHandler)
+ 56)
+ 16LL)
- 8LL
+ v5; v4 <= i; v4 += 8LL )
{
if ( !*(_QWORD *)v4 )
break;
(**(void (__fastcall ***)(__int64, cocos2d::ccBlendFunc))(*(_QWORD *)v4 + 344LL))(*(_QWORD *)v4 + 344LL, a2);
}
}
}
}