NF rules - A1 launches a shot from beyond the 3 point line and is flagrantly fouled by B1 before returning to the floor. While the ball is in flight, the lead official blows his whistle and calls a double foul on A2 and B2. Also while the ball is in flight, coach A, reacting to the flagrant foul, runs onto the court after B1 and the trail official blows his whistle and signals a technical foul on coach A. As the ball decends toward the basket, the horn goes off to signal the end of the quarter. Then, while the ball is on its downward flight, but before it enters the cylinder, B3 jumps up and knocks it away and the lead official blows his whistle again for goaltending.
Have fun.