1. The problem now is that you are not covered by the EA (only covers non manual employees with salary not more than RM1500). If you were, you should be paid overtime wages from 10pm to 7am totaling 9 hours
Since the overtime work was an extension of your normal hours of work, work done after midnight to 7am should not be considered working on rest day (if it happened to be your rest day).
2. So, your normal hours of work will start again at 9am to 6pm. But you are surely unable to work such long hours and I think alternative arrangement has to be made to rearrange rest day for you. You may have to talk to your employer about working over midnight as to how you should be paid.