need help diffuse binary bombassembly

The answer to this should be a an array of 6 numbers. Can someone tell me how to decrypt this for loop and what’s the answer?  Or explain to me why’s going on with those codes?