Default Revert Back to Stock on Mac

Can anybody guide me to how I can revert back to stock on this phone using a mac? I can't seem to find instructions anywhere. Thanks in advance.