type instArgs … type instFormat … var errShort … var errUnknown … var decoderCover … func init() { … } // Decode decodes the 4 bytes in src as a single instruction. func Decode(src []byte) (inst Inst, err error) { … } // decodeArg decodes the arg described by aop from the instruction bits x. // It returns nil if x cannot be decoded according to aop. func decodeArg(aop instArg, x uint32) Arg { … } func handle_ExtendedRegister(x uint32, has_width bool) Arg { … } func handle_ImmediateShiftedRegister(x uint32, max uint8, is_w, has_ror bool) Arg { … } func handle_MemExtend(x uint32, mult uint8, absent bool) Arg { … } func handle_bitmasks(x uint32, datasize uint8) Arg { … }