//
// PlayerObject::reversePlayer from 0x34250c to 0x3425c2 (182 bytes)
//
// 5 xrefs:
// > PlayerObject::ringJump @ 0x34e102
// > GJBaseGameLayer::reverseDirection @ 0x46c29c
// > GJBaseGameLayer::reverseDirection @ 0x46c2b0
// > GJBaseGameLayer::bumpPlayer @ 0x49214a
// > GJBaseGameLayer::gravBumpPlayer @ 0x4921fc
//
// 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; // r0
float m_maybeReverseSpeed; // s14
const cocos2d::CCPoint *v5; // r10
float v6; // s14
float v7[2]; // [sp+4h] [bp-24h] BYREF
_BYTE v8[8]; // [sp+Ch] [bp-1Ch] BYREF
_BYTE v9[8]; // [sp+14h] [bp-14h] BYREF
cocos2d::CCPoint v10; // [sp+1Ch] [bp-Ch] BYREF
if ( !a1->m_isPlatformer )
{
if ( a2 && a1->m_reverseSync )
{
((void (__fastcall *)(_BYTE *))a2->getRealPosition)(v8);
v3 = a1->getPosition(a1);
m_maybeReverseSpeed = a1->m_maybeReverseSpeed;
v5 = v3;
cocos2d::CCPoint::CCPoint(&v10, m_maybeReverseSpeed, m_maybeReverseSpeed);
cocos2d::CCPoint::operator+(v9, v5, &v10);
cocos2d::CCPoint::operator-(v7, v8, v9);
if ( a1->m_isSideways )
v6 = v7[1];
else
v6 = v7[0];
a1->m_maybeReverseSpeed = a1->m_maybeReverseSpeed + (float)(v6 + v6);
}
PlayerObject::doReversePlayer(a1, !a1->m_isGoingLeft);
}
}