SAN FRANCISCO -- The San Francisco 49ers rewrote their storied offensive record book Sunday, rolling up a franchise-high 621 yards in a 45-3 rout of the Buffalo Bills at Candlestick Park.