Alex Smith threw for a season-high 303 yards and three touchdowns, Frank Gore ran for 106 yards and a score, and the San Francisco 49ers amassed a franchise-record 621 yards in blowing by Buffalo.