UNO Rev. 3: What is the LM358 for ?

1/2 is used as a voltage comparator, to select whether the board is powered from USB or from Vin.
The other buffers D13, removing the load created by the L LED and its current limiting resistor.