//
// PlayerObject::playerTeleported from 0x100415fd0 to 0x100416078 (168 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x100120f34
// > PlayerObject::rotateGameplay @ 0x100412775
//
// 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::playerTeleported(PlayerObject *a1)
{
__int64 v1; // rax
double v2; // xmm0_8
GameManager *v3; // rax
HardStreak *m_waveTrail; // r14
double *v5; // rax
cocos2d::CCPoint v6; // xmm0_8
_QWORD v7[4]; // [rsp+0h] [rbp-20h] BYREF
v7[0] = v1;
a1->m_isOnGround2 = 0;
v2 = sub_10028CC90(&a1->m_lastGroundedPos, &dbl_1009A1558);
if ( !a1->m_maybeReducedEffects && a1->m_isDart && !a1->m_isLocked && a1->m_fadeOutStreak )
{
if ( !a1->m_playEffects || (v3 = GameManager::sharedState(), !GJBaseGameLayer::isFlipping(v3->m_playLayer)) )
{
m_waveTrail = a1->m_waveTrail;
v5 = (double *)((__int64 (__fastcall *)(PlayerObject *, double))a1->getPosition)(a1, v2);
*(double *)&v6 = sub_10028CC60(v7, v5);
HardStreak::addPoint(m_waveTrail, v6);
}
}
a1->m_justPlacedStreak = 0;
}