The deep branch passes between the two heads of the supinator muscle (see pp. 778–780 and Fig. 7.92) to access the posterior compartment of the forearm.
The ulnar nerve does not pass through the cubital fossa. Instead, it passes posterior to the medial epicondyle.