I like the introduction to the topic in Cellier, François E., and Ernesto Kofman. Continuous System Simulation. Softcover reprint of hardcover 1st ed. 2006. New York, NY: Springer, 2010. Continuous System Simulation | SpringerLink. In particular the chapter 7. Check it out, I guess you may have an institutional subscription.
To see just the generated function code, you can create the ODEProblem and look at prob.f.f.f_oop for the out-of-place version or prob.f.f.f_iip for the in-place version.
You can see the whole expression to create the ODEProblem with