2005 Cadillac STS - Help identifying wires

The harness of my OBD 2 female is shredded but the wires are still intact. I got a new female port but I failed to find a proper wiring diagram to help me align the wires to their respective outout (for eg. the red and white wire goes to slot 16 which is the power source). Here are the wires that are dangling (but the red and white one is still intact with slot 16 hence i know about it).
Black
Black and white
Orange
Orange and black
Green
Red and White (battery)

If someone could please tell me which of these wires correspond to which slot or just the circuit numbers of these wires could help too.