You get credit man, its difficult. If you don't have the ability to walk away you are never in a position to negotiate well in your favor. Even if you somehow cave (not advisable) and get some kind of relationship back with this women, you will have set the bar that you won't be disrespected in such a manner and that you don't need her. Let me break it down for you in bullet format:
-her having autonomy to hang with her friend alone and have a few drinks in my eyes isn't a terrible thing, its good to have separate lives to some extent.
-the friend pushing to ditch you and be just the two of them isn't a huge deal, that's what people do, she has a relationship with her and not you.
-the problem is your gf's behavior, she was disrespectful and basically TOLD you she was dropping you off at home, I wouldn't take that from anyone
-she was treating you like a joke, her level of respect for you is nowhere near where it needs to be to have a functioning relationship regardless of any other traits, its not a red flag its a ****ing red whale staring you in the face
-you had no other play other then to dump her right then, anything else and her level of respect will continue to dwindle along with your happiness
You had no other option. She treated you like a joke, she was verbally smacking you around and even worse was doing it in front of her friend to humiliate you. You want something with someone like that?
A year or two into a LTR relationship I was going to a music festival with some friends in a rough area, my gf jumped in and wanted to go because one of our mutual girl friends was going along with the other 6-7 friends of mine. At some point a massive brawl breaks out and guys being guys myself and my friends are watching from a safe distance, my gf starts acting up and is panicking and starts telling me lets go and wants to break away and go who knows where. I tell her no (better to stay with the group especially considering this group of friends have all been in multiple street fights and its safer to stay with the pack) and she disobeys and goes to start taking off by herself with the other girl consoling. When we are leaving and walking she is lagging alone with the other girl consoling and won't listen to me when I tell her to walk up with me and the group so we can stay together. Eventually I raise my voice and tell her this is why she should have ****ing stayed home, if she was going to come out with all my guy friends then she needs to listen to me if she actually is worried about her safety. She cried, she acted out, all my friends looked at me in suprise and made jokes and a few of them said I went too far. I felt bad and talked to her somewhat but for the rest of the night she was quiet, distant and pissed. I was in control of the relationship and showed a lot of red pill tendencies in the relationship dynamic but still had slight AFC tendencies, was more then willing to walk away if necessary (should have). When we got home that night, after talking she agreed with me that maybe she shouldn't have came out and that I was right and she should have listened, she respected me more because she needed to be put in her place, even though she sulked and cried she realized later that I was also actually looking out for her in a crisis.
I actually felt bad and that I may have overreacted (the guilt trips of women) my friends joked about how I was a huge *******, but I actually gained respect and the guy I respected the most who was a complete natural alpha said that I was completely in the right and that he had never seen any of our friends put a women in her place like that when it was necessary. I gained respect from gf, my friends and myself even though I doubted what I did long after, now I look back and realize why the relationship was good and why it later failed.