Never Back Down

This article's plot summary may be too long or excessively detailed. Please help improve it by removing unnecessary details and making it more concise. (September 2014) (Learn how and when to remove this template message)
Jake Tyler (Sean Faris) has recently moved from Iowa to Orlando, Florida with his mother, Margret (Leslie Hope), and younger brother, Charlie (Wyatt Smith), to support Charlie's shot at a professional tennis career. Jake was a star athlete on the football team at home, but in this new city, he is an outsider with a reputation for being a quick tempered brawler after an internet video of him starting a fight at one of his football games after a frustrated player from the opposing team taunted Jake about his father, who died in a drunk driving accident, circulates around his new school.
Making an attempt to fit in, at the invitation of a flirtatious classmate, Baja Miller (Amber Heard), Jake goes to a party where he is unwillingly pulled into a fight with the fighting MMA champion at the school, Ryan McCarthy (Cam Gigandet). Originally, Jake does not wish to fight until Ryan taunts him about his father who died while driving drunk with Jake in the car. Jake is brutally defeated in the fight, causing Jake to feel depressed. But a classmate, Max Cooperman (Evan Peters), who later becomes one of his best friends, introduces himself to Jake and tells him about the sport known as Mixed Martial Arts. He sees a star in Jake and asks that he meet with Jean Roqua (Djimon Hounsou). It is immediately apparent to Jake that MMA is not street fighting, but rather an art form he wants to master. Roqua agrees to take Jake as a pupil, but under the condition that Jake refrains from fighting outside of the gym which Jake agrees to, despite knowing he wishes to confront Ryan anyway. Baja attempts to apologize to Jake, but he does not sympathize with her and refuses to forgive her. Baja then confronts Ryan about the fight with Jake and proceeds to end their relationship when Ryan shows no remorse for the beating he gave him or his sadistic tendencies. Ryan begins to create a scene before the entire school but Jake tries to step in to defend Baja. After Ryan insults him again and leaves, Jake attends training with Roqua. Still angry about the incident, he is unable to calm down and train effectively. Roqua asks Jake to leave so that he could "cool off".
After he and Max leave the gym, Jake gets into a brawl with a group of guys in a Hummer whom Jake easily disposes of while Max films. This video again circulates around the school raising Jake's social status but agitating Ryan in the process. Ryan then proceeds to challenge Jake to compete in the Beatdown, an underground fighting tournament of which Ryan is the reigning champion. After having been banished from the gym by Roqua after his fight is discovered, Jake begs for forgiveness saying his anger is quelled when he is training with Roqua. Roqua agrees to allow Jake to train at his gym again, but does not take it easy on him anymore. He then prepares to compete in the Beatdown. While training with Roqua, Jake inquires why he lives in the gym. Jake discovers that Roqua is from Brazil and he is in exile because he believes he is the reason his brother, Joseph the favorite son, was killed and his father had disowned him for. Jake apologizes to Baja for not listening when she first apologized and the two proceed to begin a relationship.
Upon hearing that Jake has decided not to compete in the Beatdown, Ryan invites Max to hang out at his house; there he begins to spar with Max before brutally assaulting him and leaving him at Jake's door. Jake and Baja take Max to the hospital where Jake decides to fight. Despite Baja's pleas against his decision, he states that doing nothing has consequences. Before he goes to the tournament, he has a brief argument with Roqua about his decision to fight. Roqua eventually assents and tells him to "control the outcome" of the fight. Jake arrives at the tournament where it is about to begin. After a mix-up where Jake and Ryan almost fight in the first round, they both proceed to make their way through each fight. Jake makes it to the semifinals in spite of an injury he received in the previous match due to a kick to the ribs. While Jake is recovering after the match, Baja sees him and tells him that she finally understands that Jake is fighting "so [he doesn't] have to fight again". After learning that Ryan was disqualified in his semifinal match, Jake forfeits, seeing no reason to continue. While he and Baja attempt to leave, Ryan confronts him and the two finally fight outside in the parking lot. Jake is still limited by his ribs, and Ryan at first gains the upper hand, applying a choke on Jake. However Jake escapes and, with the entire crowd watching, knocks out Ryan using one of the first combinations Roqua taught him.
The next day, a visibly injured Max has been released from the hospital. Jake has won the respect of his fellow students, including Ryan, and Roqua closes the gym with a ticket to Brazil, signaling his intention to reconcile with his father.

Question: where does max get brutally assaulted?
Answer: At Ryan's house.