// Phase 1
U' L2 B // setup and flip all 4 misoriented edges
// Phase 2
U2 R' U R
// three out of four E-slice edges are already in the E-slice
R2 D' U' // setup and flip three corners to get to an easier corner orientation state
U2 R U' R' // setup and flip three corners to get to the penultimate corner orientation state
R' D R // flip final three corners while inserting final E-slice edge
// Phase 3
D U' B2 D2 L2 // create 2x2x2 block
U' R2 U R2 U R2 B2 // complete 2x2x3 block
U2 R2 U R2 // solve DRF and DRB
// note that URF and URB must be swapped in order for U corners to be solved relative to one another
U // setup ULB and URB ro ULF and URF
F2 U' F2 U' F2 U2 F2 // execute corner permutation algorithm
// Phase 4
// first pair skip
U2 R2 U' R2 // create second pair
U R2 U2 R2 // create third pair
U2 R2 U' R2 U R2 U // align pairs
// Phase 5