//
// PlayerObject::resetStreak from 0x751c88 to 0x751da0 (280 bytes)
//
// 10 xrefs:
// > PlayerObject::toggleVisibility @ 0x7544f4
// > PlayerObject::toggleVisibility @ 0x754540
// > PlayerObject::levelFlipFinished @ 0x7545b4
// > PlayerObject::levelFlipFinished @ 0x7545cc
// > PlayerObject::resetObject @ 0x75e050
// > PlayerObject::loadFromCheckpoint @ 0x76bc88
// > MenuGameLayer::resetPlayer @ 0x7da610
// > GJBaseGameLayer::teleportPlayer @ 0x9e5b9c
// > GJBaseGameLayer::toggleDualMode @ 0x9e6c8c
// > ??> @ 0xfb548
//
// 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 12:52:55 +0000
//
__int64 __fastcall PlayerObject::resetStreak(cocos2d::CCMotionStreak **this)
{
__int64 v2; // x23
void (__fastcall *v3)(__int64, __int64 *); // x24
__int64 v4; // x25
__int64 v5; // x21
cocos2d::CCMotionStreak **v6; // x0
__int64 (__fastcall *v7)(cocos2d::CCMotionStreak **); // x1
void (__fastcall *v8)(__int64, __int64); // x20
__int64 v9; // x0
__int64 v11; // [xsp+68h] [xbp+68h] BYREF
_BYTE v12[8]; // [xsp+70h] [xbp+70h] BYREF
if ( !(unsigned __int8)PlayerObject::levelFlipping((PlayerObject *)this) )
{
cocos2d::CCMotionStreak::reset(*(this + 238));
v2 = (__int64)*(this + 238);
v3 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v2 + 184LL);
v4 = (*((__int64 (__fastcall **)(cocos2d::CCMotionStreak **))*this + 24))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, -5.0, 0.0);
cocos2d::CCPoint::operator+(&v11, v4);
v3(v2, &v11);
HardStreak::reset(*(this + 240));
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 240) + 912LL))(*(this + 240), 0xFFFFFFFFLL);
cocos2d::CCNode::stopAllActions(*(this + 240));
v5 = (__int64)*(this + 240);
v6 = this;
v7 = *((__int64 (__fastcall **)(cocos2d::CCMotionStreak **))*this + 24);
v8 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL);
v9 = v7(v6);
v8(v5, v9);
}
return _stack_chk_guard;
}