AUGUSTA, Maine — Down nine points in the third quarter, it was like Dirigo had them right where they wanted them.

Trailing St. Dom’s by double digits on Wednesday, the Cougars rallied to topple the top seeded Saints. So when the Cougars were down nine Thursday against Madison, it was no big deal.

“That’s the way they play better, when it’s time to step it up,” Dirigo coach Reggie Weston said.

The Cougars made their late run once again, and even took the lead with 5:36 remaining in regulation. The seasoned Bulldogs would have none of that, though, and history did not repeat for the Cougars. Madison fought off the Dirigo challenge for a 62-58 win in their Western Class C semifinal.

The Bulldogs advance to Saturday’s Western C final to play their rivals from Carrabec. It will be the fourth regional final for Madison in the past five years. The Bulldogs have lost the past two.

“This is our third year in a row here,” senior forward Alex Jarvais said, “so our seniors are veterans. We have a lot of chemistry. We know this gym. We play here at least twice a year. So it helps to know this gym really well.”

Dirigo (13-8) took the lead at 50-49 with 5:36 to play on a basket by Kelsey Hutchins and two free throws by Jessica Conant, capping an 8-2 run to start the fourth.

“It was definitely scary,” Jarvais said. “The last game we played them, it was really tough like that and we pulled it out, but this was more scary because it was on a bigger stage. We held our composure really well. I think we held it together as a team and that what helped us win.”

Madison (14-6) answered with six consecutive points. A pair of baskets by Emily McKenney and one by Jarvais made it 55-50. After Dirigo got two free throws from Kelsey Wilson with 2:54 left, the Bulldogs got a short jumper from Jarvais and a hoop by Cristie Vicneire, making it 59-52.

“I think the seniors came in and gave us some great minutes at the end of the game,” Madison coach Al Veneziano said. “They really showed their patience and their poise. They did a great job with that. The sophomore and the younger kids did a great job earlier and the seniors came out and sealed it and that was awesome.”

Dirigo pulled within three in the final minute. Hutchins sanks two from the line and then Sabrina Daoud scored on a rebound with 28 seconds left, getting Dirigo within 59-56. Madison iced it with a free throw by Madeline Wood and then two from Kayla Bess.

“I’m proud of the kids,” Weston said. “They worked real hard. They weren’t going to die until the end.”

Bess led the Bulldogs with 15 points while Jarvais and Kirsten Wood each had 12. Dirigo was led by Hutchins with 16. Lauren Henderson added 15 while Conant ended with 13.

Madison shot just 1-for-6 to start the fourth but finished 6-for-14 from the floor.

“We were trying to put pressure on the ball,” said Weston. “They’d come down and try to get the ball inside. We thought we had them with a man-to-man. We thought it worked at times, but we let it get away from us.”

Madison managed to settle down and start hitting shots down the stretch.

“We were a little helter skelter down the stretch for awhile, but we realized we needed to calm down and make them come out at us,” Jarvais said. “That made it easier to maintain our composure.”

Dirigo’s cause wasn’t helped by the injury to starting guard Emma Lueders. She had injured her hip in the prelim win and aggravated it Wednesday. She gutted it out but had to come out at times down the stretch. Once the Bulldogs started hitting shots, Dirigo struggled to keep pace.

“That’s partly our fault,” Weston said. “They made a shot and we’d try to shoot from the outside again when we had it under control. We should have gotten it inside. We have some girls that can post up or we could get some nice drives.”

Madison opened a 16-12 lead in the first. The Bulldogs dominated the boards, getting 13 offensive rebounds and having a number of second chances on shots.

“The thing that killed us was our boxing out and not rebounding,” said Weston. “We just did not do it good enough.”

Dirigo tied the game in the second on a 3 from Lyndsy Crutchfield but Madison got baskets by Erin Whalen and Jarvais on a rebound for a 26-22 lead at the half.

Dirigo was within one point three times in the third, but Madison opened up a 45-36 lead with an 8-3 run late. Bess had 12 of her points in the third. Dirigo got four free throws by Henderson and a basket by Conant to cut the lead to 47-42 entering the fourth.

Though Madison struggled to start the fourth, the Bulldogs didn’t panic.

“You’ve got to play the whole quarter,” Veneziano said. “Sometimes you get caught up in a close game with the next shot or the next basket. You have to play the full eight minutes.”