Let say that the black wires are B1, B2 , B3 and SW1,SW2
I would find which of the 3 blacks is the feed into the box. Than that black( B1) will go to a terminal on each switch (SW1,SW2) and the remaining 2 blacks, B2 one will go to the other terminal on SW1 andB3 to SW2.
I would find which of the 3 blacks is the feed into the box. Than that black( B1) will go to a terminal on each switch (SW1,SW2) and the remaining 2 blacks, B2 one will go to the other terminal on SW1 andB3 to SW2.