//
// cocos2d::CCSprite::updateBlendFunc from 0xb15974 to 0xb159f4 (128 bytes)
//
// 80 xrefs:
// > ??> @ 0xae8a0
// > ??> @ 0x11363a0
// > ??> @ 0x1136950
// > ??> @ 0x11376d0
// > ??> @ 0x1139820
// > ??> @ 0x1139db0
// > ??> @ 0x113d030
// > ??> @ 0x113d650
// > ??> @ 0x113ea80
// > ??> @ 0x1142fb0
// > ??> @ 0x1143550
// > ??> @ 0x1144ea0
// > ??> @ 0x1145440
// > ??> @ 0x1149880
// > ??> @ 0x1152b90
// > ??> @ 0x1153380
// > ??> @ 0x1153960
// > ??> @ 0x1154130
// > ??> @ 0x1154930
// > ??> @ 0x1159bd0
// > ??> @ 0x11622e0
// > ??> @ 0x1162ae0
// > ??> @ 0x11632e0
// > ??> @ 0x1163ae0
// > ??> @ 0x11642e0
// > ??> @ 0x1164ae0
// > ??> @ 0x11652e0
// > ??> @ 0x1165ae0
// > ??> @ 0x11662b0
// > ??> @ 0x1166ab0
// > ??> @ 0x11672b0
// > ??> @ 0x1167ab0
// > ??> @ 0x11682b0
// > ??> @ 0x1168af0
// > ??> @ 0x11692f0
// > ??> @ 0x1169af0
// > ??> @ 0x116a2f0
// > ??> @ 0x116aaf0
// > ??> @ 0x116b300
// > ??> @ 0x116bb00
// > ??> @ 0x116c300
// > ??> @ 0x116cb00
// > ??> @ 0x116d300
// > ??> @ 0x116db00
// > ??> @ 0x116e300
// > ??> @ 0x116eb00
// > ??> @ 0x116f300
// > ??> @ 0x116fb00
// > ??> @ 0x1170300
// > ??> @ 0x1170b00
// > ??> @ 0x1171300
// > ??> @ 0x1171b00
// > ??> @ 0x1172300
// > ??> @ 0x1172b00
// > ??> @ 0x1173300
// > ??> @ 0x1173b00
// > ??> @ 0x1174300
// > ??> @ 0x1174b00
// > ??> @ 0x1175300
// > ??> @ 0x1175b00
// > ??> @ 0x1176300
// > ??> @ 0x1176b00
// > ??> @ 0x1177320
// > ??> @ 0x1179170
// > ??> @ 0x1179700
// > ??> @ 0x1192790
// > ??> @ 0x1194480
// > ??> @ 0x11a1050
// > ??> @ 0x11a15f0
// > ??> @ 0x11aab70
// > ??> @ 0x11b0530
// > ??> @ 0x11b2830
// > ??> @ 0x11d9f90
// > ??> @ 0x11ed840
// > ??> @ 0x11f7590
// > ??> @ 0x1202330
// > ??> @ 0x12028c0
// > ??> @ 0x1203420
// > ??> @ 0x12189d0
// > ??> @ 0x121a000
//
// 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 cocos2d::CCSprite::updateBlendFunc(cocos2d::CCSprite *a1)
{
cocos2d::CCTexture2D *m_pobTexture; // x0
cocos2d::CCSprite_vtbl *v3; // x1
cocos2d::CCSprite_vtbl *v4; // x2
m_pobTexture = a1->m_pobTexture;
if ( m_pobTexture && cocos2d::CCTexture2D::hasPremultipliedAlpha(m_pobTexture) )
{
v4 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_sBlendFunc.dst = 771;
a1->m_sBlendFunc.src = 1;
((void (__fastcall *)(cocos2d::CCSprite *))v4->setOpacityModifyRGB)(a1);
}
else
{
v3 = a1->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_sBlendFunc.src = 770;
a1->m_sBlendFunc.dst = 771;
v3->setOpacityModifyRGB(a1, 0);
}
}