i agree with chip id try to deal with the problem from the other side... Snap a pic of whats over there, might be able to take advantage of some existing stuff on that side..
but id start with sending it to the wall with a good slope, while its still above the floor joise, then use the joise as part of your P/S trap integration then back to the drain from the other side...