Semiclassical theory of the sawtooth map