//
// PlayerObject::refreshStreakState from 0x1404fe750 to 0x1404fe7b8 (104 bytes)
//
// 3 xrefs:
// > PlayLayer::resume @ 0x14051ac64
// > PlayLayer::resume @ 0x14051ac79
// > ??> @ 0x14092a620
//
// This function is hookable on this platform (idp: pc, 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:33:23 +0000
//
void __fastcall PlayerObject::refreshStreakState(__int64 a1)
{
bool v2; // zf
if ( PlayerObject::streakDisabledForCurrentMode(a1) )
{
cocos2d::CCMotionStreak::stopStroke(*(cocos2d::CCMotionStreak **)(a1 + 1960));
if ( *(_BYTE *)(a1 + 2432) )
{
v2 = *(_BYTE *)(a1 + 2028) == 0;
*(_BYTE *)(a1 + 2432) = 0;
if ( v2 )
PlayerObject::fadeOutStreak2(a1, 0.60000002);
else
PlayerObject::fadeOutStreak2(a1, 0.2);
}
}
}