Their quarters opened off the narrow Courtyard of the Black Eunuchs, beyond the gate.
Past the gate is the Courtyard of Black Eunuchs where their quarters opened into. 
mnli hypothesis: Past the gate is the Courtyard of Black Eunuchs where their quarters opened into.  premise: Their quarters opened off the narrow Courtyard of the Black Eunuchs, beyond the gate.