Here is a link that you may find helpful on the subject of working out licks.
I worked out many songs and complex licks from phonograph records for many years. Many gizmos have been made available for this purpose over the years. I recall a cassette tape device made by Marantz that would slow down songs but keep them in pitch.
As stated in the advice in the link, the best way to work out stuff is to develop your "workin' out skills"
Sorry I can't be of any more help, but I'm sure you will find something to help you out if you think you really need it.