In a recent paper, we presented scenarios of long-time asymptotics for a solution of the focusing nonlinear Schrödinger equation whose initial data approach two different plane waves Ajeiϕje−2iBjx, j=1,2 at minus and plus infinity. In the shock case B1<B2 some scenarios include sectors of genus 3, that is sectors ξ1<ξ<ξ2, ξ:=tx where the leading term of the asymptotics is expressed in terms of hyperelliptic functions attached to a Riemann surface M(ξ) of genus 3. The long-time asymptotic analysis in such a sector is performed in another recent paper. The present paper deals with the asymptotic analysis in a transition zone between two genus 3 sectors ξ1<ξ<ξ0 and ξ0<ξ<ξ2. The leading term is expressed in terms of elliptic functions attached to a Riemann surface M~ of genus 1. A central step in the derivation is the construction of a local parametrix in a neighborhood of two merging branch points. We construct this parametrix by solving a model problem which is similar to the Riemann-Hilbert problem associated with the Painlevé IV equation.