As the diver ascends you are correct in that he is offgassing. He is not on-gassing, as it is the opposite process (both can not happen at the same time).
When your diver A went to 4atm, the partial pressue of nitrogen increases, so more nitrogen gets dissolved in the tissues. The gradient...