The chip uses an I/O block for each pin. The I/O block can be configured as an input or an output, depending on the metal wiring. The chip has 22 I/O blocks but only uses 14 of them. A bond wire is attached to the pad, connecting it to one of the chip's pins. 8/13
Here's my reverse-engineered schematic of one of the chip's two decoders. It takes a two-bit input and activates the corresponding one of the four output lines. Each NAND gate matches one input value. The NOR gates block the output unless the Enable input is active. 9/13