//
// PlayerObject::saveToCheckpoint from 0x63a210 to 0x63a8c0 (1712 bytes)
//
// 3 xrefs:
// > PlayLayer::createCheckpoint @ 0x5e30fc
// > PlayLayer::createCheckpoint @ 0x5e3fa0
// > ??> @ 0x331b0
//
// 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::saveToCheckpoint(PlayerObject *a1, PlayerCheckpoint *a2)
{
const cocos2d::CCPoint *v4; // x0
float v5; // s0
float v6; // s1
float v7; // s0
float v8; // s1
double m_yVelocity; // x2
float m_vehicleSize; // s1
GhostType m_ghostType; // w4
float m_playerSpeed; // w3
double m_maybeReverseSpeed; // x2
int m_followRelated; // w4
double m_lastFlipTime; // x3
double m_snapDistance; // x3
double m_accelerationOrSpeed; // x2
bool m_wasOnSlope; // w5
float m_slopeVelocity; // w1
bool m_isOnSlope; // w4
_BOOL4 m_isDashing; // w0
double m_dashAngle; // x0
DashRingObject *m_dashRing; // x1
double m_dashY; // x0
float v25; // s0
double m_yVelocityBeforeSlope; // x14
bool m_fixGravityBug; // w16
double m_slopeStartTime; // x12
bool m_reverseSync; // w15
float m_slopeAngle; // w3
bool m_justPlacedStreak; // w13
int m_lastCollisionBottom; // w11
int m_lastCollisionTop; // w10
int m_lastCollisionLeft; // w9
int m_lastCollisionRight; // w8
int m_unk50C; // w7
int m_unk510; // w6
GameObject *m_currentSlope2; // x5
GameObject *m_preLastGroundObject; // x4
bool m_slopeSlidingMaybeRotated; // w2
bool m_quickCheckpointMode; // w17
double m_scaleXRelated2; // x12
GameObject *m_collidedObject; // x16
double m_groundYVelocity; // x10
GameObject *m_lastGroundObject; // x15
double m_yVelocityRelated; // x8
GameObject *m_collidingWithLeft; // x14
double m_scaleXRelated3; // x6
GameObject *m_collidingWithRight; // x13
double m_scaleXRelated4; // x4
double m_scaleXRelated5; // x2
double unk_584; // x15
double m_speedMultiplier; // x7
double m_yStart; // x2
double m_gravity; // x5
double m_gameModeChangedTime; // x3
float m_rotationSpeed; // w11
float m_rotateSpeed; // w9
double m_lastSpiderFlipTime; // x2
double m_slopeRotation; // x16
bool m_unk3e0; // w17
double m_currentSlopeYVelocity; // x14
bool m_unk3e1; // w15
double m_unk3d0; // x8
double m_blackOrbRelated; // x7
bool m_isAccelerating; // w13
double m_collidedTopMinY; // x6
bool m_isCurrentSlopeTop; // w11
double m_collidedBottomMaxY; // x5
bool m_wasJumpBuffered; // w9
double m_collidedLeftMaxX; // x4
bool m_wasRobotJump; // w2
double m_collidedRightMinX; // x3
float m_landParticlesAngle; // w12
float m_landParticleRelatedY; // w10
double v76; // x5
double m_fallSpeed; // x4
bool m_stateRingJump2; // w13
double m_maybeReverseAcceleration; // x3
float m_xVelocityRelated2; // w2
bool m_touchedCustomRing; // w11
bool m_maybeTouchedBreakableBlock; // w9
float v83; // s0
float v84; // s1
float v85; // s0
float v86; // s1
double m_lastLandTime; // x4
double m_scaleXRelatedTime; // x2
bool m_maybeIsBoosted; // w8
float m_unkUnused3; // w5
bool m_isLocked; // w7
float m_platformerVelocityRelated; // w3
bool m_controlsDisabled; // w6
float v94; // s0
float v95; // s1
cocos2d::CCArray *m_touchingRings; // x0
cocos2d::ccArray *data; // x0
cocos2d::CCObject **arr; // x21
cocos2d::CCObject **v99; // x22
cocos2d::CCObject *v100; // x1
double m_totalTime; // x6
GameObject *m_lastActivatedPortal; // x18
double m_platformerXVelocity; // x3
bool m_defaultMiniIcon; // w17
float m_yVelocityRelated3; // w5
bool m_swapColors; // w16
int v107; // w4
bool m_switchDashFireColor; // w15
double m_scaleXRelated; // x2
int m_stateOnGround; // w14
int m_stateBoostX; // w13
int m_stateBoostY; // w12
int m_maybeStateForce2; // w11
int m_stateScale; // w10
bool m_holdingRight; // w9
bool m_holdingLeft; // w8
double m_maybeSlopeForce; // x7
bool m_maybeGoingCorrectSlopeDirection; // w17
double m_physDeltaRelated; // x6
bool m_isSliding; // w16
double m_maybeSlidingStartTime; // x5
bool m_isOnIce; // w15
double m_changedDirectionsTime; // x4
double m_slopeEndTime; // x3
int m_maybeSlidingTime; // w13
float m_xVelocityRelated; // w8
double m_maybeChangedDirectionAngle; // x2
double m_unkUnused2; // x2
float v129; // s0
float v130; // s1
cocos2d::CCPoint v131; // [xsp+40h] [xbp+40h] BYREF
v4 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint(&v131, v4);
cocos2d::CCPoint::operator=(&a2->m_position, v5, v6);
cocos2d::CCPoint::CCPoint(&v131, &a1->m_lastPosition);
cocos2d::CCPoint::operator=(&a2->m_lastPosition, v7, v8);
m_yVelocity = a1->m_yVelocity;
a2->m_isUpsideDown = a1->m_isUpsideDown;
m_vehicleSize = a1->m_vehicleSize;
m_ghostType = a1->m_ghostType;
a2->m_isSideways = a1->m_isSideways;
a2->m_isShip = a1->m_isShip;
a2->m_isBall = a1->m_isBall;
m_playerSpeed = a1->m_playerSpeed;
a2->m_isBird = a1->m_isBird;
a2->m_yVelocityUnrounded = m_yVelocity;
a2->m_isDart = a1->m_isDart;
m_maybeReverseSpeed = a1->m_maybeReverseSpeed;
a2->m_isRobot = a1->m_isRobot;
a2->m_isSpider = a1->m_isSpider;
a2->m_isSwing = a1->m_isSwing;
a2->m_isOnGround = a1->m_isOnGround;
a2->m_isMini = m_vehicleSize != 1.0;
a2->m_ghostType = m_ghostType;
a2->m_isHidden = a1->m_isHidden;
a2->m_playerSpeed = m_playerSpeed;
a2->m_isGoingLeft = a1->m_isGoingLeft;
a2->m_maybeReverseSpeed = m_maybeReverseSpeed;
*(float *)&m_maybeReverseSpeed = a1->m_gravityMod;
m_followRelated = a1->m_followRelated;
m_lastFlipTime = a1->m_lastFlipTime;
a2->m_decreaseBoostSlide = a1->m_decreaseBoostSlide;
a2->m_gravityMod = *(float *)&m_maybeReverseSpeed;
*(float *)&m_maybeReverseSpeed = a1->m_unk838;
a2->m_followRelated = m_followRelated;
a2->m_lastFlipTime = m_lastFlipTime;
a2->m_unk838 = *(float *)&m_maybeReverseSpeed;
std::vector::operator=((__int64)&a2->m_playerFollowFloats, (char **)&a1->m_playerFollowFloats);
m_snapDistance = a1->m_snapDistance;
m_accelerationOrSpeed = a1->m_accelerationOrSpeed;
m_wasOnSlope = a1->m_wasOnSlope;
m_slopeVelocity = a1->m_slopeVelocity;
m_isOnSlope = a1->m_isOnSlope;
m_isDashing = a1->m_isDashing;
a2->m_objectSnappedTo = a1->m_objectSnappedTo;
a2->m_wasOnSlope = m_wasOnSlope;
a2->m_isOnSlope = m_isOnSlope;
a2->m_snapDistance = m_snapDistance;
a2->m_accelerationOrSpeed = m_accelerationOrSpeed;
a2->m_slopeVelocity = m_slopeVelocity;
if ( m_isDashing )
{
m_dashAngle = a1->m_dashAngle;
m_dashRing = a1->m_dashRing;
a2->m_isDashing = 1;
a2->m_dashAngle = m_dashAngle;
a2->m_dashX = a1->m_dashX;
m_dashY = a1->m_dashY;
a2->m_dashRing = m_dashRing;
a2->m_dashY = m_dashY;
a2->m_dashStartTime = a1->m_dashStartTime;
}
v25 = a1->getRotation(a1);
m_yVelocityBeforeSlope = a1->m_yVelocityBeforeSlope;
m_fixGravityBug = a1->m_fixGravityBug;
m_slopeStartTime = a1->m_slopeStartTime;
m_reverseSync = a1->m_reverseSync;
m_slopeAngle = a1->m_slopeAngle;
m_justPlacedStreak = a1->m_justPlacedStreak;
m_lastCollisionBottom = a1->m_lastCollisionBottom;
m_lastCollisionTop = a1->m_lastCollisionTop;
m_lastCollisionLeft = a1->m_lastCollisionLeft;
m_lastCollisionRight = a1->m_lastCollisionRight;
m_unk50C = a1->m_unk50C;
m_unk510 = a1->m_unk510;
m_currentSlope2 = a1->m_currentSlope2;
m_preLastGroundObject = a1->m_preLastGroundObject;
m_slopeSlidingMaybeRotated = a1->m_slopeSlidingMaybeRotated;
a2->m_wasTeleported = a1->m_wasTeleported;
a2->m_rotation = v25;
a2->m_fixGravityBug = m_fixGravityBug;
a2->m_reverseSync = m_reverseSync;
a2->m_yVelocityBeforeSlope = m_yVelocityBeforeSlope;
a2->m_justPlacedStreak = m_justPlacedStreak;
a2->m_slopeStartTime = m_slopeStartTime;
a2->m_lastCollisionBottom = m_lastCollisionBottom;
a2->m_lastCollisionTop = m_lastCollisionTop;
a2->m_lastCollisionLeft = m_lastCollisionLeft;
a2->m_lastCollisionRight = m_lastCollisionRight;
a2->m_unk50C = m_unk50C;
a2->m_unk510 = m_unk510;
a2->m_currentSlope2 = m_currentSlope2;
a2->m_preLastGroundObject = m_preLastGroundObject;
a2->m_slopeAngle = m_slopeAngle;
a2->m_slopeSlidingMaybeRotated = m_slopeSlidingMaybeRotated;
m_quickCheckpointMode = a1->m_quickCheckpointMode;
m_scaleXRelated2 = a1->m_scaleXRelated2;
m_collidedObject = a1->m_collidedObject;
m_groundYVelocity = a1->m_groundYVelocity;
m_lastGroundObject = a1->m_lastGroundObject;
m_yVelocityRelated = a1->m_yVelocityRelated;
m_collidingWithLeft = a1->m_collidingWithLeft;
m_scaleXRelated3 = a1->m_scaleXRelated3;
m_collidingWithRight = a1->m_collidingWithRight;
m_scaleXRelated4 = a1->m_scaleXRelated4;
LOBYTE(m_lastCollisionBottom) = a1->m_collidingBetweenSteps;
m_scaleXRelated5 = a1->m_scaleXRelated5;
LOBYTE(m_lastCollisionLeft) = a1->m_isCollidingWithSlope;
LOBYTE(m_unk50C) = a1->m_isBallRotating;
LOBYTE(m_currentSlope2) = a1->m_unk669;
a2->m_currentPotentialSlope = a1->m_currentPotentialSlope;
a2->m_quickCheckpointMode = m_quickCheckpointMode;
a2->m_collidedObject = m_collidedObject;
a2->m_lastGroundObject = m_lastGroundObject;
a2->m_collidingWithLeft = m_collidingWithLeft;
a2->m_collidingWithRight = m_collidingWithRight;
a2->m_scaleXRelated2 = m_scaleXRelated2;
a2->m_collidingBetweenSteps = m_lastCollisionBottom;
a2->m_groundYVelocity = m_groundYVelocity;
a2->m_isCollidingWithSlope = m_lastCollisionLeft;
a2->m_yVelocityRelated = m_yVelocityRelated;
a2->m_isBallRotating = m_unk50C;
a2->m_scaleXRelated3 = m_scaleXRelated3;
a2->m_unk669 = (char)m_currentSlope2;
a2->m_scaleXRelated4 = m_scaleXRelated4;
a2->m_scaleXRelated5 = m_scaleXRelated5;
a2->m_currentSlope = a1->m_currentSlope;
unk_584 = a1->unk_584;
m_speedMultiplier = a1->m_speedMultiplier;
LOBYTE(m_collidedObject) = a1->m_slopeFlipGravityRelated;
m_yStart = a1->m_yStart;
LOBYTE(m_collidingWithLeft) = a1->m_isRotating;
m_gravity = a1->m_gravity;
LOBYTE(m_scaleXRelated2) = a1->m_isBallRotating2;
m_gameModeChangedTime = a1->m_gameModeChangedTime;
LOBYTE(m_groundYVelocity) = a1->m_padRingRelated;
*(float *)&m_collidingWithRight = a1->m_slopeAngleRadians;
LOBYTE(m_yVelocityRelated) = a1->m_maybeIsFalling;
m_rotationSpeed = a1->m_rotationSpeed;
LOBYTE(m_scaleXRelated3) = a1->m_shouldTryPlacingCheckpoint;
m_rotateSpeed = a1->m_rotateSpeed;
a2->m_collidingWithSlopeId = a1->m_collidingWithSlopeId;
*(float *)&m_scaleXRelated4 = a1->m_trailingParticleLife;
a2->m_slopeFlipGravityRelated = (char)m_collidedObject;
a2->unk_584 = unk_584;
a2->m_isRotating = (char)m_collidingWithLeft;
LODWORD(a2->m_slopeAngleRadians) = (_DWORD)m_collidingWithRight;
a2->m_isBallRotating2 = LOBYTE(m_scaleXRelated2);
a2->m_rotationSpeed = m_rotationSpeed;
a2->m_padRingRelated = LOBYTE(m_groundYVelocity);
a2->m_rotateSpeed = m_rotateSpeed;
a2->m_maybeIsFalling = LOBYTE(m_yVelocityRelated);
a2->m_speedMultiplier = m_speedMultiplier;
a2->m_shouldTryPlacingCheckpoint = LOBYTE(m_scaleXRelated3);
a2->m_yStart = m_yStart;
LOBYTE(m_yStart) = a1->m_playEffects;
a2->m_gravity = m_gravity;
a2->m_trailingParticleLife = *(float *)&m_scaleXRelated4;
a2->m_gameModeChangedTime = m_gameModeChangedTime;
a2->m_playEffects = LOBYTE(m_yStart);
m_lastSpiderFlipTime = a1->m_lastSpiderFlipTime;
LOBYTE(m_gravity) = a1->m_isOnGround3;
LOBYTE(m_scaleXRelated4) = a1->m_unkBool5;
a2->m_ringJumpRelated = a1->m_ringJumpRelated;
a2->m_isOnGround3 = LOBYTE(m_gravity);
a2->m_unkBool5 = LOBYTE(m_scaleXRelated4);
a2->m_lastSpiderFlipTime = m_lastSpiderFlipTime;
std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::operator=(
(__int64)&a2->m_ringRelatedSet,
&a1->m_ringRelatedSet._M_h._M_buckets);
m_slopeRotation = a1->m_slopeRotation;
m_unk3e0 = a1->m_unk3e0;
m_currentSlopeYVelocity = a1->m_currentSlopeYVelocity;
m_unk3e1 = a1->m_unk3e1;
m_unk3d0 = a1->m_unk3d0;
m_blackOrbRelated = a1->m_blackOrbRelated;
m_isAccelerating = a1->m_isAccelerating;
m_collidedTopMinY = a1->m_collidedTopMinY;
m_isCurrentSlopeTop = a1->m_isCurrentSlopeTop;
m_collidedBottomMaxY = a1->m_collidedBottomMaxY;
m_wasJumpBuffered = a1->m_wasJumpBuffered;
m_collidedLeftMaxX = a1->m_collidedLeftMaxX;
m_wasRobotJump = a1->m_wasRobotJump;
m_collidedRightMinX = a1->m_collidedRightMinX;
a2->m_maybeSpriteRelated = a1->m_maybeSpriteRelated;
m_landParticlesAngle = a1->m_landParticlesAngle;
m_landParticleRelatedY = a1->m_landParticleRelatedY;
a2->m_unk3e0 = m_unk3e0;
a2->m_slopeRotation = m_slopeRotation;
a2->m_unk3e1 = m_unk3e1;
a2->m_currentSlopeYVelocity = m_currentSlopeYVelocity;
a2->m_isAccelerating = m_isAccelerating;
a2->m_landParticlesAngle = m_landParticlesAngle;
a2->m_isCurrentSlopeTop = m_isCurrentSlopeTop;
a2->m_landParticleRelatedY = m_landParticleRelatedY;
a2->m_wasJumpBuffered = m_wasJumpBuffered;
a2->m_unk3d0 = m_unk3d0;
a2->m_blackOrbRelated = m_blackOrbRelated;
a2->m_collidedTopMinY = m_collidedTopMinY;
a2->m_collidedBottomMaxY = m_collidedBottomMaxY;
a2->m_collidedLeftMaxX = m_collidedLeftMaxX;
a2->m_collidedRightMinX = m_collidedRightMinX;
a2->m_wasRobotJump = m_wasRobotJump;
v76 = a1->m_yVelocity;
LOBYTE(m_currentSlopeYVelocity) = a1->m_stateJumpBuffered;
m_fallSpeed = a1->m_fallSpeed;
m_stateRingJump2 = a1->m_stateRingJump2;
m_maybeReverseAcceleration = a1->m_maybeReverseAcceleration;
LOBYTE(m_landParticlesAngle) = a1->m_touchedRing;
m_xVelocityRelated2 = a1->m_xVelocityRelated2;
m_touchedCustomRing = a1->m_touchedCustomRing;
LOBYTE(m_landParticleRelatedY) = a1->m_touchedGravityPortal;
m_maybeTouchedBreakableBlock = a1->m_maybeTouchedBreakableBlock;
LOBYTE(m_unk3d0) = a1->m_touchedPad;
LOBYTE(m_blackOrbRelated) = a1->m_maybeUpsideDownSlope;
a2->m_reverseRelated = a1->m_reverseRelated;
a2->m_stateJumpBuffered = LOBYTE(m_currentSlopeYVelocity);
a2->m_stateRingJump2 = m_stateRingJump2;
a2->m_touchedRing = LOBYTE(m_landParticlesAngle);
a2->m_touchedCustomRing = m_touchedCustomRing;
a2->m_touchedGravityPortal = LOBYTE(m_landParticleRelatedY);
a2->m_maybeTouchedBreakableBlock = m_maybeTouchedBreakableBlock;
a2->m_touchedPad = LOBYTE(m_unk3d0);
a2->m_maybeUpsideDownSlope = LOBYTE(m_blackOrbRelated);
a2->m_yVelocity = v76;
a2->m_fallSpeed = m_fallSpeed;
a2->m_maybeReverseAcceleration = m_maybeReverseAcceleration;
a2->m_xVelocityRelated2 = m_xVelocityRelated2;
cocos2d::CCPoint::operator=(&a2->m_shipRotation, v83, v84);
cocos2d::CCPoint::operator=(&a2->m_lastPortalPos, v85, v86);
m_lastLandTime = a1->m_lastLandTime;
m_scaleXRelatedTime = a1->m_scaleXRelatedTime;
m_maybeIsBoosted = a1->m_maybeIsBoosted;
m_unkUnused3 = a1->m_unkUnused3;
m_isLocked = a1->m_isLocked;
m_platformerVelocityRelated = a1->m_platformerVelocityRelated;
m_controlsDisabled = a1->m_controlsDisabled;
a2->m_isOnGround2 = a1->m_isOnGround2;
a2->m_maybeIsBoosted = m_maybeIsBoosted;
a2->m_isLocked = m_isLocked;
a2->m_controlsDisabled = m_controlsDisabled;
a2->m_unkUnused3 = m_unkUnused3;
a2->m_lastLandTime = m_lastLandTime;
a2->m_platformerVelocityRelated = m_platformerVelocityRelated;
a2->m_scaleXRelatedTime = m_scaleXRelatedTime;
cocos2d::CCPoint::operator=(&a2->m_lastGroundedPos, v94, v95);
cocos2d::CCArray::removeAllObjects(a2->m_touchingRings);
m_touchingRings = a1->m_touchingRings;
if ( m_touchingRings )
{
data = m_touchingRings->data;
if ( data->num )
{
arr = data->arr;
v99 = &arr[data->num - 1];
while ( v99 >= arr )
{
v100 = *arr;
if ( !*arr )
break;
++arr;
cocos2d::CCArray::addObject(a2->m_touchingRings, v100);
}
}
}
std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::operator=(
(__int64)&a2->m_touchedRings,
&a1->m_touchedRings._M_h._M_buckets);
m_totalTime = a1->m_totalTime;
m_lastActivatedPortal = a1->m_lastActivatedPortal;
m_platformerXVelocity = a1->m_platformerXVelocity;
m_defaultMiniIcon = a1->m_defaultMiniIcon;
m_yVelocityRelated3 = a1->m_yVelocityRelated3;
m_swapColors = a1->m_swapColors;
v107 = *(_DWORD *)&a1->m_stateUnk;
m_switchDashFireColor = a1->m_switchDashFireColor;
m_scaleXRelated = a1->m_scaleXRelated;
m_stateOnGround = a1->m_stateOnGround;
m_stateBoostX = a1->m_stateBoostX;
m_stateBoostY = a1->m_stateBoostY;
m_maybeStateForce2 = a1->m_maybeStateForce2;
m_stateScale = a1->m_stateScale;
m_holdingRight = a1->m_holdingRight;
m_holdingLeft = a1->m_holdingLeft;
a2->m_leftPressedFirst = a1->m_leftPressedFirst;
a2->m_lastActivatedPortal = m_lastActivatedPortal;
a2->m_defaultMiniIcon = m_defaultMiniIcon;
a2->m_swapColors = m_swapColors;
a2->m_switchDashFireColor = m_switchDashFireColor;
a2->m_stateOnGround = m_stateOnGround;
a2->m_stateBoostX = m_stateBoostX;
a2->m_stateBoostY = m_stateBoostY;
a2->m_maybeStateForce2 = m_maybeStateForce2;
a2->m_stateScale = m_stateScale;
a2->m_holdingRight = m_holdingRight;
a2->m_holdingLeft = m_holdingLeft;
a2->m_totalTime = m_totalTime;
a2->m_yVelocityRelated3 = m_yVelocityRelated3;
*(_DWORD *)&a2->m_stateUnk = v107;
a2->m_platformerXVelocity = m_platformerXVelocity;
a2->m_scaleXRelated = m_scaleXRelated;
LOBYTE(m_lastActivatedPortal) = a1->m_maybeHasStopped;
m_maybeSlopeForce = a1->m_maybeSlopeForce;
m_maybeGoingCorrectSlopeDirection = a1->m_maybeGoingCorrectSlopeDirection;
m_physDeltaRelated = a1->m_physDeltaRelated;
m_isSliding = a1->m_isSliding;
m_maybeSlidingStartTime = a1->m_maybeSlidingStartTime;
m_isOnIce = a1->m_isOnIce;
m_changedDirectionsTime = a1->m_changedDirectionsTime;
LOBYTE(m_stateOnGround) = a1->m_isOnGround4;
m_slopeEndTime = a1->m_slopeEndTime;
m_maybeSlidingTime = a1->m_maybeSlidingTime;
m_xVelocityRelated = a1->m_xVelocityRelated;
LOBYTE(m_stateBoostY) = a1->m_isMoving;
m_maybeChangedDirectionAngle = a1->m_maybeChangedDirectionAngle;
LOBYTE(m_maybeStateForce2) = a1->m_platformerMovingLeft;
LOBYTE(m_stateScale) = a1->m_platformerMovingRight;
a2->m_isSlidingRight = a1->m_isSlidingRight;
a2->m_maybeHasStopped = (char)m_lastActivatedPortal;
a2->m_maybeGoingCorrectSlopeDirection = m_maybeGoingCorrectSlopeDirection;
a2->m_isSliding = m_isSliding;
a2->m_isOnIce = m_isOnIce;
a2->m_isOnGround4 = m_stateOnGround;
a2->m_maybeSlidingTime = m_maybeSlidingTime;
a2->m_isMoving = m_stateBoostY;
a2->m_platformerMovingLeft = m_maybeStateForce2;
a2->m_platformerMovingRight = m_stateScale;
a2->m_xVelocityRelated = m_xVelocityRelated;
a2->m_maybeSlopeForce = m_maybeSlopeForce;
a2->m_physDeltaRelated = m_physDeltaRelated;
a2->m_maybeSlidingStartTime = m_maybeSlidingStartTime;
a2->m_changedDirectionsTime = m_changedDirectionsTime;
a2->m_slopeEndTime = m_slopeEndTime;
a2->m_maybeChangedDirectionAngle = m_maybeChangedDirectionAngle;
LODWORD(m_maybeSlopeForce) = a1->m_stateNoAutoJump;
m_unkUnused2 = a1->m_unkUnused2;
LODWORD(m_physDeltaRelated) = a1->m_stateDartSlide;
LODWORD(m_maybeSlidingStartTime) = a1->m_stateHitHead;
LODWORD(m_changedDirectionsTime) = a1->m_stateFlipGravity;
a2->m_stateForce = a1->m_stateForce;
a2->m_stateNoAutoJump = LODWORD(m_maybeSlopeForce);
a2->m_stateDartSlide = LODWORD(m_physDeltaRelated);
a2->m_stateHitHead = LODWORD(m_maybeSlidingStartTime);
a2->m_stateFlipGravity = LODWORD(m_changedDirectionsTime);
a2->m_unkUnused2 = m_unkUnused2;
cocos2d::CCPoint::operator=(&a2->m_stateForceVector, v129, v130);
a2->m_affectedByForces = a1->m_affectedByForces;
std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::operator=(
&a2->m_jumpPadRelated.compare.pad,
(__int64)&a1->m_jumpPadRelated);
a2->m_fallStartY = a1->m_fallStartY;
}