Stuck at how to input this passage

Beware of one insurmountable problem with using midi with a piece such as this in Dorico: The maximum resolution for importing midi is a 32nd note. So all those 64ths in the 12/32 section would get lumped into chords with the 32nds.

It is possible to make a good midi file of, say, the first page of the Pathetique Sonata (with the famous run of 128th notes) but AFAIK there isn’t a way to import it to Dorico and get the correct rhythm.