It has two H-bridges in it, so that means it has two sets of inputs and outputs. Moreover, it give the ability to enable/disable each particular H-Bridge, adding in another two pins. The rest are just connected to ground for heatsinking purposes.
Tutorial