rresx
rresx = rmasks->res0 | rmasks->res1;
if ((BIT(tc.bit) & rresx) && (!wmasks || (BIT(tc.bit) & wresx)))