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. 
Inside the gate is the wide Courtyard of Black Eunuchs.