func findSyscallID(arch specs.Arch, previouInstructions []string, curPos int) (int64, error) {
	var i int64
	var err error
	switch arch {
	case specs.ArchX86_64:
		i, err = findSyscallIDx86_64(previouInstructions, curPos)
	case specs.ArchX86:
		i, err = findSyscallIDx86(previouInstructions, curPos)
	case specs.ArchARM:
		i, err = findSyscallIDARM(previouInstructions, curPos)
	default:
		log.Fatalln(arch, "is not supported")
	}
	return i, err
}
wrapper for each findSyscallID by arch
package main
import (
	"bufio"
	"flag"
	"fmt"
	"log"
	"os"
	"sort"
	"strconv"
	"strings"
	"github.com/opencontainers/runtime-spec/specs-go"
)
var verbose = false
const previousInstructionsBufferSize = 15