//
// PlayerObject::updateStreakBlend from 0x33d058 to 0x33d0ba (98 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::togglePlayerStreakBlend @ 0x476678
// > GJBaseGameLayer::togglePlayerStreakBlend @ 0x476686
//
// 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 PlayerObject::updateStreakBlend(PlayerObject *a1, bool a2)
{
HardStreak *m_waveTrail; // r0
cocos2d::ccBlendFunc v5; // [sp+4h] [bp-10h] BYREF
v5.src = 770;
v5.dst = 771;
if ( a2 )
{
v5.src = 770;
v5.dst = 1;
}
((void (__fastcall *)(cocos2d::CCMotionStreak *, GLenum, GLenum))a1->m_regularTrail->setBlendFunc)(
a1->m_regularTrail,
v5.src,
v5.dst);
m_waveTrail = a1->m_waveTrail;
m_waveTrail->m_isSolid = !a2;
cocos2d::CCDrawNode::setBlendFunc(m_waveTrail, &v5);
}