When used as a multiplexer the X pin is the output. Pin 1 on the QFN package
When used as a de-multiplexer the X pins (X0 to X7) are the output, and the COM pin is the input.
This is true for all passive analog multiplexers