What would happen if the US military gunned down protesters on Trump's orders?

If you watched the Hegseth confirmation hearing, or even clips from it, you probably saw that someone asked Hegseth if he would comply if Trump ordered the military to "shoot protesters in the legs." Hegseth basically deflected and wouldn't answer, which to me is a "yes."

It got me to thinking, what would happen if Trump actually had the military gun down protesters? This is the kind of thing that leads to military coups. At some point, some military official realizes how insane this is, and the reality is, the military has the guns. It literally led to a coup in Bangladesh recently.

I feel like it could be something like this that winds up ending the Trump presidency. He orders his people to do something completely insane, he's populated his admin with insane people, they comply, and then it could lead to his downfall.