RIO DE JANEIRO -- Dance parties. Dark chocolate. Calls to mom.

All are helping Missy Franklin cope with an Olympics gone wrong.

A huge star at the London Games four years ago, Franklin has been one of the biggest U.S. disappointments in Rio de Janeiro -- an inexplicable fall she's at a loss to explain.

"I really wish I could tell you," Franklin said Thursday after another lackluster swim. "In my mind, I made the hardest sacrifices I've ever had to make this year. I've poured myself into this every single day for the whole year and the three years leading up to that. For whatever reason, it's just not happening at this meet."

As a high school senior-to-be in 2012, Franklin competed in a staggering seven events, winning four gold medals and a bronze. She became only the second American woman, after Amy Van Dyken, to capture four golds at a single Olympics.

But following two years swimming collegiately at California and then turning pro last summer, Franklin hasn't been able to recapture the form that made her one of the most-hyped -- and heavily sponsored -- U.S. athletes heading into the Rio Olympics.

She struggled at the U.S. trials, qualifying for the team in only two individual events, both with runner-up finishes.

In Rio, she failed to even qualify for the final of the 200-meter freestyle. After that showing, the coaches only picked her to swim the preliminary of the 4x200 free relay, a decision that would have seemed unfathomable just a few months ago but didn't meet with any protest from Franklin.

"I was absolutely fine with it," Franklin said. "They 100 percent made the right decision."

The 21-year-old still earned a gold medal -- the fifth of her career -- when a Katie Ledecky-led squad swam to victory in the relay final Wednesday night.

That did little to ease the sting for Franklin. She's ready to go home to Colorado.

"Being totally honest, I'm doing better because it's almost over," she said. "The closer we get, it's just good reminders that this is a disappointing swim meet for me. It's a disappointing race, it's a disappointing swim meet. Life goes on. This is just one phase of my life that I worked so hard for and made so many sacrifices for and for whatever reason it didn't go my way. It doesn't mean I'm anywhere close to being done with the sport, that I don't feel like I have anything left, because I do."

Franklin has coped with her struggles by leaning heavily on her religious faith.

"My faith in God is really getting me through," she said. "I know that he's going to make something beautiful out of this, he's going to transform me and my life into doing something from all of this. I have no clue what that is. I wish I could ask him what he's going to do."

Her teammates are doing all they can to help.

"I just throw a couple of random dance parties. I take some really, really horrendous Snapchats of her," Cierra Runge said. "Whatever I can do to make her laugh."

Those Dove chocolate candies with the inspirational message on the wrapper help, too.

One of the verses really stuck with Franklin.

"Every day is an opportunity to change things for the better," she recounted. "That was a good reminder that regardless of how things have been going, how I've been feeling, every day is a new opportunity."

And, of course, she can always turn to her family.

"You're never too old to call your mom and cry and ask her for advice," Franklin said. "She just told me that it's going to be OK, and that's all I needed to hear. Yeah, it's hard right now. It's probably the hardest thing I've had to go through. But it's going to be OK. I'm loved. I'm supported. When you put things in perspective, if a disappointing meet is the worst thing that happens in my life, then I have a pretty damn good life."

Franklin was competing Thursday in her final event of the Games, the 200 backstroke, an event she won at London. She gave little indication of turning things around in the preliminaries, managing only the 11th-best time at 2 minutes, 9.36 seconds. And it didn't get any better in the semifinals, where she finished 14th in 2:09.74.

Franklin will return to Cal in the fall to resume her studies, but she made clear that her swimming career isn't over.

If there's a bright side, Franklin has learned just how much she's really loved.

"Yeah, it's a disappointment. But the support I've received has shown me so much more than I ever could've expected," she said. "You're so much more than the number of medals you have, you're so much more than the time you spend in the pool, your value goes so beyond all of that. I don't think I ever would've come to that realization without going through something like this."

Information from The Associated Press and ESPN.com's Bonnie D. Ford was used in this report.