With curses; "muttering profanely".
In an irreverent or profane manner; "he kept wondering profanely why everything bad happened to him".