This is a CMOS transmission gate, which acts as a switch. When the switch input is high, the 40 Hz signal can flow through the transmission gate. When the switch input is low, it can't; the transmission gate acts as an open circuit.
Next: CMOS Multiplexer
Previous: CMOS Inverter (slow transition)