Asymptotic Analysis of a State-Dependent $M/G/1$ Queueing System