I wonder what caused the first stall warning. Was it loss of airspeed or was it G-induced by the pilot trying to recover after the AP dropped out? After that warning they still managed to climb with 7000 feet per minute to FL380...
This was recovered by a nose down command, followed by nose up for the second stall warning.