There aren't very good lead sheets for this song online so I made one today. Thought some other people might like to check it out. I wrote it all out in 4/4. Makes more sense that way.
On the recording, they go back to the intro groove for 4 bars before playing the head a second time. They also do it before Herbie's solo, but in his solo it's over the form.