I ended up deciding to just implement rolls up to 31, and then have a input reversing multiplexer to handle L/R
I guess LUT could work well, but it would be a ton of work to construct them.
And i think I forgot to implement a RRX. That's not gonna be fun to fix.