Similar to this
I realized that what I am trying to do can be done mostly with bitwise operators, no need for complicated loops or messing with the stack, so that's what I am trying to do now.
Now I need to make a choose box that works as follows:
It chooses the bits based on the value of input E (32 bit integer). If a bit of E=1, the output bit is the corresponding bit of F (another 32 bit integer). If a bit of E is 0, the output bit is the corresponding bit of G. In this way, the bits of F and G are shuffled together based on the value of E.
I guess I could make this with a loop but is there a simpler way like in the link?