Generally cops are supposed to stop asking you questions when you ask for a lawyer, but they don't have to let you call one right away if they're searching your house incident to a lawful arrest. I hope you and your girlfriend didn't say anything. Your instinct to shut up and ask for a lawyer was right on. Tell your attorney what happened and he'll be in the best position to see whether any of your rights were violated. I don't necessarily think any were.