You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: block_amd64.go
    path of file: ./repos/gotosocial/vendor/github.com/minio/md5-simd
    
    the code of the file until where you have to start completion: //+build !noasm,!appengine,gc

// Copyright (c) 2020 MinIO Inc. All rights reserved.
// Use of this source code is governed by a license that can be
// found in the LICENSE file.

package md5simd

import (
	"fmt"
	"math"
	"unsafe"

	"github.com/klauspost/cpuid/v2"
)

var has
    
func (s *md5Server) blockMd5_x16(d *digest16, input [16][]byte, half bool) {
	if hasAVX512 {
		blockMd5_avx512(d, input, s.allBufs, &s.maskRounds16)
		return
	}

	// Preparing data using copy is slower since copies aren't inlined.

	// Calculate on this goroutine
	if half {
		for i := range s.i8[0][:] {
			s.i8[0][i] = input[i]
		}
		for i := range s.d8a.v0[:] {
			s.d8a.v0[i], s.d8a.v1[i], s.d8a.v2[i], s.d8a.v3[i] = d.v0[i], d.v1[i], d.v2[i], d.v3[i]
		}
		blockMd5_avx2(&s.d8a, s.i8[0], s.allBufs, &s.maskRounds8a)
		for i := range s.d8a.v0[:] {
			d.v0[i], d.v1[i], d.v2[i], d.v3[i] = s.d8a.v0[i], s.d8a.v1[i], s.d8a.v2[i], s.d8a.v3[i]
		}
		return
	}

	for i := range s.i8[0][:] {
		s.i8[0][i], s.i8[1][i] = input[i], input[8+i]
	}

	for i := range s.d8a.v0[:] {
		j := (i + 8) & 15
		s.d8a.v0[i], s.d8a.v1[i], s.d8a.v2[i], s.d8a.v3[i] = d.v0[i], d.v1[i], d.v2[i], d.v3[i]
		s.d8b.v0[i], s.d8b.v1[i], s.d8b.v2[i], s.d8b.v3[i] = d.v0[j], d.v1[j], d.v2[j], d.v3[j]
	}

	// Benchmarks appears to be slightly faster when spinning up 2 goroutines instead
	// of using the current for one of the blocks.
	s.wg.Add(2)
	go func() { blockMd5_avx2(&s.d8a, s.i8[0], s.allBufs, &s.maskRounds8a); s.wg.Done() }()
	go func() { blockMd5_avx2(&s.d8b, s.i8[1], s.allBufs, &s.maskRounds8b); s.wg.Done() }()
	s.wg.Wait()
	for i := range s.d8a.v0[:] {
		d.v0[i], d.v1[i], d.v2[i], d.v3[i] = s.d8a.v0[i], s.d8a.v1[i], s.d8a.v2[i], s.d8a.v3[i]
	}
	for i := range s.d8b.v0[:] {
		j := (i + 8) & 15
		d.v0[j], d.v1[j], d.v2[j], d.v3[j] = s.d8b.v0[i], s.d8b.v1[i], s.d8b.v2[i], s.d8b.v3[i]
	}
}