Learn the line, then play it
Start with the bass soloed and the tempo down: the line on its own, without the kick drum on top, is far easier to hear note by note. Loop the hard passage until it sits. Then switch to Bassless and play it against the drums and the band at full speed.



