//
// PlayerObject::reversePlayer from 0x62a40c to 0x62a520 (276 bytes)
//
// 6 xrefs:
// > PlayerObject::ringJump @ 0x63be94
// > GJBaseGameLayer::reverseDirection @ 0x8559b0
// > GJBaseGameLayer::reverseDirection @ 0x8559d8
// > GJBaseGameLayer::bumpPlayer @ 0x88b4e0
// > GJBaseGameLayer::gravBumpPlayer @ 0x88b660
// > ??> @ 0x4ff98
//
// 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 PlayerObject::reversePlayer(PlayerObject *a1, EffectGameObject *a2)
{
const cocos2d::CCPoint *v3; // x24
float m_maybeReverseSpeed; // s0
float v5; // s0
__int64 v6; // [xsp+58h] [xbp+58h] BYREF
__int64 v7; // [xsp+60h] [xbp+60h] BYREF
__int64 v8; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCPoint v9; // [xsp+70h] [xbp+70h] BYREF
if ( !a1->m_isPlatformer )
{
if ( a2 && a1->m_reverseSync )
{
((void (__fastcall *)(__int64 *__return_ptr, EffectGameObject *))a2->getRealPosition)(&v7, a2);
v3 = a1->getPosition(a1);
m_maybeReverseSpeed = a1->m_maybeReverseSpeed;
cocos2d::CCPoint::CCPoint(&v9, m_maybeReverseSpeed, m_maybeReverseSpeed);
cocos2d::CCPoint::operator+(&v8, v3, &v9);
cocos2d::CCPoint::operator-(&v6, &v7, &v8);
if ( a1->m_isSideways )
v5 = *((float *)&v6 + 1) + *((float *)&v6 + 1);
else
v5 = *(float *)&v6 + *(float *)&v6;
a1->m_maybeReverseSpeed = a1->m_maybeReverseSpeed + v5;
}
PlayerObject::doReversePlayer(a1, !a1->m_isGoingLeft);
}
}