A fan of David Wise, of the United States, watches during the men's halfpipe final at Phoenix Snow Park at the 2018 Winter Olympics in Pyeongchang, South Korea, Thursday, Feb. 22, 2018. (AP Photo/Lee Jin-man)

PYEONGCHANG, South Korea (AP) They give their bodies for this sport. Sometimes little pieces of their hearts and souls, too.

Maybe that’s why David Wise decided there was nothing left to lose Thursday when he stood atop a halfpipe that had sent one third of the 12 riders limping off or worse, facing an all-or-nothing run after his ski bindings had failed him in his two previous trips down.

”We cranked my bindings up as high as they would go,” Wise said. ”We’re like, `You know what, my leg’s coming off before the ski does.”’

The skis stayed on.

Wise put down the most difficult, technically precise run ever seen in the sport of halfpipe skiing. He edged out his Olympic roommate and fellow American, Alex Ferreira, to win his second straight Olympic gold medal. He and Ferreira gave the United States its fifth and sixth medals on the halfpipe – producing a rare glimmer of good news for a U.S. team that is struggling at these games.

In Seoul a few weeks ago, Wise and Ferreira huddled up and decided to get matching tattoos of the logo for the Pyeongchang Games on their left arms. They were fitting tributes to all the work they put in and the suffering they endured on the road to South Korea.

”I certainly felt like I needed to do something epic to commemorate this journey, because it’s been a really hard struggle the last couple years,” Wise said. ”I’ve been through a lot, and making the team for me was a lifetime accomplishment. Freeskiing won.”

Four years ago in Sochi, Wise won but freeskiing did not.

A poorly made halfpipe was made worse by wet, sloppy snow that fell on the night of the contest.

As the gold medalist, Wise set out on a plan to make sure that wouldn’t happen again. His goal was to become the first halfpipe freeskier to put down double corks – two head-over-heels flips – in all four directions on the same run: forward spinning right; forward spinning left; backward spinning right; backward spinning left.

Spinning in the opposite direction in the halfpipe, as U.S. coach Mike Jankowski put it, ”is like throwing a baseball with your left hand if you’re right-handed.”

Or, in the words of Jonny Moseley, the moguls gold medalist who is the godfather of progression in freestyle skiing: ”It’s like learning two sports.”

In between Wise’s training for those tricks, his father-in-law died. His sister, Christy, lost her right leg when a hit-and-run boater sideswiped her while she was paddleboarding. Wise endured concussions in training that left him wobbly and on the sidelines for months. He hurt his back so badly, he could barely turn around.

”We’re defined as warriors,” Wise said. ”We ski the halfpipe. Halfpipe is definitely the most dangerous version of freeskiiing, by a fair bit.”

Ferreira went through his own version of heartbreak.

He barely missed the Olympic team last time, and though his list of injuries isn’t as extreme – he broke his collarbone to start this season – he has watched his good friends in the sport get ravaged over the past four years, both on the halfpipe and off.

Most notably, his good friend Torin Yater-Wallace came down with an illness that landed him in the hospital and almost took his life.

On Thursday, Yater-Wallace was on the last jump of what could’ve been a medal-winning run when he crashed hard, and he walked gingerly off the halfpipe.

”I would not be where I am today without Torin Yater-Wallace,” Ferreira said. ”He’s one of my best friends. I respect him, bar none, over anybody.”

Yater-Wallace wasn’t the only one to get hurt on a day in which Ferreira and Wise set the stakes with runs that would’ve won pretty much every halfpipe contest in history to this point.

France’s Thomas Krief and Kevin Rolland, the 2014 silver medalist, each took hard falls and didn’t complete the day. New Zealand’s Byron Wells got hurt in pre-contest training and never made the starting line.

Wise said the crashes were more ”nerve related” than related to anything with the halfpipe itself, which got great reviews throughout the games. He could’ve blamed his bindings for his first two wrecks but instead acknowledged he didn’t land the jumps perfectly, which could have played a factor in the skis snapping out.

But they shouldn’t snap out.

Wise normally sets his bindings on 14 – cemented in tight enough to shred a knee, and a leg, if they get torqued up in a crash.

On the last run, he cranked the settings to 18 – as high as they would go.

”I dropped in and I knew, first of all, that I had to make it happen,” Wise said. ”But I also knew that I could.”

He did.

Given the risk he took and the price he paid, it’s hard to imagine a more fitting champion.

”He’s had this run in mind for several years,” Jankowski said. ”It took every bit of what he had – tons of falls and crashes and knocks along the way – but he’s been visualizing this moment. And he’s been visualizing doing it when it’s all on the line, for years.”