The way that part works is as a bidirectional driver. There is an active low output enable. If that is high, A and B are effectively disconnected from one another. If that us lie the behavior depends on the direction pin. If direction is high then A is re input and B is the output. If directing is low then B is the input and A is three output.