code: func trustedPull(ctx context.Context, cli command.Cli, imgRefAndAuth trust.ImageRefAndAuth, opts PullOptions) error {
  	refs, err := getTrustedPullTargets(cli, imgRefAndAuth)
  	if err != nil {
  		return err
  	}
  
  	ref := imgRefAndAuth.Reference()
  	for i, r := range refs {
  		displayTag := r.name
  		if displayTag != "" {
  			displayTag = ":" + displayTag
  		}
  		fmt.Fprintf(cli.Out(), "Pull (%d of %d): %s%s@%s\n", i+1, len(refs), reference.FamiliarName(ref), displayTag, r.digest)
  
  		trustedRef, err := reference.WithDigest(reference.TrimNamed(ref), r.digest)
  		if err != nil {
  			return err
  		}
  		updatedImgRefAndAuth, err := trust.GetImageReferencesAndAuth(ctx, nil, AuthResolver(cli), trustedRef.String())
  		if err != nil {
  			return err
  		}
  		if err := imagePullPrivileged(ctx, cli, updatedImgRefAndAuth, PullOptions{
  			all:      false,
  			platform: opts.platform,
  			quiet:    opts.quiet,
  			remote:   opts.remote,
  		}); err != nil {
  			return err
  		}
  
  		tagged, err := reference.WithTag(reference.TrimNamed(ref), r.name)
  		if err != nil {
  			return err
  		}
  
  		if err := TagTrusted(ctx, cli, trustedRef, tagged); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // trustedPull handles content trust pulling of an image