//
// PlayerObject::PlayerObject from 0x10041dbe0 to 0x10041e139 (1369 bytes)
//
// 1 xrefs:
// > PlayerObject::create @ 0x1003fa66e
//
// 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
//
PlayerObject *__fastcall PlayerObject::PlayerObject(PlayerObject *a1)
{
GameObject::GameObject(a1);
a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (PlayerObject_vtbl *)off_100933700;
a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100933E28;
a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100933EA8;
a1->AnimatedSpriteDelegate::__vftable = (AnimatedSpriteDelegate_vtbl *)&off_100933ED8;
*(_WORD *)&a1->m_wasTeleported = 0;
a1->m_reverseSync = 0;
*(_OWORD *)&a1->m_yVelocityBeforeSlope = 0;
*(_OWORD *)&a1->m_dashY = 0;
*(_OWORD *)&a1->m_dashStartTime = 0;
*(_OWORD *)((char *)&a1->m_dashRing + 1) = 0;
*(_OWORD *)&a1->m_collisionLogTop = 0;
*(_OWORD *)&a1->m_collisionLogLeft = 0;
*(_OWORD *)&a1->m_lastCollisionBottom = -1;
*(_QWORD *)&a1->m_unk50C = -1;
a1->m_quickCheckpointMode = 0;
a1->m_dashFireSprite = nullptr;
*(_WORD *)&a1->m_isBallRotating = 0;
a1->m_collidingWithSlopeId = 0;
a1->m_slopeFlipGravityRelated = 0;
a1->m_particleSystems = nullptr;
*(_OWORD *)&a1->m_rotateObjectsRelated.__table_.__p1_.__value_.__next_ = 0;
a1->m_rotateObjectsRelated.__table_.__bucket_list_ = 0;
*(_OWORD *)&a1->m_currentSlope2 = 0;
*(_OWORD *)&a1->m_collidedObject = 0;
*(_OWORD *)&a1->m_collidingWithLeft = 0;
a1->m_maybeSavedPlayerFrame = 0;
*(_OWORD *)&a1->m_scaleXRelated2 = 0;
*(_OWORD *)&a1->m_yVelocityRelated = 0;
*(_OWORD *)&a1->m_scaleXRelated4 = 0;
a1->m_isCollidingWithSlope = 0;
*(_OWORD *)&a1->m_currentPotentialSlope = 0;
a1->m_rotateObjectsRelated.__table_.__p3_.__value_ = 1.0;
a1->m_potentialSlopeMap.__table_.__bucket_list_ = 0;
*(_OWORD *)&a1->m_potentialSlopeMap.__table_.__p1_.__value_.__next_ = 0;
a1->m_potentialSlopeMap.__table_.__p3_.__value_ = 1.0;
*(_QWORD *)&a1->m_rotationSpeed = 0x3F80000000000000LL;
*(_OWORD *)&a1->m_ringRelatedSet.__table_.__p1_.__value_.__next_ = 0;
a1->m_ringRelatedSet.__table_.__bucket_list_ = 0;
*(_OWORD *)((char *)&a1->m_yStart + 4) = 0;
*(_OWORD *)&a1->m_speedMultiplier = 0;
*(_OWORD *)&a1->m_shipStreak = 0;
*(_OWORD *)&a1->m_dashSpritesContainer = 0;
*(_OWORD *)&a1->m_swingFireBottom = 0;
*(_OWORD *)&a1->m_vehicleGlow = 0;
*(_OWORD *)&a1->m_birdVehicle = 0;
*(_OWORD *)&a1->m_vehicleSprite = 0;
*(_OWORD *)&a1->m_iconSpriteWhitener = 0;
*(_OWORD *)&a1->m_iconSprite = 0;
*(_OWORD *)&a1->m_isRotating = 0;
*(_OWORD *)&a1->m_gameModeChangedTime = 0;
*(_WORD *)&a1->m_isOnGround3 = 0;
*(_OWORD *)&a1->m_lastFlipTime = 0;
*(_OWORD *)&a1->m_lastCheckpointTime = 0;
*(_QWORD *)&a1->m_flashDuration = 0;
*(_DWORD *)&a1->m_unkBool5 = 0;
a1->m_lastSpiderFlipTime = 0.0;
*(_OWORD *)&a1->m_accelerationOrSpeed = 0;
a1->m_ringJumpRelated = 0;
a1->m_ringRelatedSet.__table_.__p3_.__value_ = 1.0;
*(_WORD *)&a1->m_disableStreakTint = 0;
a1->m_hasCustomGlowColor = 0;
*(_QWORD *)&a1->m_jumpRelatedAC2.random = 0;
a1->m_jumpRelatedAC2.value = 0;
a1->m_reverseRelated = 0;
*(_QWORD *)&a1->m_dashFireFrame = 0;
*(_OWORD *)&a1->m_objectSnappedTo = 0;
a1->m_onFlyCheckpointTries = 0;
*(_OWORD *)&a1->m_robotSprite = 0;
a1->m_maybeSpriteRelated = 0;
*(_OWORD *)&a1->m_shipClickParticles = 0;
*(_OWORD *)&a1->m_playerGroundParticles = 0;
a1->m_ufoClickParticles = nullptr;
*(_OWORD *)((char *)&a1->m_swingBurstParticles1 + 1) = 0;
*(_OWORD *)&a1->m_dashParticles = 0;
*(_OWORD *)&a1->m_landParticles0 = 0;
*(_QWORD *)&a1->m_landParticlesAngle = 0;
*(_OWORD *)&a1->m_currentSlopeYVelocity = 0;
*(_OWORD *)&a1->m_shipStreakType = 0;
*(_DWORD *)&a1->m_unk3e0 = 0;
*(_OWORD *)&a1->m_collidedLeftMaxX = 0;
*(_OWORD *)&a1->m_collidedTopMinY = 0;
*(_WORD *)&a1->m_fadeOutStreak = 0;
*(_DWORD *)&a1->m_touchedRing = 0;
*(_QWORD *)&a1->m_maybeIsColliding = 0;
*(_OWORD *)&a1->m_yVelocity = 0;
*(_WORD *)&a1->m_isOnSlope = 0;
*(_OWORD *)&a1->m_slopeVelocity = 0;
a1->m_isSwing = 0;
*(_OWORD *)&a1->m_maybeReverseSpeed = 0;
*(double *)((char *)&a1->m_maybeReverseAcceleration + 5) = 0.0;
*(_QWORD *)&a1->m_vehicleSize = 0x3F66666600000000LL;
sub_10028CC30(&a1->m_shipRotation);
sub_10028CC30(&a1->m_lastPortalPos);
a1->m_unkUnused3 = 0.0;
a1->m_isOnGround2 = 0;
a1->m_lastLandTime = 0.0;
a1->m_platformerVelocityRelated = 1.0;
a1->m_maybeIsBoosted = 0;
a1->m_scaleXRelatedTime = 0.0;
*(_DWORD *)&a1->m_decreaseBoostSlide = 0;
sub_10028CC30(&a1->m_lastGroundedPos);
*(_OWORD *)&a1->m_touchedRings.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_ = 0;
*(_OWORD *)&a1->m_touchingRings = 0;
a1->m_touchedRings.__table_.__p2_.__value_ = 0;
a1->m_touchedRings.__table_.__p3_.__value_ = 1.0;
a1->m_lastActivatedPortal = nullptr;
*(_WORD *)&a1->m_hasEverJumped = 0;
sub_10028CC30(&a1->m_position);
*(_WORD *)&a1->m_isSecondPlayer = 0;
a1->m_totalTime = 0.0;
a1->m_isBeingSpawnedByDualPortal = 0;
a1->m_scaleXRelated = 0.0;
a1->m_maybeHasStopped = 0;
a1->m_xVelocityRelated = 0.0;
*(_WORD *)&a1->m_maybeGoingCorrectSlopeDirection = 0;
a1->m_maybeSlopeForce = 0.0;
a1->m_isOnIce = 0;
a1->m_physDeltaRelated = 0.0;
a1->m_isOnGround4 = 0;
*(_QWORD *)&a1->m_audioScale = 0;
*(_QWORD *)((char *)&a1->m_unkAngle1 + 3) = 0;
*(_OWORD *)&a1->m_followRelated = 0;
*(_OWORD *)((char *)&a1->m_playerFollowFloats.__end_ + 4) = 0;
*(_OWORD *)&a1->m_stateOnGround = 0;
*(_QWORD *)&a1->m_maybeStateForce2 = 0;
*(_DWORD *)((char *)&a1->m_platformerXVelocity + 7) = 0;
a1->m_platformerXVelocity = 0.0;
*(_OWORD *)((char *)&a1->m_changedDirectionsTime + 4) = 0;
*(_OWORD *)&a1->m_maybeSlidingTime = 0;
*(_OWORD *)&a1->m_maybeChangedDirectionAngle = 0;
a1->m_isPlatformer = 0;
*(_OWORD *)&a1->m_stateNoAutoJump = 0;
*(_QWORD *)&a1->m_gravityMod = 1065353216;
sub_10028CC30(&a1->m_stateForceVector);
*(_OWORD *)&a1->m_jumpPadRelated.__tree_.__pair1_.__value_.__left_ = 0;
a1->m_jumpPadRelated.__tree_.__begin_node_ = &a1->m_jumpPadRelated.__tree_.__pair1_.__value_;
*(_OWORD *)&a1->m_holdingButtons.__tree_.__pair1_.__value_.__left_ = 0;
*(_QWORD *)&a1->m_somethingPlayerSpeedTime = 0;
a1->m_fixRobotJump = 0;
a1->m_holdingButtons.__tree_.__begin_node_ = &a1->m_holdingButtons.__tree_.__pair1_.__value_;
a1->m_inputsLocked = 0;
a1->m_currentRobotAnimation.m_data.m_short.sizex2 = 6;
*(_DWORD *)a1->m_currentRobotAnimation.m_data.m_short.shortStorage.__elems_ = 7239026;
a1->m_gv0123 = 0;
a1->m_robotFire = nullptr;
*(_OWORD *)&a1->m_iconRequestID = 0;
HIDWORD(a1->m_spiderBatchNode) = 0;
*(_OWORD *)&a1->m_gameLayer = 0;
*(_OWORD *)((char *)&a1->m_parentLayer + 1) = 0;
*(_DWORD *)&a1->m_spiderAnimationEnabled = 0;
*(_QWORD *)&a1->m_fallStartY = 0;
return (PlayerObject *)&a1->m_holdingButtons.__tree_.__pair1_;
}