Text this: Breaking time-reversal and translational symmetry at edges of d-wave superconductors: Microscopic theory and comparison with quasiclassical theory