Ventilation of the lungs occurs through breathing, which requires clear airways, an intact respiratory system, and a thoracic cavity capable of expanding and contracting. Oxygen diffuses from the alveoli into the blood while carbon dioxide diffuses from the blood into the alveoli. Factors like cardiac output, hematocrit levels, and exercise affect oxygen transport. Respiratory regulation maintains appropriate oxygen and carbon dioxide levels through neural and chemical controls. Alterations in respiratory function include hypoxia, hypoventilation, and hyperventilation which have signs and symptoms like anxiety, fatigue, and cyanosis.