Cook 1/3 cup olive oil, 6 whole garlic cloves and a rosemary sprig in a pot over medium-low heat, stirring, until the garlic is golden, 7 minutes. Season with salt and pepper. Cook 2 bunches broccoli rabe in salted boiling water until wilted, about 5 minutes. Drain and return to the pot, then pour in the garlic oil. Cover and cook, stirring occasionally, until the greens are tender, 5 minutes. Season with salt and pepper, and top with shaved parmesan.