//
// PlayerObject::updateStreakBlend from 0x1002b60fc to 0x1002b6180 (132 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::togglePlayerStreakBlend @ 0x10028deb4
// > GJBaseGameLayer::togglePlayerStreakBlend @ 0x10028dec8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:02:23 +0000
//
__int64 __fastcall PlayerObject::updateStreakBlend(__int64 a1, int a2)
{
char v2; // w19
unsigned int v4; // w8
int8x8_t v5; // d0
__int64 v6; // x1
__int64 v7; // x0
int8x8_t v9; // [xsp+8h] [xbp-18h] BYREF
v2 = a2;
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;
v9 = v5;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1904) + 1024LL))(*(_QWORD *)(a1 + 1904), v6);
v7 = *(_QWORD *)(a1 + 1920);
*(_BYTE *)(v7 + 440) = v2 ^ 1;
return cocos2d::CCDrawNode::setBlendFunc(v7, &v9);
}