Place the olive oil in a large skillet over medium heat. Add the garlic and chile and cook, stirring occasionally, until the garlic browns lightly, about 5 minutes. Remove the chile and add the shiitakes. Cook, stirring occasionally, until the shiitakes release their liquid and become tender, about 10 minutes. Stir in the spinach and season with salt and pepper.