"64(1) Where an appeal to the sheriff is made by a restricted patient who is subject to a restriction order, the sheriff shall direct the absolute discharge of the patient if he is satisfied -
"(2) Where in the case of any patient as is mentioned in subsection (1) of this section the sheriff is satisfied as to the matters referred to in paragraph ( a ) or ( b ) of that subsection but not as to the matters referred to in paragraph ( c ) of that subsection he shall direct the conditional discharge of the patient.
"(3) Where a patient is absolutely discharged under subsection (1) of this section he shall thereupon cease to be liable to be detained by virtue of the relevant hospital order, and the restriction order shall cease to have effect accordingly.
"(4) Where a patient is conditionally discharged under subsection (2) of this section -