First whistle/handsignal: "station work complete"-signal to guard that station duties are complete, passengers have boarded/alighted and it is safe for the guard to close doors
Second whistle/handsignal: "train safety check complete"-signal to guard that doors are closed and obstruction lights are out, nothing is trapped and it is safe to depart. Guard will then close their local door and give the "right away" (2 buzzes)
At some stations, instead of the guard giving the right away, they signal to the platform staff as they close their local door, who then operate an indicator on the platform.
This is generally standard procedure for any assisted (involving station dispatch staff) dispatch of a guarded train. For a driver only train, these will be shown to the driver instead of the guard and the "train safety check complete" signal is usually accompanied with a green flag/lamp to the driver or operating a right away indicator on the platform.