The following video shows how one of the pins slides along the geometry of its counterpart through a rendering and automated demonstration.
Click on step
As the latch descends, the pin is forced into a smaller area
As the latch ascends, the pin is forced into a lower lock
The second descent brings the pin into an upper lock
The second ascent frees the pin from the latch