Bam Margera Beaten to a Pulp

6/13/2010 10:30 AM PDT BY TMZ STAFF
When we broke the story yesterday -- that Bam Margera was taken to the hospital after being attacked with a bat -- we had no idea it was this bad.

The photos were taken immediately after the incident, as the "Jackass" star was being loaded into an ambulance.

His condition is unknown.

061110_steve_o_video_2UPDATE: We talked to Steve-O, who says Bam was holed up in the intensive care unit after the incident ... but has already been released from the hospital.

Steve-O also said, "I think he's gonna be okay."