How can I correctly setup attachInterrupt() in this sketch?

If the source of interrupts for INT0 and INT1 are these sine waves, then you have to transform them into square waves to get the LOW, RISING edge, and FALLING edge.