Car: 2010 535i

My serpentine belt broke and no I have a few codes:

P0016
P0015
P0012
P054b - seems to be the EXACT same description as the P0015
P052b - seems to be the EXACT same description as P0012
Misfire codes on all cylinders
P0300


I pulled the plugs and they were ALL fouled.

How do I get rid of the codes?