//
// PlayerObject::updateStreakBlend from 0x10021963c to 0x1002196c0 (132 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::togglePlayerStreakBlend @ 0x1001f23dc
// > GJBaseGameLayer::togglePlayerStreakBlend @ 0x1001f23f0
//
// 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 PlayerObject::updateStreakBlend(PlayerObject *a1, bool a2)
{
unsigned int v4; // w8
int8x8_t v5; // d0
__int64 v6; // x1
HardStreak *m_waveTrail; // x0
int8x8_t v8; // [xsp+8h] [xbp-18h] BYREF
if ( a2 )
v4 = -1;
else
v4 = 0;
v5 = vbsl_s8((int8x8_t)vdup_n_s32(v4), (int8x8_t)0x100000302LL, (int8x8_t)0x30300000302LL);
if ( a2 )
v6 = 0x100000302LL;
else
v6 = 0x30300000302LL;
v8 = v5;
((void (__fastcall *)(cocos2d::CCMotionStreak *, __int64))a1->m_regularTrail->setBlendFunc)(a1->m_regularTrail, v6);
m_waveTrail = a1->m_waveTrail;
m_waveTrail->m_isSolid = !a2;
cocos2d::CCDrawNode::setBlendFunc(m_waveTrail, (const cocos2d::ccBlendFunc *)&v8);
}