/*
 * SPDX-FileCopyrightText: 2021-2026 LAT Project Authors
 *
 * SPDX-License-Identifier: GPL-2.0-only
 */

#ifndef CAPSTONE_dt_X86_H
#define CAPSTONE_dt_X86_H

/* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */


#include<stdint.h>
#include<stdbool.h>

/// Calculate relative address for X86-64, given cs_insn structure
#define dt_X86_REL_ADDR(insn) (((insn).detail->x86.operands[0].type == dt_X86_OP_IMM) \
	? (uint64_t)((insn).detail->x86.operands[0].imm) \
	: (((insn).address + (insn).size) + (uint64_t)(insn).detail->x86.disp))

/// X86 registers
typedef enum dt_x86_reg {
	dt_X86_REG_INVALID = 0,
	dt_X86_REG_AH, dt_X86_REG_AL, dt_X86_REG_AX, dt_X86_REG_BH, dt_X86_REG_BL,
	dt_X86_REG_BP, dt_X86_REG_BPL, dt_X86_REG_BX, dt_X86_REG_CH, dt_X86_REG_CL,
	dt_X86_REG_CS, dt_X86_REG_CX, dt_X86_REG_DH, dt_X86_REG_DI, dt_X86_REG_DIL,
	dt_X86_REG_DL, dt_X86_REG_DS, dt_X86_REG_DX, dt_X86_REG_EAX, dt_X86_REG_EBP,
	dt_X86_REG_EBX, dt_X86_REG_ECX, dt_X86_REG_EDI, dt_X86_REG_EDX, dt_X86_REG_EFLAGS,
	dt_X86_REG_EIP, dt_X86_REG_EIZ, dt_X86_REG_ES, dt_X86_REG_ESI, dt_X86_REG_ESP,
	dt_X86_REG_FPSW, dt_X86_REG_FS, dt_X86_REG_GS, dt_X86_REG_IP, dt_X86_REG_RAX,
	dt_X86_REG_RBP, dt_X86_REG_RBX, dt_X86_REG_RCX, dt_X86_REG_RDI, dt_X86_REG_RDX,
	dt_X86_REG_RIP, dt_X86_REG_RIZ, dt_X86_REG_RSI, dt_X86_REG_RSP, dt_X86_REG_SI,
	dt_X86_REG_SIL, dt_X86_REG_SP, dt_X86_REG_SPL, dt_X86_REG_SS, dt_X86_REG_CR0,
	dt_X86_REG_CR1, dt_X86_REG_CR2, dt_X86_REG_CR3, dt_X86_REG_CR4, dt_X86_REG_CR5,
	dt_X86_REG_CR6, dt_X86_REG_CR7, dt_X86_REG_CR8, dt_X86_REG_CR9, dt_X86_REG_CR10,
	dt_X86_REG_CR11, dt_X86_REG_CR12, dt_X86_REG_CR13, dt_X86_REG_CR14, dt_X86_REG_CR15,
	dt_X86_REG_DR0, dt_X86_REG_DR1, dt_X86_REG_DR2, dt_X86_REG_DR3, dt_X86_REG_DR4,
	dt_X86_REG_DR5, dt_X86_REG_DR6, dt_X86_REG_DR7, dt_X86_REG_DR8, dt_X86_REG_DR9,
	dt_X86_REG_DR10, dt_X86_REG_DR11, dt_X86_REG_DR12, dt_X86_REG_DR13, dt_X86_REG_DR14,
	dt_X86_REG_DR15, dt_X86_REG_FP0, dt_X86_REG_FP1, dt_X86_REG_FP2, dt_X86_REG_FP3,
	dt_X86_REG_FP4, dt_X86_REG_FP5, dt_X86_REG_FP6, dt_X86_REG_FP7,
	dt_X86_REG_K0, dt_X86_REG_K1, dt_X86_REG_K2, dt_X86_REG_K3, dt_X86_REG_K4,
	dt_X86_REG_K5, dt_X86_REG_K6, dt_X86_REG_K7, dt_X86_REG_MM0, dt_X86_REG_MM1,
	dt_X86_REG_MM2, dt_X86_REG_MM3, dt_X86_REG_MM4, dt_X86_REG_MM5, dt_X86_REG_MM6,
	dt_X86_REG_MM7, dt_X86_REG_R8, dt_X86_REG_R9, dt_X86_REG_R10, dt_X86_REG_R11,
	dt_X86_REG_R12, dt_X86_REG_R13, dt_X86_REG_R14, dt_X86_REG_R15,
	dt_X86_REG_ST0, dt_X86_REG_ST1, dt_X86_REG_ST2, dt_X86_REG_ST3,
	dt_X86_REG_ST4, dt_X86_REG_ST5, dt_X86_REG_ST6, dt_X86_REG_ST7,
	dt_X86_REG_XMM0, dt_X86_REG_XMM1, dt_X86_REG_XMM2, dt_X86_REG_XMM3, dt_X86_REG_XMM4,
	dt_X86_REG_XMM5, dt_X86_REG_XMM6, dt_X86_REG_XMM7, dt_X86_REG_XMM8, dt_X86_REG_XMM9,
	dt_X86_REG_XMM10, dt_X86_REG_XMM11, dt_X86_REG_XMM12, dt_X86_REG_XMM13, dt_X86_REG_XMM14,
	dt_X86_REG_XMM15, dt_X86_REG_XMM16, dt_X86_REG_XMM17, dt_X86_REG_XMM18, dt_X86_REG_XMM19,
	dt_X86_REG_XMM20, dt_X86_REG_XMM21, dt_X86_REG_XMM22, dt_X86_REG_XMM23, dt_X86_REG_XMM24,
	dt_X86_REG_XMM25, dt_X86_REG_XMM26, dt_X86_REG_XMM27, dt_X86_REG_XMM28, dt_X86_REG_XMM29,
	dt_X86_REG_XMM30, dt_X86_REG_XMM31, dt_X86_REG_YMM0, dt_X86_REG_YMM1, dt_X86_REG_YMM2,
	dt_X86_REG_YMM3, dt_X86_REG_YMM4, dt_X86_REG_YMM5, dt_X86_REG_YMM6, dt_X86_REG_YMM7,
	dt_X86_REG_YMM8, dt_X86_REG_YMM9, dt_X86_REG_YMM10, dt_X86_REG_YMM11, dt_X86_REG_YMM12,
	dt_X86_REG_YMM13, dt_X86_REG_YMM14, dt_X86_REG_YMM15, dt_X86_REG_YMM16, dt_X86_REG_YMM17,
	dt_X86_REG_YMM18, dt_X86_REG_YMM19, dt_X86_REG_YMM20, dt_X86_REG_YMM21, dt_X86_REG_YMM22,
	dt_X86_REG_YMM23, dt_X86_REG_YMM24, dt_X86_REG_YMM25, dt_X86_REG_YMM26, dt_X86_REG_YMM27,
	dt_X86_REG_YMM28, dt_X86_REG_YMM29, dt_X86_REG_YMM30, dt_X86_REG_YMM31, dt_X86_REG_ZMM0,
	dt_X86_REG_ZMM1, dt_X86_REG_ZMM2, dt_X86_REG_ZMM3, dt_X86_REG_ZMM4, dt_X86_REG_ZMM5,
	dt_X86_REG_ZMM6, dt_X86_REG_ZMM7, dt_X86_REG_ZMM8, dt_X86_REG_ZMM9, dt_X86_REG_ZMM10,
	dt_X86_REG_ZMM11, dt_X86_REG_ZMM12, dt_X86_REG_ZMM13, dt_X86_REG_ZMM14, dt_X86_REG_ZMM15,
	dt_X86_REG_ZMM16, dt_X86_REG_ZMM17, dt_X86_REG_ZMM18, dt_X86_REG_ZMM19, dt_X86_REG_ZMM20,
	dt_X86_REG_ZMM21, dt_X86_REG_ZMM22, dt_X86_REG_ZMM23, dt_X86_REG_ZMM24, dt_X86_REG_ZMM25,
	dt_X86_REG_ZMM26, dt_X86_REG_ZMM27, dt_X86_REG_ZMM28, dt_X86_REG_ZMM29, dt_X86_REG_ZMM30,
	dt_X86_REG_ZMM31, dt_X86_REG_R8B, dt_X86_REG_R9B, dt_X86_REG_R10B, dt_X86_REG_R11B,
	dt_X86_REG_R12B, dt_X86_REG_R13B, dt_X86_REG_R14B, dt_X86_REG_R15B, dt_X86_REG_R8D,
	dt_X86_REG_R9D, dt_X86_REG_R10D, dt_X86_REG_R11D, dt_X86_REG_R12D, dt_X86_REG_R13D,
	dt_X86_REG_R14D, dt_X86_REG_R15D, dt_X86_REG_R8W, dt_X86_REG_R9W, dt_X86_REG_R10W,
	dt_X86_REG_R11W, dt_X86_REG_R12W, dt_X86_REG_R13W, dt_X86_REG_R14W, dt_X86_REG_R15W,

	dt_X86_REG_ENDING		// <-- mark the end of the list of registers
} dt_x86_reg;

// Sub-flags of EFLAGS
#define dt_X86_EFLAGS_MODIFY_AF (1ULL << 0)
#define dt_X86_EFLAGS_MODIFY_CF (1ULL << 1)
#define dt_X86_EFLAGS_MODIFY_SF (1ULL << 2)
#define dt_X86_EFLAGS_MODIFY_ZF (1ULL << 3)
#define dt_X86_EFLAGS_MODIFY_PF (1ULL << 4)
#define dt_X86_EFLAGS_MODIFY_OF (1ULL << 5)
#define dt_X86_EFLAGS_MODIFY_TF (1ULL << 6)
#define dt_X86_EFLAGS_MODIFY_IF (1ULL << 7)
#define dt_X86_EFLAGS_MODIFY_DF (1ULL << 8)
#define dt_X86_EFLAGS_MODIFY_NT (1ULL << 9)
#define dt_X86_EFLAGS_MODIFY_RF (1ULL << 10)
#define dt_X86_EFLAGS_PRIOR_OF (1ULL << 11)
#define dt_X86_EFLAGS_PRIOR_SF (1ULL << 12)
#define dt_X86_EFLAGS_PRIOR_ZF (1ULL << 13)
#define dt_X86_EFLAGS_PRIOR_AF (1ULL << 14)
#define dt_X86_EFLAGS_PRIOR_PF (1ULL << 15)
#define dt_X86_EFLAGS_PRIOR_CF (1ULL << 16)
#define dt_X86_EFLAGS_PRIOR_TF (1ULL << 17)
#define dt_X86_EFLAGS_PRIOR_IF (1ULL << 18)
#define dt_X86_EFLAGS_PRIOR_DF (1ULL << 19)
#define dt_X86_EFLAGS_PRIOR_NT (1ULL << 20)
#define dt_X86_EFLAGS_RESET_OF (1ULL << 21)
#define dt_X86_EFLAGS_RESET_CF (1ULL << 22)
#define dt_X86_EFLAGS_RESET_DF (1ULL << 23)
#define dt_X86_EFLAGS_RESET_IF (1ULL << 24)
#define dt_X86_EFLAGS_RESET_SF (1ULL << 25)
#define dt_X86_EFLAGS_RESET_AF (1ULL << 26)
#define dt_X86_EFLAGS_RESET_TF (1ULL << 27)
#define dt_X86_EFLAGS_RESET_NT (1ULL << 28)
#define dt_X86_EFLAGS_RESET_PF (1ULL << 29)
#define dt_X86_EFLAGS_SET_CF (1ULL << 30)
#define dt_X86_EFLAGS_SET_DF (1ULL << 31)
#define dt_X86_EFLAGS_SET_IF (1ULL << 32)
#define dt_X86_EFLAGS_TEST_OF (1ULL << 33)
#define dt_X86_EFLAGS_TEST_SF (1ULL << 34)
#define dt_X86_EFLAGS_TEST_ZF (1ULL << 35)
#define dt_X86_EFLAGS_TEST_PF (1ULL << 36)
#define dt_X86_EFLAGS_TEST_CF (1ULL << 37)
#define dt_X86_EFLAGS_TEST_NT (1ULL << 38)
#define dt_X86_EFLAGS_TEST_DF (1ULL << 39)
#define dt_X86_EFLAGS_UNDEFINED_OF (1ULL << 40)
#define dt_X86_EFLAGS_UNDEFINED_SF (1ULL << 41)
#define dt_X86_EFLAGS_UNDEFINED_ZF (1ULL << 42)
#define dt_X86_EFLAGS_UNDEFINED_PF (1ULL << 43)
#define dt_X86_EFLAGS_UNDEFINED_AF (1ULL << 44)
#define dt_X86_EFLAGS_UNDEFINED_CF (1ULL << 45)
#define dt_X86_EFLAGS_RESET_RF (1ULL << 46)
#define dt_X86_EFLAGS_TEST_RF (1ULL << 47)
#define dt_X86_EFLAGS_TEST_IF (1ULL << 48)
#define dt_X86_EFLAGS_TEST_TF (1ULL << 49)
#define dt_X86_EFLAGS_TEST_AF (1ULL << 50)
#define dt_X86_EFLAGS_RESET_ZF (1ULL << 51)
#define dt_X86_EFLAGS_SET_OF (1ULL << 52)
#define dt_X86_EFLAGS_SET_SF (1ULL << 53)
#define dt_X86_EFLAGS_SET_ZF (1ULL << 54)
#define dt_X86_EFLAGS_SET_AF (1ULL << 55)
#define dt_X86_EFLAGS_SET_PF (1ULL << 56)
#define dt_X86_EFLAGS_RESET_0F (1ULL << 57)
#define dt_X86_EFLAGS_RESET_AC (1ULL << 58)

#define dt_X86_FPU_FLAGS_MODIFY_C0 (1ULL << 0)
#define dt_X86_FPU_FLAGS_MODIFY_C1 (1ULL << 1)
#define dt_X86_FPU_FLAGS_MODIFY_C2 (1ULL << 2)
#define dt_X86_FPU_FLAGS_MODIFY_C3 (1ULL << 3)
#define dt_X86_FPU_FLAGS_RESET_C0 (1ULL << 4)
#define dt_X86_FPU_FLAGS_RESET_C1 (1ULL << 5)
#define dt_X86_FPU_FLAGS_RESET_C2 (1ULL << 6)
#define dt_X86_FPU_FLAGS_RESET_C3 (1ULL << 7)
#define dt_X86_FPU_FLAGS_SET_C0 (1ULL << 8)
#define dt_X86_FPU_FLAGS_SET_C1 (1ULL << 9)
#define dt_X86_FPU_FLAGS_SET_C2 (1ULL << 10)
#define dt_X86_FPU_FLAGS_SET_C3 (1ULL << 11)
#define dt_X86_FPU_FLAGS_UNDEFINED_C0 (1ULL << 12)
#define dt_X86_FPU_FLAGS_UNDEFINED_C1 (1ULL << 13)
#define dt_X86_FPU_FLAGS_UNDEFINED_C2 (1ULL << 14)
#define dt_X86_FPU_FLAGS_UNDEFINED_C3 (1ULL << 15)
#define dt_X86_FPU_FLAGS_TEST_C0 (1ULL << 16)
#define dt_X86_FPU_FLAGS_TEST_C1 (1ULL << 17)
#define dt_X86_FPU_FLAGS_TEST_C2 (1ULL << 18)
#define dt_X86_FPU_FLAGS_TEST_C3 (1ULL << 19)


/// Operand type for instruction's operands
typedef enum dt_x86_op_type {
	dt_X86_OP_INVALID = 0, ///< = CS_OP_INVALID (Uninitialized).
	dt_X86_OP_REG, ///< = CS_OP_REG (Register operand).
	dt_X86_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
	dt_X86_OP_MEM, ///< = CS_OP_MEM (Memory operand).
} dt_x86_op_type;

/// XOP Code Condition type
typedef enum dt_x86_xop_cc {
	dt_X86_XOP_CC_INVALID = 0,	///< Uninitialized.
	dt_X86_XOP_CC_LT,
	dt_X86_XOP_CC_LE,
	dt_X86_XOP_CC_GT,
	dt_X86_XOP_CC_GE,
	dt_X86_XOP_CC_EQ,
	dt_X86_XOP_CC_NEQ,
	dt_X86_XOP_CC_FALSE,
	dt_X86_XOP_CC_TRUE,
} dt_x86_xop_cc;

/// AVX broadcast type
typedef enum dt_x86_avx_bcast {
	dt_X86_AVX_BCAST_INVALID = 0,	///< Uninitialized.
	dt_X86_AVX_BCAST_2,	///< AVX512 broadcast type {1to2}
	dt_X86_AVX_BCAST_4,	///< AVX512 broadcast type {1to4}
	dt_X86_AVX_BCAST_8,	///< AVX512 broadcast type {1to8}
	dt_X86_AVX_BCAST_16,	///< AVX512 broadcast type {1to16}
} dt_x86_avx_bcast;

/// SSE Code Condition type
typedef enum dt_x86_sse_cc {
	dt_X86_SSE_CC_INVALID = 0,	///< Uninitialized.
	dt_X86_SSE_CC_EQ,
	dt_X86_SSE_CC_LT,
	dt_X86_SSE_CC_LE,
	dt_X86_SSE_CC_UNORD,
	dt_X86_SSE_CC_NEQ,
	dt_X86_SSE_CC_NLT,
	dt_X86_SSE_CC_NLE,
	dt_X86_SSE_CC_ORD,
} dt_x86_sse_cc;

/// AVX Code Condition type
typedef enum dt_x86_avx_cc {
	dt_X86_AVX_CC_INVALID = 0,	///< Uninitialized.
	dt_X86_AVX_CC_EQ,
	dt_X86_AVX_CC_LT,
	dt_X86_AVX_CC_LE,
	dt_X86_AVX_CC_UNORD,
	dt_X86_AVX_CC_NEQ,
	dt_X86_AVX_CC_NLT,
	dt_X86_AVX_CC_NLE,
	dt_X86_AVX_CC_ORD,
	dt_X86_AVX_CC_EQ_UQ,
	dt_X86_AVX_CC_NGE,
	dt_X86_AVX_CC_NGT,
	dt_X86_AVX_CC_FALSE,
	dt_X86_AVX_CC_NEQ_OQ,
	dt_X86_AVX_CC_GE,
	dt_X86_AVX_CC_GT,
	dt_X86_AVX_CC_TRUE,
	dt_X86_AVX_CC_EQ_OS,
	dt_X86_AVX_CC_LT_OQ,
	dt_X86_AVX_CC_LE_OQ,
	dt_X86_AVX_CC_UNORD_S,
	dt_X86_AVX_CC_NEQ_US,
	dt_X86_AVX_CC_NLT_UQ,
	dt_X86_AVX_CC_NLE_UQ,
	dt_X86_AVX_CC_ORD_S,
	dt_X86_AVX_CC_EQ_US,
	dt_X86_AVX_CC_NGE_UQ,
	dt_X86_AVX_CC_NGT_UQ,
	dt_X86_AVX_CC_FALSE_OS,
	dt_X86_AVX_CC_NEQ_OS,
	dt_X86_AVX_CC_GE_OQ,
	dt_X86_AVX_CC_GT_OQ,
	dt_X86_AVX_CC_TRUE_US,
} dt_x86_avx_cc;

/// AVX static rounding mode type
typedef enum dt_x86_avx_rm {
	dt_X86_AVX_RM_INVALID = 0,	///< Uninitialized.
	dt_X86_AVX_RM_RN,	///< Round to nearest
	dt_X86_AVX_RM_RD,	///< Round down
	dt_X86_AVX_RM_RU,	///< Round up
	dt_X86_AVX_RM_RZ,	///< Round toward zero
} dt_x86_avx_rm;

/// Instruction prefixes - to be used in dt_cs_x86.prefix[]
typedef enum dt_x86_prefix {
	dt_X86_PREFIX_LOCK		= 	0xf0,	///< lock (dt_cs_x86.prefix[0]
	dt_X86_PREFIX_REP		= 	0xf3,	///< rep (dt_cs_x86.prefix[0]
	dt_X86_PREFIX_REPE		= 	0xf3,	///< repe/repz (dt_cs_x86.prefix[0]
	dt_X86_PREFIX_REPNE	= 	0xf2,	///< repne/repnz (dt_cs_x86.prefix[0]

	dt_X86_PREFIX_CS		= 	0x2e,	///< segment override CS (dt_cs_x86.prefix[1]
	dt_X86_PREFIX_SS		= 	0x36,	///< segment override SS (dt_cs_x86.prefix[1]
	dt_X86_PREFIX_DS		= 	0x3e,	///< segment override DS (dt_cs_x86.prefix[1]
	dt_X86_PREFIX_ES		= 	0x26,	///< segment override ES (dt_cs_x86.prefix[1]
	dt_X86_PREFIX_FS		= 	0x64,	///< segment override FS (dt_cs_x86.prefix[1]
	dt_X86_PREFIX_GS		= 	0x65,	///< segment override GS (dt_cs_x86.prefix[1]

	dt_X86_PREFIX_OPSIZE	=	0x66,	///< operand-size override (dt_cs_x86.prefix[2]
	dt_X86_PREFIX_ADDRSIZE	=	0x67,	///< address-size override (dt_cs_x86.prefix[3]
} dt_x86_prefix;

/// Instruction's operand referring to memory
/// This is associated with dt_X86_OP_MEM operand type above
typedef struct dt_x86_op_mem {
	dt_x86_reg segment; ///< segment register (or dt_X86_REG_INVALID if irrelevant)
    dt_x86_reg default_segment; /*default seg,Sometimes skips.*/
	dt_x86_reg base;	///< base register (or dt_X86_REG_INVALID if irrelevant)
	dt_x86_reg index;	///< index register (or dt_X86_REG_INVALID if irrelevant)
	int scale;	///< scale for index register
	int64_t disp;	///< displacement value
} dt_x86_op_mem;

/// Instruction operand
typedef struct dt_cs_x86_op {
		dt_x86_op_type type;	///< operand type
		union {
			dt_x86_reg reg;	  ///< register value for REG operand
			int64_t imm;		///< immediate value for IMM operand
			dt_x86_op_mem mem;		///< base/index/scale/disp value for MEM operand
		};

		/// size of this operand (in bytes).
		uint8_t size;

		/// How is this operand accessed? (READ, WRITE or READ|WRITE)
		/// This field is combined of cs_ac_type.
		/// NOTE: this field is irrelevant if engine is compiled in DIET mode.
		uint8_t access;

		/// AVX broadcast type, or 0 if irrelevant
		dt_x86_avx_bcast avx_bcast;

		/// AVX zero opmask {z}
		bool avx_zero_opmask;
} dt_cs_x86_op;

typedef struct dt_cs_x86_encoding {
	/// ModR/M offset, or 0 when irrelevant
	uint8_t modrm_offset;

	/// Displacement offset, or 0 when irrelevant.
	uint8_t disp_offset;
	uint8_t disp_size;

	/// Immediate offset, or 0 when irrelevant.
	uint8_t imm_offset;
	uint8_t imm_size;
} dt_cs_x86_encoding;

/// Instruction structure
typedef struct dt_cs_x86 {
	/// Instruction prefix, which can be up to 4 bytes.
	/// A prefix byte gets value 0 when irrelevant.
	/// prefix[0] indicates REP/REPNE/LOCK prefix (See dt_X86_PREFIX_REP/REPNE/LOCK above)
	/// prefix[1] indicates segment override (irrelevant for dt_x86_64):
	/// See dt_X86_PREFIX_CS/SS/DS/ES/FS/GS above.
	/// prefix[2] indicates operand-size override (dt_X86_PREFIX_OPSIZE)
	/// prefix[3] indicates address-size override (dt_X86_PREFIX_ADDRSIZE)
	uint8_t prefix[4];

	/// Instruction opcode, which can be from 1 to 4 bytes in size.
	/// This contains VEX opcode as well.
	/// An trailing opcode byte gets value 0 when irrelevant.
	uint8_t opcode[4];

	/// REX prefix: only a non-zero value is relevant for dt_x86_64
	uint8_t rex;

	/// Address size, which can be overridden with above prefix[5].
	uint8_t addr_size;

	/// ModR/M byte
	uint8_t modrm;

	/// SIB value, or 0 when irrelevant.
	uint8_t sib;

	/// Displacement value, valid if encoding.disp_offset != 0
	int64_t disp;

	/// SIB index register, or dt_X86_REG_INVALID when irrelevant.
	dt_x86_reg sib_index;
	/// SIB scale, only applicable if sib_index is valid.
	int8_t sib_scale;
	/// SIB base register, or dt_X86_REG_INVALID when irrelevant.
	dt_x86_reg sib_base;

	/// XOP Code Condition
	dt_x86_xop_cc xop_cc;

	/// SSE Code Condition
	dt_x86_sse_cc sse_cc;

	/// AVX Code Condition
	dt_x86_avx_cc avx_cc;

	/// AVX Suppress all Exception
	bool avx_sae;

	/// AVX static rounding mode
	dt_x86_avx_rm avx_rm;

	
	union {
		/// EFLAGS updated by this instruction.
		/// This can be formed from OR combination of dt_X86_EFLAGS_* symbols in dt_x86.h
		uint64_t eflags;
		/// FPU_FLAGS updated by this instruction.
		/// This can be formed from OR combination of dt_X86_FPU_FLAGS_* symbols in dt_x86.h
		uint64_t fpu_flags;
	};

	/// Number of operands of this instruction,
	/// or 0 when instruction has no operand.
	uint8_t op_count;

	dt_cs_x86_op operands[8];	///< operands for this instruction.

	dt_cs_x86_encoding encoding;  ///< encoding information
} dt_cs_x86;

/// X86 instructions
typedef enum dt_x86_insn {
	dt_X86_INS_INVALID = 0,

    dt_X86_INS_F2XM1,
    dt_X86_INS_WAIT,
    dt_X86_INS_FADD,
    dt_X86_INS_FADDP,
    dt_X86_INS_FBLD,
    dt_X86_INS_FBSTP,
    dt_X86_INS_FCOM,
    dt_X86_INS_FCOMI,
    dt_X86_INS_FCOMIP,
    dt_X86_INS_FCOMP,
    dt_X86_INS_FCOMPP,
    dt_X86_INS_FCOS,
    dt_X86_INS_FDIV,
    dt_X86_INS_FDIVP,
    dt_X86_INS_FDIVR,
    dt_X86_INS_FDIVRP,
    dt_X86_INS_FIADD,
    dt_X86_INS_FICOM,
    dt_X86_INS_FICOMP,
    dt_X86_INS_FIDIV,
    dt_X86_INS_FIDIVR,
    dt_X86_INS_FIMUL,
    dt_X86_INS_FISTTP,
    dt_X86_INS_FISUB,
    dt_X86_INS_FISUBR,
    dt_X86_INS_FMUL,
    dt_X86_INS_FMULP,
    dt_X86_INS_FNOP,
    dt_X86_INS_FPATAN,
    dt_X86_INS_FPREM1,
    dt_X86_INS_FPREM,
    dt_X86_INS_FPTAN,
    dt_X86_INS_FRNDINT,
    dt_X86_INS_FSCALE,
    dt_X86_INS_FSETPM,
    dt_X86_INS_FSIN,
    dt_X86_INS_FSINCOS,
    dt_X86_INS_FSQRT,
    dt_X86_INS_FSUB,
    dt_X86_INS_FSUBP,
    dt_X86_INS_FSUBR,
    dt_X86_INS_FSUBRP,
    dt_X86_INS_FTST,
    dt_X86_INS_FUCOM,
    dt_X86_INS_FUCOMI,
    dt_X86_INS_FUCOMIP,
    dt_X86_INS_FUCOMP,
    dt_X86_INS_FUCOMPP,
    dt_X86_INS_FXRSTOR,
    dt_X86_INS_FXSAVE,
    dt_X86_INS_FXTRACT,
    dt_X86_INS_FYL2X,
    dt_X86_INS_FYL2XP1,



	dt_X86_INS_AAA,
	dt_X86_INS_AAD,
	dt_X86_INS_AAM,
	dt_X86_INS_AAS,
    dt_X86_INS_FABS,
    dt_X86_INS_FCHS,
    dt_X86_INS_FCMOVBE,
    dt_X86_INS_FCMOVB,
    dt_X86_INS_FCMOVE,
    dt_X86_INS_FCMOVNBE,
    dt_X86_INS_FCMOVNB,
    dt_X86_INS_FCMOVNE,
    dt_X86_INS_FCMOVNU,
    dt_X86_INS_FCMOVU,
    dt_X86_INS_FDECSTP,
    dt_X86_INS_FFREE,
    dt_X86_INS_FFREEP,
    dt_X86_INS_FILD,
    dt_X86_INS_FINCSTP,
    dt_X86_INS_FIST,
    dt_X86_INS_FISTP,
    dt_X86_INS_FLD,
    dt_X86_INS_FLD1,
    dt_X86_INS_FLDCW,
    dt_X86_INS_FLDENV,
    dt_X86_INS_FLDL2E,
    dt_X86_INS_FLDL2T,
    dt_X86_INS_FLDLG2,
    dt_X86_INS_FLDLN2,
    dt_X86_INS_FLDPI,
    dt_X86_INS_FLDZ,
    dt_X86_INS_FNCLEX,
    dt_X86_INS_FNINIT,
    dt_X86_INS_FNSAVE,
    dt_X86_INS_FNSTENV,
    dt_X86_INS_FNSTCW,
    dt_X86_INS_FNSTSW,
    dt_X86_INS_FRSTOR,
    dt_X86_INS_FST,
    dt_X86_INS_FSTP,
    dt_X86_INS_FXAM,
    dt_X86_INS_FXCH,




	dt_X86_INS_ADC,
	dt_X86_INS_ADCX,
	dt_X86_INS_ADD,
	dt_X86_INS_ADDPD,
	dt_X86_INS_ADDPS,
	dt_X86_INS_ADDSD,
	dt_X86_INS_ADDSS,
	dt_X86_INS_ADDSUBPD,
	dt_X86_INS_ADDSUBPS,
	dt_X86_INS_ADOX,
	dt_X86_INS_AESDECLAST,
	dt_X86_INS_AESDEC,
	dt_X86_INS_AESENCLAST,
	dt_X86_INS_AESENC,
	dt_X86_INS_AESIMC,
	dt_X86_INS_AESKEYGENASSIST,
	dt_X86_INS_AND,
	dt_X86_INS_ANDN,
	dt_X86_INS_ANDNPD,
	dt_X86_INS_ANDNPS,
	dt_X86_INS_ANDPD,
	dt_X86_INS_ANDPS,
	dt_X86_INS_ARPL,
	dt_X86_INS_BEXTR,
	dt_X86_INS_BLCFILL,
	dt_X86_INS_BLCI,
	dt_X86_INS_BLCIC,
	dt_X86_INS_BLCMSK,
	dt_X86_INS_BLCS,
	dt_X86_INS_BLENDPD,
	dt_X86_INS_BLENDPS,
	dt_X86_INS_BLENDVPD,
	dt_X86_INS_BLENDVPS,
	dt_X86_INS_BLSFILL,
	dt_X86_INS_BLSI,
	dt_X86_INS_BLSIC,
	dt_X86_INS_BLSMSK,
	dt_X86_INS_BLSR,
	dt_X86_INS_BOUND,
	dt_X86_INS_BSF,
	dt_X86_INS_BSR,
	dt_X86_INS_BSWAP,
	dt_X86_INS_BT,
	dt_X86_INS_BTC,
	dt_X86_INS_BTR,
	dt_X86_INS_BTS,
	dt_X86_INS_BZHI,
	dt_X86_INS_CALL,
	dt_X86_INS_CBW,
	dt_X86_INS_CDQ,
	dt_X86_INS_CDQE,
	dt_X86_INS_CLAC,
	dt_X86_INS_CLC,
	dt_X86_INS_CLD,
	dt_X86_INS_CLFLUSH,
	dt_X86_INS_CLFLUSHOPT,
	dt_X86_INS_CLGI,
	dt_X86_INS_CLI,
	dt_X86_INS_CLTS,
	dt_X86_INS_CLWB,
	dt_X86_INS_CMC,
	dt_X86_INS_CMOVA,
	dt_X86_INS_CMOVAE,
	dt_X86_INS_CMOVB,
	dt_X86_INS_CMOVBE,
	dt_X86_INS_CMOVE,
	dt_X86_INS_CMOVG,
	dt_X86_INS_CMOVGE,
	dt_X86_INS_CMOVL,
	dt_X86_INS_CMOVLE,
	dt_X86_INS_CMOVNE,
	dt_X86_INS_CMOVNO,
	dt_X86_INS_CMOVNP,
	dt_X86_INS_CMOVNS,
	dt_X86_INS_CMOVO,
	dt_X86_INS_CMOVP,
	dt_X86_INS_CMOVS,
	dt_X86_INS_CMP,
	dt_X86_INS_CMPSB,
	dt_X86_INS_CMPSQ,
	dt_X86_INS_CMPSW,
	dt_X86_INS_CMPXCHG16B,
	dt_X86_INS_CMPXCHG,
	dt_X86_INS_CMPXCHG8B,
	dt_X86_INS_COMISD,
	dt_X86_INS_COMISS,
	dt_X86_INS_CPUID,
	dt_X86_INS_CQO,
	dt_X86_INS_CRC32,
	dt_X86_INS_CVTDQ2PD,
	dt_X86_INS_CVTDQ2PS,
	dt_X86_INS_CVTPD2DQ,
	dt_X86_INS_CVTPD2PS,
	dt_X86_INS_CVTPS2DQ,
	dt_X86_INS_CVTPS2PD,
	dt_X86_INS_CVTSD2SI,
	dt_X86_INS_CVTSD2SS,
	dt_X86_INS_CVTSI2SD,
	dt_X86_INS_CVTSI2SS,
	dt_X86_INS_CVTSS2SD,
	dt_X86_INS_CVTSS2SI,
	dt_X86_INS_CVTTPD2DQ,
	dt_X86_INS_CVTTPS2DQ,
	dt_X86_INS_CVTTSD2SI,
	dt_X86_INS_CVTTSS2SI,
	dt_X86_INS_CWD,
	dt_X86_INS_CWDE,
	dt_X86_INS_DAA,
	dt_X86_INS_DAS,
	dt_X86_INS_DATA16,
	dt_X86_INS_DEC,
	dt_X86_INS_DIV,
	dt_X86_INS_DIVPD,
	dt_X86_INS_DIVPS,
	dt_X86_INS_DIVSD,
	dt_X86_INS_DIVSS,
	dt_X86_INS_DPPD,
	dt_X86_INS_DPPS,
	dt_X86_INS_RET,
	dt_X86_INS_ENCLS,
	dt_X86_INS_ENCLU,
	dt_X86_INS_ENTER,
	dt_X86_INS_EXTRACTPS,
	dt_X86_INS_EXTRQ,
	dt_X86_INS_LCALL,
	dt_X86_INS_LJMP,
	dt_X86_INS_FEMMS,
	dt_X86_INS_FXRSTOR64,
	dt_X86_INS_FXSAVE64,
	dt_X86_INS_MOVAPD,
	dt_X86_INS_MOVAPS,
	dt_X86_INS_ORPD,
	dt_X86_INS_ORPS,
	dt_X86_INS_VMOVAPD,
	dt_X86_INS_VMOVAPS,
	dt_X86_INS_XORPD,
	dt_X86_INS_XORPS,
	dt_X86_INS_GETSEC,
	dt_X86_INS_HADDPD,
	dt_X86_INS_HADDPS,
	dt_X86_INS_HLT,
	dt_X86_INS_HSUBPD,
	dt_X86_INS_HSUBPS,
	dt_X86_INS_IDIV,
	dt_X86_INS_IMUL,
	dt_X86_INS_IN,
	dt_X86_INS_INC,
	dt_X86_INS_INSB,
	dt_X86_INS_INSERTPS,
	dt_X86_INS_INSERTQ,
	dt_X86_INS_INSD,
	dt_X86_INS_INSW,
	dt_X86_INS_INT,
	dt_X86_INS_INT1,
	dt_X86_INS_INT3,
	dt_X86_INS_INTO,
	dt_X86_INS_INVD,
	dt_X86_INS_INVEPT,
	dt_X86_INS_INVLPG,
	dt_X86_INS_INVLPGA,
	dt_X86_INS_INVPCID,
	dt_X86_INS_INVVPID,
	dt_X86_INS_IRET,
	dt_X86_INS_IRETD,
	dt_X86_INS_IRETQ,
	dt_X86_INS_UCOMISD,
	dt_X86_INS_UCOMISS,
	dt_X86_INS_VCOMISD,
	dt_X86_INS_VCOMISS,
	dt_X86_INS_VCVTSD2SS,
	dt_X86_INS_VCVTSI2SD,
	dt_X86_INS_VCVTSI2SS,
	dt_X86_INS_VCVTSS2SD,
	dt_X86_INS_VCVTTSD2SI,
	dt_X86_INS_VCVTTSD2USI,
	dt_X86_INS_VCVTTSS2SI,
	dt_X86_INS_VCVTTSS2USI,
	dt_X86_INS_VCVTUSI2SD,
	dt_X86_INS_VCVTUSI2SS,
	dt_X86_INS_VUCOMISD,
	dt_X86_INS_VUCOMISS,
	dt_X86_INS_JAE,
	dt_X86_INS_JA,
	dt_X86_INS_JBE,
	dt_X86_INS_JB,
	dt_X86_INS_JCXZ,
	dt_X86_INS_JECXZ,
	dt_X86_INS_JE,
	dt_X86_INS_JGE,
	dt_X86_INS_JG,
	dt_X86_INS_JLE,
	dt_X86_INS_JL,
	dt_X86_INS_JMP,
	dt_X86_INS_JNE,
	dt_X86_INS_JNO,
	dt_X86_INS_JNP,
	dt_X86_INS_JNS,
	dt_X86_INS_JO,
	dt_X86_INS_JP,
	dt_X86_INS_JRCXZ,
	dt_X86_INS_JS,
	dt_X86_INS_KANDB,
	dt_X86_INS_KANDD,
	dt_X86_INS_KANDNB,
	dt_X86_INS_KANDND,
	dt_X86_INS_KANDNQ,
	dt_X86_INS_KANDNW,
	dt_X86_INS_KANDQ,
	dt_X86_INS_KANDW,
	dt_X86_INS_KMOVB,
	dt_X86_INS_KMOVD,
	dt_X86_INS_KMOVQ,
	dt_X86_INS_KMOVW,
	dt_X86_INS_KNOTB,
	dt_X86_INS_KNOTD,
	dt_X86_INS_KNOTQ,
	dt_X86_INS_KNOTW,
	dt_X86_INS_KORB,
	dt_X86_INS_KORD,
	dt_X86_INS_KORQ,
	dt_X86_INS_KORTESTB,
	dt_X86_INS_KORTESTD,
	dt_X86_INS_KORTESTQ,
	dt_X86_INS_KORTESTW,
	dt_X86_INS_KORW,
	dt_X86_INS_KSHIFTLB,
	dt_X86_INS_KSHIFTLD,
	dt_X86_INS_KSHIFTLQ,
	dt_X86_INS_KSHIFTLW,
	dt_X86_INS_KSHIFTRB,
	dt_X86_INS_KSHIFTRD,
	dt_X86_INS_KSHIFTRQ,
	dt_X86_INS_KSHIFTRW,
	dt_X86_INS_KUNPCKBW,
	dt_X86_INS_KXNORB,
	dt_X86_INS_KXNORD,
	dt_X86_INS_KXNORQ,
	dt_X86_INS_KXNORW,
	dt_X86_INS_KXORB,
	dt_X86_INS_KXORD,
	dt_X86_INS_KXORQ,
	dt_X86_INS_KXORW,
	dt_X86_INS_LAHF,
	dt_X86_INS_LAR,
	dt_X86_INS_LDDQU,
	dt_X86_INS_LDMXCSR,
	dt_X86_INS_LDS,
	dt_X86_INS_LEA,
	dt_X86_INS_LEAVE,
	dt_X86_INS_LES,
	dt_X86_INS_LFENCE,
	dt_X86_INS_LFS,
	dt_X86_INS_LGDT,
	dt_X86_INS_LGS,
	dt_X86_INS_LIDT,
	dt_X86_INS_LLDT,
	dt_X86_INS_LMSW,
	dt_X86_INS_OR,
	dt_X86_INS_SUB,
	dt_X86_INS_XOR,
	dt_X86_INS_LODSB,
	dt_X86_INS_LODSD,
	dt_X86_INS_LODSQ,
	dt_X86_INS_LODSW,
	dt_X86_INS_LOOP,
	dt_X86_INS_LOOPE,
	dt_X86_INS_LOOPNE,
	dt_X86_INS_RETF,
	dt_X86_INS_RETFQ,
	dt_X86_INS_LSL,
	dt_X86_INS_LSS,
	dt_X86_INS_LTR,
	dt_X86_INS_XADD,
	dt_X86_INS_LZCNT,
	dt_X86_INS_MASKMOVDQU,
	dt_X86_INS_MAXPD,
	dt_X86_INS_MAXPS,
	dt_X86_INS_MAXSD,
	dt_X86_INS_MAXSS,
	dt_X86_INS_MFENCE,
	dt_X86_INS_MINPD,
	dt_X86_INS_MINPS,
	dt_X86_INS_MINSD,
	dt_X86_INS_MINSS,
	dt_X86_INS_CVTPD2PI,
	dt_X86_INS_CVTPI2PD,
	dt_X86_INS_CVTPI2PS,
	dt_X86_INS_CVTPS2PI,
	dt_X86_INS_CVTTPD2PI,
	dt_X86_INS_CVTTPS2PI,
	dt_X86_INS_EMMS,
	dt_X86_INS_MASKMOVQ,
	dt_X86_INS_MOVD,
	dt_X86_INS_MOVDQ2Q,
	dt_X86_INS_MOVNTQ,
	dt_X86_INS_MOVQ2DQ,
	dt_X86_INS_MOVQ,
	dt_X86_INS_PABSB,
	dt_X86_INS_PABSD,
	dt_X86_INS_PABSW,
	dt_X86_INS_PACKSSDW,
	dt_X86_INS_PACKSSWB,
	dt_X86_INS_PACKUSWB,
	dt_X86_INS_PADDB,
	dt_X86_INS_PADDD,
	dt_X86_INS_PADDQ,
	dt_X86_INS_PADDSB,
	dt_X86_INS_PADDSW,
	dt_X86_INS_PADDUSB,
	dt_X86_INS_PADDUSW,
	dt_X86_INS_PADDW,
	dt_X86_INS_PALIGNR,
	dt_X86_INS_PANDN,
	dt_X86_INS_PAND,
	dt_X86_INS_PAVGB,
	dt_X86_INS_PAVGW,
	dt_X86_INS_PCMPEQB,
	dt_X86_INS_PCMPEQD,
	dt_X86_INS_PCMPEQW,
	dt_X86_INS_PCMPGTB,
	dt_X86_INS_PCMPGTD,
	dt_X86_INS_PCMPGTW,
	dt_X86_INS_PEXTRW,
	dt_X86_INS_PHADDSW,
	dt_X86_INS_PHADDW,
	dt_X86_INS_PHADDD,
	dt_X86_INS_PHSUBD,
	dt_X86_INS_PHSUBSW,
	dt_X86_INS_PHSUBW,
	dt_X86_INS_PINSRW,
	dt_X86_INS_PMADDUBSW,
	dt_X86_INS_PMADDWD,
	dt_X86_INS_PMAXSW,
	dt_X86_INS_PMAXUB,
	dt_X86_INS_PMINSW,
	dt_X86_INS_PMINUB,
	dt_X86_INS_PMOVMSKB,
	dt_X86_INS_PMULHRSW,
	dt_X86_INS_PMULHUW,
	dt_X86_INS_PMULHW,
	dt_X86_INS_PMULLW,
	dt_X86_INS_PMULUDQ,
	dt_X86_INS_POR,
	dt_X86_INS_PSADBW,
	dt_X86_INS_PSHUFB,
	dt_X86_INS_PSHUFW,
	dt_X86_INS_PSIGNB,
	dt_X86_INS_PSIGND,
	dt_X86_INS_PSIGNW,
	dt_X86_INS_PSLLD,
	dt_X86_INS_PSLLQ,
	dt_X86_INS_PSLLW,
	dt_X86_INS_PSRAD,
	dt_X86_INS_PSRAW,
	dt_X86_INS_PSRLD,
	dt_X86_INS_PSRLQ,
	dt_X86_INS_PSRLW,
	dt_X86_INS_PSUBB,
	dt_X86_INS_PSUBD,
	dt_X86_INS_PSUBQ,
	dt_X86_INS_PSUBSB,
	dt_X86_INS_PSUBSW,
	dt_X86_INS_PSUBUSB,
	dt_X86_INS_PSUBUSW,
	dt_X86_INS_PSUBW,
	dt_X86_INS_PUNPCKHBW,
	dt_X86_INS_PUNPCKHDQ,
	dt_X86_INS_PUNPCKHWD,
	dt_X86_INS_PUNPCKLBW,
	dt_X86_INS_PUNPCKLDQ,
	dt_X86_INS_PUNPCKLWD,
	dt_X86_INS_PXOR,
	dt_X86_INS_MONITOR,
	dt_X86_INS_MONTMUL,
	dt_X86_INS_MOV,
	dt_X86_INS_MOVABS,
	dt_X86_INS_MOVBE,
	dt_X86_INS_MOVDDUP,
	dt_X86_INS_MOVDQA,
	dt_X86_INS_MOVDQU,
	dt_X86_INS_MOVHLPS,
	dt_X86_INS_MOVHPD,
	dt_X86_INS_MOVHPS,
	dt_X86_INS_MOVLHPS,
	dt_X86_INS_MOVLPD,
	dt_X86_INS_MOVLPS,
	dt_X86_INS_MOVMSKPD,
	dt_X86_INS_MOVMSKPS,
	dt_X86_INS_MOVNTDQA,
	dt_X86_INS_MOVNTDQ,
	dt_X86_INS_MOVNTI,
	dt_X86_INS_MOVNTPD,
	dt_X86_INS_MOVNTPS,
	dt_X86_INS_MOVNTSD,
	dt_X86_INS_MOVNTSS,
	dt_X86_INS_MOVSB,
	dt_X86_INS_MOVSD,
	dt_X86_INS_MOVSHDUP,
	dt_X86_INS_MOVSLDUP,
	dt_X86_INS_MOVSQ,
	dt_X86_INS_MOVSS,
	dt_X86_INS_MOVSW,
	dt_X86_INS_MOVSX,
	dt_X86_INS_MOVSXD,
	dt_X86_INS_MOVUPD,
	dt_X86_INS_MOVUPS,
	dt_X86_INS_MOVZX,
	dt_X86_INS_MPSADBW,
	dt_X86_INS_MUL,
	dt_X86_INS_MULPD,
	dt_X86_INS_MULPS,
	dt_X86_INS_MULSD,
	dt_X86_INS_MULSS,
	dt_X86_INS_MULX,
	dt_X86_INS_MWAIT,
	dt_X86_INS_NEG,
	dt_X86_INS_NOP,
	dt_X86_INS_NOT,
	dt_X86_INS_OUT,
	dt_X86_INS_OUTSB,
	dt_X86_INS_OUTSD,
	dt_X86_INS_OUTSW,
	dt_X86_INS_PACKUSDW,
	dt_X86_INS_PAUSE,
	dt_X86_INS_PAVGUSB,
	dt_X86_INS_PBLENDVB,
	dt_X86_INS_PBLENDW,
	dt_X86_INS_PCLMULQDQ,
	dt_X86_INS_PCMPEQQ,
	dt_X86_INS_PCMPESTRI,
	dt_X86_INS_PCMPESTRM,
	dt_X86_INS_PCMPGTQ,
	dt_X86_INS_PCMPISTRI,
	dt_X86_INS_PCMPISTRM,
	dt_X86_INS_PCOMMIT,
	dt_X86_INS_PDEP,
	dt_X86_INS_PEXT,
	dt_X86_INS_PEXTRB,
	dt_X86_INS_PEXTRD,
	dt_X86_INS_PEXTRQ,
	dt_X86_INS_PF2ID,
	dt_X86_INS_PF2IW,
	dt_X86_INS_PFACC,
	dt_X86_INS_PFADD,
	dt_X86_INS_PFCMPEQ,
	dt_X86_INS_PFCMPGE,
	dt_X86_INS_PFCMPGT,
	dt_X86_INS_PFMAX,
	dt_X86_INS_PFMIN,
	dt_X86_INS_PFMUL,
	dt_X86_INS_PFNACC,
	dt_X86_INS_PFPNACC,
	dt_X86_INS_PFRCPIT1,
	dt_X86_INS_PFRCPIT2,
	dt_X86_INS_PFRCP,
	dt_X86_INS_PFRSQIT1,
	dt_X86_INS_PFRSQRT,
	dt_X86_INS_PFSUBR,
	dt_X86_INS_PFSUB,
	dt_X86_INS_PHMINPOSUW,
	dt_X86_INS_PI2FD,
	dt_X86_INS_PI2FW,
	dt_X86_INS_PINSRB,
	dt_X86_INS_PINSRD,
	dt_X86_INS_PINSRQ,
	dt_X86_INS_PMAXSB,
	dt_X86_INS_PMAXSD,
	dt_X86_INS_PMAXUD,
	dt_X86_INS_PMAXUW,
	dt_X86_INS_PMINSB,
	dt_X86_INS_PMINSD,
	dt_X86_INS_PMINUD,
	dt_X86_INS_PMINUW,
	dt_X86_INS_PMOVSXBD,
	dt_X86_INS_PMOVSXBQ,
	dt_X86_INS_PMOVSXBW,
	dt_X86_INS_PMOVSXDQ,
	dt_X86_INS_PMOVSXWD,
	dt_X86_INS_PMOVSXWQ,
	dt_X86_INS_PMOVZXBD,
	dt_X86_INS_PMOVZXBQ,
	dt_X86_INS_PMOVZXBW,
	dt_X86_INS_PMOVZXDQ,
	dt_X86_INS_PMOVZXWD,
	dt_X86_INS_PMOVZXWQ,
	dt_X86_INS_PMULDQ,
	dt_X86_INS_PMULHRW,
	dt_X86_INS_PMULLD,
	dt_X86_INS_POP,
	dt_X86_INS_POPAW,
	dt_X86_INS_POPAL,
	dt_X86_INS_POPCNT,
	dt_X86_INS_POPF,
	dt_X86_INS_POPFD,
	dt_X86_INS_POPFQ,
	dt_X86_INS_PREFETCH,
	dt_X86_INS_PREFETCHNTA,
	dt_X86_INS_PREFETCHT0,
	dt_X86_INS_PREFETCHT1,
	dt_X86_INS_PREFETCHT2,
	dt_X86_INS_PREFETCHW,
	dt_X86_INS_PSHUFD,
	dt_X86_INS_PSHUFHW,
	dt_X86_INS_PSHUFLW,
	dt_X86_INS_PSLLDQ,
	dt_X86_INS_PSRLDQ,
	dt_X86_INS_PSWAPD,
	dt_X86_INS_PTEST,
	dt_X86_INS_PUNPCKHQDQ,
	dt_X86_INS_PUNPCKLQDQ,
	dt_X86_INS_PUSH,
	dt_X86_INS_PUSHAW,
	dt_X86_INS_PUSHAL,
	dt_X86_INS_PUSHF,
	dt_X86_INS_PUSHFD,
	dt_X86_INS_PUSHFQ,
	dt_X86_INS_RCL,
	dt_X86_INS_RCPPS,
	dt_X86_INS_RCPSS,
	dt_X86_INS_RCR,
	dt_X86_INS_RDFSBASE,
	dt_X86_INS_RDGSBASE,
	dt_X86_INS_RDMSR,
	dt_X86_INS_RDPMC,
	dt_X86_INS_RDRAND,
	dt_X86_INS_RDSEED,
	dt_X86_INS_RDTSC,
	dt_X86_INS_RDTSCP,
	dt_X86_INS_ROL,
	dt_X86_INS_ROR,
	dt_X86_INS_RORX,
	dt_X86_INS_ROUNDPD,
	dt_X86_INS_ROUNDPS,
	dt_X86_INS_ROUNDSD,
	dt_X86_INS_ROUNDSS,
	dt_X86_INS_RSM,
	dt_X86_INS_RSQRTPS,
	dt_X86_INS_RSQRTSS,
	dt_X86_INS_SAHF,
	dt_X86_INS_SAL,
	dt_X86_INS_SALC,
	dt_X86_INS_SAR,
	dt_X86_INS_SARX,
	dt_X86_INS_SBB,
	dt_X86_INS_SCASB,
	dt_X86_INS_SCASD,
	dt_X86_INS_SCASQ,
	dt_X86_INS_SCASW,
	dt_X86_INS_SETAE,
	dt_X86_INS_SETA,
	dt_X86_INS_SETBE,
	dt_X86_INS_SETB,
	dt_X86_INS_SETE,
	dt_X86_INS_SETGE,
	dt_X86_INS_SETG,
	dt_X86_INS_SETLE,
	dt_X86_INS_SETL,
	dt_X86_INS_SETNE,
	dt_X86_INS_SETNO,
	dt_X86_INS_SETNP,
	dt_X86_INS_SETNS,
	dt_X86_INS_SETO,
	dt_X86_INS_SETP,
	dt_X86_INS_SETS,
	dt_X86_INS_SFENCE,
	dt_X86_INS_SGDT,
	dt_X86_INS_SHA1MSG1,
	dt_X86_INS_SHA1MSG2,
	dt_X86_INS_SHA1NEXTE,
	dt_X86_INS_SHA1RNDS4,
	dt_X86_INS_SHA256MSG1,
	dt_X86_INS_SHA256MSG2,
	dt_X86_INS_SHA256RNDS2,
	dt_X86_INS_SHL,
	dt_X86_INS_SHLD,
	dt_X86_INS_SHLX,
	dt_X86_INS_SHR,
	dt_X86_INS_SHRD,
	dt_X86_INS_SHRX,
	dt_X86_INS_SHUFPD,
	dt_X86_INS_SHUFPS,
	dt_X86_INS_SIDT,
	dt_X86_INS_SKINIT,
	dt_X86_INS_SLDT,
	dt_X86_INS_SMSW,
	dt_X86_INS_SQRTPD,
	dt_X86_INS_SQRTPS,
	dt_X86_INS_SQRTSD,
	dt_X86_INS_SQRTSS,
	dt_X86_INS_STAC,
	dt_X86_INS_STC,
	dt_X86_INS_STD,
	dt_X86_INS_STGI,
	dt_X86_INS_STI,
	dt_X86_INS_STMXCSR,
	dt_X86_INS_STOSB,
	dt_X86_INS_STOSD,
	dt_X86_INS_STOSQ,
	dt_X86_INS_STOSW,
	dt_X86_INS_STR,
	dt_X86_INS_FSTPNCE,
	dt_X86_INS_SUBPD,
	dt_X86_INS_SUBPS,
	dt_X86_INS_SUBSD,
	dt_X86_INS_SUBSS,
	dt_X86_INS_SWAPGS,
	dt_X86_INS_SYSCALL,
	dt_X86_INS_SYSENTER,
	dt_X86_INS_SYSEXIT,
	dt_X86_INS_SYSRET,
	dt_X86_INS_T1MSKC,
	dt_X86_INS_TEST,
	dt_X86_INS_UD2,
	dt_X86_INS_TZCNT,
	dt_X86_INS_TZMSK,
	dt_X86_INS_UD2B,
	dt_X86_INS_UNPCKHPD,
	dt_X86_INS_UNPCKHPS,
	dt_X86_INS_UNPCKLPD,
	dt_X86_INS_UNPCKLPS,
	dt_X86_INS_VADDPD,
	dt_X86_INS_VADDPS,
	dt_X86_INS_VADDSD,
	dt_X86_INS_VADDSS,
	dt_X86_INS_VADDSUBPD,
	dt_X86_INS_VADDSUBPS,
	dt_X86_INS_VAESDECLAST,
	dt_X86_INS_VAESDEC,
	dt_X86_INS_VAESENCLAST,
	dt_X86_INS_VAESENC,
	dt_X86_INS_VAESIMC,
	dt_X86_INS_VAESKEYGENASSIST,
	dt_X86_INS_VALIGND,
	dt_X86_INS_VALIGNQ,
	dt_X86_INS_VANDNPD,
	dt_X86_INS_VANDNPS,
	dt_X86_INS_VANDPD,
	dt_X86_INS_VANDPS,
	dt_X86_INS_VBLENDMPD,
	dt_X86_INS_VBLENDMPS,
	dt_X86_INS_VBLENDPD,
	dt_X86_INS_VBLENDPS,
	dt_X86_INS_VBLENDVPD,
	dt_X86_INS_VBLENDVPS,
	dt_X86_INS_VBROADCASTF128,
	dt_X86_INS_VBROADCASTI128,
	dt_X86_INS_VBROADCASTI32X4,
	dt_X86_INS_VBROADCASTI64X4,
	dt_X86_INS_VBROADCASTSD,
	dt_X86_INS_VBROADCASTSS,
	dt_X86_INS_VCOMPRESSPD,
	dt_X86_INS_VCOMPRESSPS,
	dt_X86_INS_VCVTDQ2PD,
	dt_X86_INS_VCVTDQ2PS,
	dt_X86_INS_VCVTPD2DQX,
	dt_X86_INS_VCVTPD2DQ,
	dt_X86_INS_VCVTPD2PSX,
	dt_X86_INS_VCVTPD2PS,
	dt_X86_INS_VCVTPD2UDQ,
	dt_X86_INS_VCVTPH2PS,
	dt_X86_INS_VCVTPS2DQ,
	dt_X86_INS_VCVTPS2PD,
	dt_X86_INS_VCVTPS2PH,
	dt_X86_INS_VCVTPS2UDQ,
	dt_X86_INS_VCVTSD2SI,
	dt_X86_INS_VCVTSD2USI,
	dt_X86_INS_VCVTSS2SI,
	dt_X86_INS_VCVTSS2USI,
	dt_X86_INS_VCVTTPD2DQX,
	dt_X86_INS_VCVTTPD2DQ,
	dt_X86_INS_VCVTTPD2UDQ,
	dt_X86_INS_VCVTTPS2DQ,
	dt_X86_INS_VCVTTPS2UDQ,
	dt_X86_INS_VCVTUDQ2PD,
	dt_X86_INS_VCVTUDQ2PS,
	dt_X86_INS_VDIVPD,
	dt_X86_INS_VDIVPS,
	dt_X86_INS_VDIVSD,
	dt_X86_INS_VDIVSS,
	dt_X86_INS_VDPPD,
	dt_X86_INS_VDPPS,
	dt_X86_INS_VERR,
	dt_X86_INS_VERW,
	dt_X86_INS_VEXP2PD,
	dt_X86_INS_VEXP2PS,
	dt_X86_INS_VEXPANDPD,
	dt_X86_INS_VEXPANDPS,
	dt_X86_INS_VEXTRACTF128,
	dt_X86_INS_VEXTRACTF32X4,
	dt_X86_INS_VEXTRACTF64X4,
	dt_X86_INS_VEXTRACTI128,
	dt_X86_INS_VEXTRACTI32X4,
	dt_X86_INS_VEXTRACTI64X4,
	dt_X86_INS_VEXTRACTPS,
	dt_X86_INS_VFMADD132PD,
	dt_X86_INS_VFMADD132PS,
	dt_X86_INS_VFMADDPD,
	dt_X86_INS_VFMADD213PD,
	dt_X86_INS_VFMADD231PD,
	dt_X86_INS_VFMADDPS,
	dt_X86_INS_VFMADD213PS,
	dt_X86_INS_VFMADD231PS,
	dt_X86_INS_VFMADDSD,
	dt_X86_INS_VFMADD213SD,
	dt_X86_INS_VFMADD132SD,
	dt_X86_INS_VFMADD231SD,
	dt_X86_INS_VFMADDSS,
	dt_X86_INS_VFMADD213SS,
	dt_X86_INS_VFMADD132SS,
	dt_X86_INS_VFMADD231SS,
	dt_X86_INS_VFMADDSUB132PD,
	dt_X86_INS_VFMADDSUB132PS,
	dt_X86_INS_VFMADDSUBPD,
	dt_X86_INS_VFMADDSUB213PD,
	dt_X86_INS_VFMADDSUB231PD,
	dt_X86_INS_VFMADDSUBPS,
	dt_X86_INS_VFMADDSUB213PS,
	dt_X86_INS_VFMADDSUB231PS,
	dt_X86_INS_VFMSUB132PD,
	dt_X86_INS_VFMSUB132PS,
	dt_X86_INS_VFMSUBADD132PD,
	dt_X86_INS_VFMSUBADD132PS,
	dt_X86_INS_VFMSUBADDPD,
	dt_X86_INS_VFMSUBADD213PD,
	dt_X86_INS_VFMSUBADD231PD,
	dt_X86_INS_VFMSUBADDPS,
	dt_X86_INS_VFMSUBADD213PS,
	dt_X86_INS_VFMSUBADD231PS,
	dt_X86_INS_VFMSUBPD,
	dt_X86_INS_VFMSUB213PD,
	dt_X86_INS_VFMSUB231PD,
	dt_X86_INS_VFMSUBPS,
	dt_X86_INS_VFMSUB213PS,
	dt_X86_INS_VFMSUB231PS,
	dt_X86_INS_VFMSUBSD,
	dt_X86_INS_VFMSUB213SD,
	dt_X86_INS_VFMSUB132SD,
	dt_X86_INS_VFMSUB231SD,
	dt_X86_INS_VFMSUBSS,
	dt_X86_INS_VFMSUB213SS,
	dt_X86_INS_VFMSUB132SS,
	dt_X86_INS_VFMSUB231SS,
	dt_X86_INS_VFNMADD132PD,
	dt_X86_INS_VFNMADD132PS,
	dt_X86_INS_VFNMADDPD,
	dt_X86_INS_VFNMADD213PD,
	dt_X86_INS_VFNMADD231PD,
	dt_X86_INS_VFNMADDPS,
	dt_X86_INS_VFNMADD213PS,
	dt_X86_INS_VFNMADD231PS,
	dt_X86_INS_VFNMADDSD,
	dt_X86_INS_VFNMADD213SD,
	dt_X86_INS_VFNMADD132SD,
	dt_X86_INS_VFNMADD231SD,
	dt_X86_INS_VFNMADDSS,
	dt_X86_INS_VFNMADD213SS,
	dt_X86_INS_VFNMADD132SS,
	dt_X86_INS_VFNMADD231SS,
	dt_X86_INS_VFNMSUB132PD,
	dt_X86_INS_VFNMSUB132PS,
	dt_X86_INS_VFNMSUBPD,
	dt_X86_INS_VFNMSUB213PD,
	dt_X86_INS_VFNMSUB231PD,
	dt_X86_INS_VFNMSUBPS,
	dt_X86_INS_VFNMSUB213PS,
	dt_X86_INS_VFNMSUB231PS,
	dt_X86_INS_VFNMSUBSD,
	dt_X86_INS_VFNMSUB213SD,
	dt_X86_INS_VFNMSUB132SD,
	dt_X86_INS_VFNMSUB231SD,
	dt_X86_INS_VFNMSUBSS,
	dt_X86_INS_VFNMSUB213SS,
	dt_X86_INS_VFNMSUB132SS,
	dt_X86_INS_VFNMSUB231SS,
	dt_X86_INS_VFRCZPD,
	dt_X86_INS_VFRCZPS,
	dt_X86_INS_VFRCZSD,
	dt_X86_INS_VFRCZSS,
	dt_X86_INS_VORPD,
	dt_X86_INS_VORPS,
	dt_X86_INS_VXORPD,
	dt_X86_INS_VXORPS,
	dt_X86_INS_VGATHERDPD,
	dt_X86_INS_VGATHERDPS,
	dt_X86_INS_VGATHERPF0DPD,
	dt_X86_INS_VGATHERPF0DPS,
	dt_X86_INS_VGATHERPF0QPD,
	dt_X86_INS_VGATHERPF0QPS,
	dt_X86_INS_VGATHERPF1DPD,
	dt_X86_INS_VGATHERPF1DPS,
	dt_X86_INS_VGATHERPF1QPD,
	dt_X86_INS_VGATHERPF1QPS,
	dt_X86_INS_VGATHERQPD,
	dt_X86_INS_VGATHERQPS,
	dt_X86_INS_VHADDPD,
	dt_X86_INS_VHADDPS,
	dt_X86_INS_VHSUBPD,
	dt_X86_INS_VHSUBPS,
	dt_X86_INS_VINSERTF128,
	dt_X86_INS_VINSERTF32X4,
	dt_X86_INS_VINSERTF32X8,
	dt_X86_INS_VINSERTF64X2,
	dt_X86_INS_VINSERTF64X4,
	dt_X86_INS_VINSERTI128,
	dt_X86_INS_VINSERTI32X4,
	dt_X86_INS_VINSERTI32X8,
	dt_X86_INS_VINSERTI64X2,
	dt_X86_INS_VINSERTI64X4,
	dt_X86_INS_VINSERTPS,
	dt_X86_INS_VLDDQU,
	dt_X86_INS_VLDMXCSR,
	dt_X86_INS_VMASKMOVDQU,
	dt_X86_INS_VMASKMOVPD,
	dt_X86_INS_VMASKMOVPS,
	dt_X86_INS_VMAXPD,
	dt_X86_INS_VMAXPS,
	dt_X86_INS_VMAXSD,
	dt_X86_INS_VMAXSS,
	dt_X86_INS_VMCALL,
	dt_X86_INS_VMCLEAR,
	dt_X86_INS_VMFUNC,
	dt_X86_INS_VMINPD,
	dt_X86_INS_VMINPS,
	dt_X86_INS_VMINSD,
	dt_X86_INS_VMINSS,
	dt_X86_INS_VMLAUNCH,
	dt_X86_INS_VMLOAD,
	dt_X86_INS_VMMCALL,
	dt_X86_INS_VMOVQ,
	dt_X86_INS_VMOVDDUP,
	dt_X86_INS_VMOVD,
	dt_X86_INS_VMOVDQA32,
	dt_X86_INS_VMOVDQA64,
	dt_X86_INS_VMOVDQA,
	dt_X86_INS_VMOVDQU16,
	dt_X86_INS_VMOVDQU32,
	dt_X86_INS_VMOVDQU64,
	dt_X86_INS_VMOVDQU8,
	dt_X86_INS_VMOVDQU,
	dt_X86_INS_VMOVHLPS,
	dt_X86_INS_VMOVHPD,
	dt_X86_INS_VMOVHPS,
	dt_X86_INS_VMOVLHPS,
	dt_X86_INS_VMOVLPD,
	dt_X86_INS_VMOVLPS,
	dt_X86_INS_VMOVMSKPD,
	dt_X86_INS_VMOVMSKPS,
	dt_X86_INS_VMOVNTDQA,
	dt_X86_INS_VMOVNTDQ,
	dt_X86_INS_VMOVNTPD,
	dt_X86_INS_VMOVNTPS,
	dt_X86_INS_VMOVSD,
	dt_X86_INS_VMOVSHDUP,
	dt_X86_INS_VMOVSLDUP,
	dt_X86_INS_VMOVSS,
	dt_X86_INS_VMOVUPD,
	dt_X86_INS_VMOVUPS,
	dt_X86_INS_VMPSADBW,
	dt_X86_INS_VMPTRLD,
	dt_X86_INS_VMPTRST,
	dt_X86_INS_VMREAD,
	dt_X86_INS_VMRESUME,
	dt_X86_INS_VMRUN,
	dt_X86_INS_VMSAVE,
	dt_X86_INS_VMULPD,
	dt_X86_INS_VMULPS,
	dt_X86_INS_VMULSD,
	dt_X86_INS_VMULSS,
	dt_X86_INS_VMWRITE,
	dt_X86_INS_VMXOFF,
	dt_X86_INS_VMXON,
	dt_X86_INS_VPABSB,
	dt_X86_INS_VPABSD,
	dt_X86_INS_VPABSQ,
	dt_X86_INS_VPABSW,
	dt_X86_INS_VPACKSSDW,
	dt_X86_INS_VPACKSSWB,
	dt_X86_INS_VPACKUSDW,
	dt_X86_INS_VPACKUSWB,
	dt_X86_INS_VPADDB,
	dt_X86_INS_VPADDD,
	dt_X86_INS_VPADDQ,
	dt_X86_INS_VPADDSB,
	dt_X86_INS_VPADDSW,
	dt_X86_INS_VPADDUSB,
	dt_X86_INS_VPADDUSW,
	dt_X86_INS_VPADDW,
	dt_X86_INS_VPALIGNR,
	dt_X86_INS_VPANDD,
	dt_X86_INS_VPANDND,
	dt_X86_INS_VPANDNQ,
	dt_X86_INS_VPANDN,
	dt_X86_INS_VPANDQ,
	dt_X86_INS_VPAND,
	dt_X86_INS_VPAVGB,
	dt_X86_INS_VPAVGW,
	dt_X86_INS_VPBLENDD,
	dt_X86_INS_VPBLENDMB,
	dt_X86_INS_VPBLENDMD,
	dt_X86_INS_VPBLENDMQ,
	dt_X86_INS_VPBLENDMW,
	dt_X86_INS_VPBLENDVB,
	dt_X86_INS_VPBLENDW,
	dt_X86_INS_VPBROADCASTB,
	dt_X86_INS_VPBROADCASTD,
	dt_X86_INS_VPBROADCASTMB2Q,
	dt_X86_INS_VPBROADCASTMW2D,
	dt_X86_INS_VPBROADCASTQ,
	dt_X86_INS_VPBROADCASTW,
	dt_X86_INS_VPCLMULQDQ,
	dt_X86_INS_VPCMOV,
	dt_X86_INS_VPCMPB,
	dt_X86_INS_VPCMPD,
	dt_X86_INS_VPCMPEQB,
	dt_X86_INS_VPCMPEQD,
	dt_X86_INS_VPCMPEQQ,
	dt_X86_INS_VPCMPEQW,
	dt_X86_INS_VPCMPESTRI,
	dt_X86_INS_VPCMPESTRM,
	dt_X86_INS_VPCMPGTB,
	dt_X86_INS_VPCMPGTD,
	dt_X86_INS_VPCMPGTQ,
	dt_X86_INS_VPCMPGTW,
	dt_X86_INS_VPCMPISTRI,
	dt_X86_INS_VPCMPISTRM,
	dt_X86_INS_VPCMPQ,
	dt_X86_INS_VPCMPUB,
	dt_X86_INS_VPCMPUD,
	dt_X86_INS_VPCMPUQ,
	dt_X86_INS_VPCMPUW,
	dt_X86_INS_VPCMPW,
	dt_X86_INS_VPCOMB,
	dt_X86_INS_VPCOMD,
	dt_X86_INS_VPCOMPRESSD,
	dt_X86_INS_VPCOMPRESSQ,
	dt_X86_INS_VPCOMQ,
	dt_X86_INS_VPCOMUB,
	dt_X86_INS_VPCOMUD,
	dt_X86_INS_VPCOMUQ,
	dt_X86_INS_VPCOMUW,
	dt_X86_INS_VPCOMW,
	dt_X86_INS_VPCONFLICTD,
	dt_X86_INS_VPCONFLICTQ,
	dt_X86_INS_VPERM2F128,
	dt_X86_INS_VPERM2I128,
	dt_X86_INS_VPERMD,
	dt_X86_INS_VPERMI2D,
	dt_X86_INS_VPERMI2PD,
	dt_X86_INS_VPERMI2PS,
	dt_X86_INS_VPERMI2Q,
	dt_X86_INS_VPERMIL2PD,
	dt_X86_INS_VPERMIL2PS,
	dt_X86_INS_VPERMILPD,
	dt_X86_INS_VPERMILPS,
	dt_X86_INS_VPERMPD,
	dt_X86_INS_VPERMPS,
	dt_X86_INS_VPERMQ,
	dt_X86_INS_VPERMT2D,
	dt_X86_INS_VPERMT2PD,
	dt_X86_INS_VPERMT2PS,
	dt_X86_INS_VPERMT2Q,
	dt_X86_INS_VPEXPANDD,
	dt_X86_INS_VPEXPANDQ,
	dt_X86_INS_VPEXTRB,
	dt_X86_INS_VPEXTRD,
	dt_X86_INS_VPEXTRQ,
	dt_X86_INS_VPEXTRW,
	dt_X86_INS_VPGATHERDD,
	dt_X86_INS_VPGATHERDQ,
	dt_X86_INS_VPGATHERQD,
	dt_X86_INS_VPGATHERQQ,
	dt_X86_INS_VPHADDBD,
	dt_X86_INS_VPHADDBQ,
	dt_X86_INS_VPHADDBW,
	dt_X86_INS_VPHADDDQ,
	dt_X86_INS_VPHADDD,
	dt_X86_INS_VPHADDSW,
	dt_X86_INS_VPHADDUBD,
	dt_X86_INS_VPHADDUBQ,
	dt_X86_INS_VPHADDUBW,
	dt_X86_INS_VPHADDUDQ,
	dt_X86_INS_VPHADDUWD,
	dt_X86_INS_VPHADDUWQ,
	dt_X86_INS_VPHADDWD,
	dt_X86_INS_VPHADDWQ,
	dt_X86_INS_VPHADDW,
	dt_X86_INS_VPHMINPOSUW,
	dt_X86_INS_VPHSUBBW,
	dt_X86_INS_VPHSUBDQ,
	dt_X86_INS_VPHSUBD,
	dt_X86_INS_VPHSUBSW,
	dt_X86_INS_VPHSUBWD,
	dt_X86_INS_VPHSUBW,
	dt_X86_INS_VPINSRB,
	dt_X86_INS_VPINSRD,
	dt_X86_INS_VPINSRQ,
	dt_X86_INS_VPINSRW,
	dt_X86_INS_VPLZCNTD,
	dt_X86_INS_VPLZCNTQ,
	dt_X86_INS_VPMACSDD,
	dt_X86_INS_VPMACSDQH,
	dt_X86_INS_VPMACSDQL,
	dt_X86_INS_VPMACSSDD,
	dt_X86_INS_VPMACSSDQH,
	dt_X86_INS_VPMACSSDQL,
	dt_X86_INS_VPMACSSWD,
	dt_X86_INS_VPMACSSWW,
	dt_X86_INS_VPMACSWD,
	dt_X86_INS_VPMACSWW,
	dt_X86_INS_VPMADCSSWD,
	dt_X86_INS_VPMADCSWD,
	dt_X86_INS_VPMADDUBSW,
	dt_X86_INS_VPMADDWD,
	dt_X86_INS_VPMASKMOVD,
	dt_X86_INS_VPMASKMOVQ,
	dt_X86_INS_VPMAXSB,
	dt_X86_INS_VPMAXSD,
	dt_X86_INS_VPMAXSQ,
	dt_X86_INS_VPMAXSW,
	dt_X86_INS_VPMAXUB,
	dt_X86_INS_VPMAXUD,
	dt_X86_INS_VPMAXUQ,
	dt_X86_INS_VPMAXUW,
	dt_X86_INS_VPMINSB,
	dt_X86_INS_VPMINSD,
	dt_X86_INS_VPMINSQ,
	dt_X86_INS_VPMINSW,
	dt_X86_INS_VPMINUB,
	dt_X86_INS_VPMINUD,
	dt_X86_INS_VPMINUQ,
	dt_X86_INS_VPMINUW,
	dt_X86_INS_VPMOVDB,
	dt_X86_INS_VPMOVDW,
	dt_X86_INS_VPMOVM2B,
	dt_X86_INS_VPMOVM2D,
	dt_X86_INS_VPMOVM2Q,
	dt_X86_INS_VPMOVM2W,
	dt_X86_INS_VPMOVMSKB,
	dt_X86_INS_VPMOVQB,
	dt_X86_INS_VPMOVQD,
	dt_X86_INS_VPMOVQW,
	dt_X86_INS_VPMOVSDB,
	dt_X86_INS_VPMOVSDW,
	dt_X86_INS_VPMOVSQB,
	dt_X86_INS_VPMOVSQD,
	dt_X86_INS_VPMOVSQW,
	dt_X86_INS_VPMOVSXBD,
	dt_X86_INS_VPMOVSXBQ,
	dt_X86_INS_VPMOVSXBW,
	dt_X86_INS_VPMOVSXDQ,
	dt_X86_INS_VPMOVSXWD,
	dt_X86_INS_VPMOVSXWQ,
	dt_X86_INS_VPMOVUSDB,
	dt_X86_INS_VPMOVUSDW,
	dt_X86_INS_VPMOVUSQB,
	dt_X86_INS_VPMOVUSQD,
	dt_X86_INS_VPMOVUSQW,
	dt_X86_INS_VPMOVZXBD,
	dt_X86_INS_VPMOVZXBQ,
	dt_X86_INS_VPMOVZXBW,
	dt_X86_INS_VPMOVZXDQ,
	dt_X86_INS_VPMOVZXWD,
	dt_X86_INS_VPMOVZXWQ,
	dt_X86_INS_VPMULDQ,
	dt_X86_INS_VPMULHRSW,
	dt_X86_INS_VPMULHUW,
	dt_X86_INS_VPMULHW,
	dt_X86_INS_VPMULLD,
	dt_X86_INS_VPMULLQ,
	dt_X86_INS_VPMULLW,
	dt_X86_INS_VPMULUDQ,
	dt_X86_INS_VPORD,
	dt_X86_INS_VPORQ,
	dt_X86_INS_VPOR,
	dt_X86_INS_VPPERM,
	dt_X86_INS_VPROTB,
	dt_X86_INS_VPROTD,
	dt_X86_INS_VPROTQ,
	dt_X86_INS_VPROTW,
	dt_X86_INS_VPSADBW,
	dt_X86_INS_VPSCATTERDD,
	dt_X86_INS_VPSCATTERDQ,
	dt_X86_INS_VPSCATTERQD,
	dt_X86_INS_VPSCATTERQQ,
	dt_X86_INS_VPSHAB,
	dt_X86_INS_VPSHAD,
	dt_X86_INS_VPSHAQ,
	dt_X86_INS_VPSHAW,
	dt_X86_INS_VPSHLB,
	dt_X86_INS_VPSHLD,
	dt_X86_INS_VPSHLQ,
	dt_X86_INS_VPSHLW,
	dt_X86_INS_VPSHUFB,
	dt_X86_INS_VPSHUFD,
	dt_X86_INS_VPSHUFHW,
	dt_X86_INS_VPSHUFLW,
	dt_X86_INS_VPSIGNB,
	dt_X86_INS_VPSIGND,
	dt_X86_INS_VPSIGNW,
	dt_X86_INS_VPSLLDQ,
	dt_X86_INS_VPSLLD,
	dt_X86_INS_VPSLLQ,
	dt_X86_INS_VPSLLVD,
	dt_X86_INS_VPSLLVQ,
	dt_X86_INS_VPSLLW,
	dt_X86_INS_VPSRAD,
	dt_X86_INS_VPSRAQ,
	dt_X86_INS_VPSRAVD,
	dt_X86_INS_VPSRAVQ,
	dt_X86_INS_VPSRAW,
	dt_X86_INS_VPSRLDQ,
	dt_X86_INS_VPSRLD,
	dt_X86_INS_VPSRLQ,
	dt_X86_INS_VPSRLVD,
	dt_X86_INS_VPSRLVQ,
	dt_X86_INS_VPSRLW,
	dt_X86_INS_VPSUBB,
	dt_X86_INS_VPSUBD,
	dt_X86_INS_VPSUBQ,
	dt_X86_INS_VPSUBSB,
	dt_X86_INS_VPSUBSW,
	dt_X86_INS_VPSUBUSB,
	dt_X86_INS_VPSUBUSW,
	dt_X86_INS_VPSUBW,
	dt_X86_INS_VPTESTMD,
	dt_X86_INS_VPTESTMQ,
	dt_X86_INS_VPTESTNMD,
	dt_X86_INS_VPTESTNMQ,
	dt_X86_INS_VPTEST,
	dt_X86_INS_VPUNPCKHBW,
	dt_X86_INS_VPUNPCKHDQ,
	dt_X86_INS_VPUNPCKHQDQ,
	dt_X86_INS_VPUNPCKHWD,
	dt_X86_INS_VPUNPCKLBW,
	dt_X86_INS_VPUNPCKLDQ,
	dt_X86_INS_VPUNPCKLQDQ,
	dt_X86_INS_VPUNPCKLWD,
	dt_X86_INS_VPXORD,
	dt_X86_INS_VPXORQ,
	dt_X86_INS_VPXOR,
	dt_X86_INS_VRCP14PD,
	dt_X86_INS_VRCP14PS,
	dt_X86_INS_VRCP14SD,
	dt_X86_INS_VRCP14SS,
	dt_X86_INS_VRCP28PD,
	dt_X86_INS_VRCP28PS,
	dt_X86_INS_VRCP28SD,
	dt_X86_INS_VRCP28SS,
	dt_X86_INS_VRCPPS,
	dt_X86_INS_VRCPSS,
	dt_X86_INS_VRNDSCALEPD,
	dt_X86_INS_VRNDSCALEPS,
	dt_X86_INS_VRNDSCALESD,
	dt_X86_INS_VRNDSCALESS,
	dt_X86_INS_VROUNDPD,
	dt_X86_INS_VROUNDPS,
	dt_X86_INS_VROUNDSD,
	dt_X86_INS_VROUNDSS,
	dt_X86_INS_VRSQRT14PD,
	dt_X86_INS_VRSQRT14PS,
	dt_X86_INS_VRSQRT14SD,
	dt_X86_INS_VRSQRT14SS,
	dt_X86_INS_VRSQRT28PD,
	dt_X86_INS_VRSQRT28PS,
	dt_X86_INS_VRSQRT28SD,
	dt_X86_INS_VRSQRT28SS,
	dt_X86_INS_VRSQRTPS,
	dt_X86_INS_VRSQRTSS,
	dt_X86_INS_VSCATTERDPD,
	dt_X86_INS_VSCATTERDPS,
	dt_X86_INS_VSCATTERPF0DPD,
	dt_X86_INS_VSCATTERPF0DPS,
	dt_X86_INS_VSCATTERPF0QPD,
	dt_X86_INS_VSCATTERPF0QPS,
	dt_X86_INS_VSCATTERPF1DPD,
	dt_X86_INS_VSCATTERPF1DPS,
	dt_X86_INS_VSCATTERPF1QPD,
	dt_X86_INS_VSCATTERPF1QPS,
	dt_X86_INS_VSCATTERQPD,
	dt_X86_INS_VSCATTERQPS,
	dt_X86_INS_VSHUFPD,
	dt_X86_INS_VSHUFPS,
	dt_X86_INS_VSQRTPD,
	dt_X86_INS_VSQRTPS,
	dt_X86_INS_VSQRTSD,
	dt_X86_INS_VSQRTSS,
	dt_X86_INS_VSTMXCSR,
	dt_X86_INS_VSUBPD,
	dt_X86_INS_VSUBPS,
	dt_X86_INS_VSUBSD,
	dt_X86_INS_VSUBSS,
	dt_X86_INS_VTESTPD,
	dt_X86_INS_VTESTPS,
	dt_X86_INS_VUNPCKHPD,
	dt_X86_INS_VUNPCKHPS,
	dt_X86_INS_VUNPCKLPD,
	dt_X86_INS_VUNPCKLPS,
	dt_X86_INS_VZEROALL,
	dt_X86_INS_VZEROUPPER,
	dt_X86_INS_WBINVD,
	dt_X86_INS_WRFSBASE,
	dt_X86_INS_WRGSBASE,
	dt_X86_INS_WRMSR,
	dt_X86_INS_XABORT,
	dt_X86_INS_XACQUIRE,
	dt_X86_INS_XBEGIN,
	dt_X86_INS_XCHG,
	dt_X86_INS_XCRYPTCBC,
	dt_X86_INS_XCRYPTCFB,
	dt_X86_INS_XCRYPTCTR,
	dt_X86_INS_XCRYPTECB,
	dt_X86_INS_XCRYPTOFB,
	dt_X86_INS_XEND,
	dt_X86_INS_XGETBV,
	dt_X86_INS_XLATB,
	dt_X86_INS_XRELEASE,
	dt_X86_INS_XRSTOR,
	dt_X86_INS_XRSTOR64,
	dt_X86_INS_XRSTORS,
	dt_X86_INS_XRSTORS64,
	dt_X86_INS_XSAVE,
	dt_X86_INS_XSAVE64,
	dt_X86_INS_XSAVEC,
	dt_X86_INS_XSAVEC64,
	dt_X86_INS_XSAVEOPT,
	dt_X86_INS_XSAVEOPT64,
	dt_X86_INS_XSAVES,
	dt_X86_INS_XSAVES64,
	dt_X86_INS_XSETBV,
	dt_X86_INS_XSHA1,
	dt_X86_INS_XSHA256,
	dt_X86_INS_XSTORE,
	dt_X86_INS_XTEST,
	dt_X86_INS_FDISI8087_NOP,
	dt_X86_INS_FENI8087_NOP,

	// pseudo instructions
	dt_X86_INS_CMPSS,
	dt_X86_INS_CMPEQSS,
	dt_X86_INS_CMPLTSS,
	dt_X86_INS_CMPLESS,
	dt_X86_INS_CMPUNORDSS,
	dt_X86_INS_CMPNEQSS,
	dt_X86_INS_CMPNLTSS,
	dt_X86_INS_CMPNLESS,
	dt_X86_INS_CMPORDSS,

	dt_X86_INS_CMPSD,
	dt_X86_INS_CMPEQSD,
	dt_X86_INS_CMPLTSD,
	dt_X86_INS_CMPLESD,
	dt_X86_INS_CMPUNORDSD,
	dt_X86_INS_CMPNEQSD,
	dt_X86_INS_CMPNLTSD,
	dt_X86_INS_CMPNLESD,
	dt_X86_INS_CMPORDSD,

	dt_X86_INS_CMPPS,
	dt_X86_INS_CMPEQPS,
	dt_X86_INS_CMPLTPS,
	dt_X86_INS_CMPLEPS,
	dt_X86_INS_CMPUNORDPS,
	dt_X86_INS_CMPNEQPS,
	dt_X86_INS_CMPNLTPS,
	dt_X86_INS_CMPNLEPS,
	dt_X86_INS_CMPORDPS,

	dt_X86_INS_CMPPD,
	dt_X86_INS_CMPEQPD,
	dt_X86_INS_CMPLTPD,
	dt_X86_INS_CMPLEPD,
	dt_X86_INS_CMPUNORDPD,
	dt_X86_INS_CMPNEQPD,
	dt_X86_INS_CMPNLTPD,
	dt_X86_INS_CMPNLEPD,
	dt_X86_INS_CMPORDPD,

	dt_X86_INS_VCMPSS,
	dt_X86_INS_VCMPEQSS,
	dt_X86_INS_VCMPLTSS,
	dt_X86_INS_VCMPLESS,
	dt_X86_INS_VCMPUNORDSS,
	dt_X86_INS_VCMPNEQSS,
	dt_X86_INS_VCMPNLTSS,
	dt_X86_INS_VCMPNLESS,
	dt_X86_INS_VCMPORDSS,
	dt_X86_INS_VCMPEQ_UQSS,
	dt_X86_INS_VCMPNGESS,
	dt_X86_INS_VCMPNGTSS,
	dt_X86_INS_VCMPFALSESS,
	dt_X86_INS_VCMPNEQ_OQSS,
	dt_X86_INS_VCMPGESS,
	dt_X86_INS_VCMPGTSS,
	dt_X86_INS_VCMPTRUESS,
	dt_X86_INS_VCMPEQ_OSSS,
	dt_X86_INS_VCMPLT_OQSS,
	dt_X86_INS_VCMPLE_OQSS,
	dt_X86_INS_VCMPUNORD_SSS,
	dt_X86_INS_VCMPNEQ_USSS,
	dt_X86_INS_VCMPNLT_UQSS,
	dt_X86_INS_VCMPNLE_UQSS,
	dt_X86_INS_VCMPORD_SSS,
	dt_X86_INS_VCMPEQ_USSS,
	dt_X86_INS_VCMPNGE_UQSS,
	dt_X86_INS_VCMPNGT_UQSS,
	dt_X86_INS_VCMPFALSE_OSSS,
	dt_X86_INS_VCMPNEQ_OSSS,
	dt_X86_INS_VCMPGE_OQSS,
	dt_X86_INS_VCMPGT_OQSS,
	dt_X86_INS_VCMPTRUE_USSS,

	dt_X86_INS_VCMPSD,
	dt_X86_INS_VCMPEQSD,
	dt_X86_INS_VCMPLTSD,
	dt_X86_INS_VCMPLESD,
	dt_X86_INS_VCMPUNORDSD,
	dt_X86_INS_VCMPNEQSD,
	dt_X86_INS_VCMPNLTSD,
	dt_X86_INS_VCMPNLESD,
	dt_X86_INS_VCMPORDSD,
	dt_X86_INS_VCMPEQ_UQSD,
	dt_X86_INS_VCMPNGESD,
	dt_X86_INS_VCMPNGTSD,
	dt_X86_INS_VCMPFALSESD,
	dt_X86_INS_VCMPNEQ_OQSD,
	dt_X86_INS_VCMPGESD,
	dt_X86_INS_VCMPGTSD,
	dt_X86_INS_VCMPTRUESD,
	dt_X86_INS_VCMPEQ_OSSD,
	dt_X86_INS_VCMPLT_OQSD,
	dt_X86_INS_VCMPLE_OQSD,
	dt_X86_INS_VCMPUNORD_SSD,
	dt_X86_INS_VCMPNEQ_USSD,
	dt_X86_INS_VCMPNLT_UQSD,
	dt_X86_INS_VCMPNLE_UQSD,
	dt_X86_INS_VCMPORD_SSD,
	dt_X86_INS_VCMPEQ_USSD,
	dt_X86_INS_VCMPNGE_UQSD,
	dt_X86_INS_VCMPNGT_UQSD,
	dt_X86_INS_VCMPFALSE_OSSD,
	dt_X86_INS_VCMPNEQ_OSSD,
	dt_X86_INS_VCMPGE_OQSD,
	dt_X86_INS_VCMPGT_OQSD,
	dt_X86_INS_VCMPTRUE_USSD,

	dt_X86_INS_VCMPPS,
	dt_X86_INS_VCMPEQPS,
	dt_X86_INS_VCMPLTPS,
	dt_X86_INS_VCMPLEPS,
	dt_X86_INS_VCMPUNORDPS,
	dt_X86_INS_VCMPNEQPS,
	dt_X86_INS_VCMPNLTPS,
	dt_X86_INS_VCMPNLEPS,
	dt_X86_INS_VCMPORDPS,
	dt_X86_INS_VCMPEQ_UQPS,
	dt_X86_INS_VCMPNGEPS,
	dt_X86_INS_VCMPNGTPS,
	dt_X86_INS_VCMPFALSEPS,
	dt_X86_INS_VCMPNEQ_OQPS,
	dt_X86_INS_VCMPGEPS,
	dt_X86_INS_VCMPGTPS,
	dt_X86_INS_VCMPTRUEPS,
	dt_X86_INS_VCMPEQ_OSPS,
	dt_X86_INS_VCMPLT_OQPS,
	dt_X86_INS_VCMPLE_OQPS,
	dt_X86_INS_VCMPUNORD_SPS,
	dt_X86_INS_VCMPNEQ_USPS,
	dt_X86_INS_VCMPNLT_UQPS,
	dt_X86_INS_VCMPNLE_UQPS,
	dt_X86_INS_VCMPORD_SPS,
	dt_X86_INS_VCMPEQ_USPS,
	dt_X86_INS_VCMPNGE_UQPS,
	dt_X86_INS_VCMPNGT_UQPS,
	dt_X86_INS_VCMPFALSE_OSPS,
	dt_X86_INS_VCMPNEQ_OSPS,
	dt_X86_INS_VCMPGE_OQPS,
	dt_X86_INS_VCMPGT_OQPS,
	dt_X86_INS_VCMPTRUE_USPS,

	dt_X86_INS_VCMPPD,
	dt_X86_INS_VCMPEQPD,
	dt_X86_INS_VCMPLTPD,
	dt_X86_INS_VCMPLEPD,
	dt_X86_INS_VCMPUNORDPD,
	dt_X86_INS_VCMPNEQPD,
	dt_X86_INS_VCMPNLTPD,
	dt_X86_INS_VCMPNLEPD,
	dt_X86_INS_VCMPORDPD,
	dt_X86_INS_VCMPEQ_UQPD,
	dt_X86_INS_VCMPNGEPD,
	dt_X86_INS_VCMPNGTPD,
	dt_X86_INS_VCMPFALSEPD,
	dt_X86_INS_VCMPNEQ_OQPD,
	dt_X86_INS_VCMPGEPD,
	dt_X86_INS_VCMPGTPD,
	dt_X86_INS_VCMPTRUEPD,
	dt_X86_INS_VCMPEQ_OSPD,
	dt_X86_INS_VCMPLT_OQPD,
	dt_X86_INS_VCMPLE_OQPD,
	dt_X86_INS_VCMPUNORD_SPD,
	dt_X86_INS_VCMPNEQ_USPD,
	dt_X86_INS_VCMPNLT_UQPD,
	dt_X86_INS_VCMPNLE_UQPD,
	dt_X86_INS_VCMPORD_SPD,
	dt_X86_INS_VCMPEQ_USPD,
	dt_X86_INS_VCMPNGE_UQPD,
	dt_X86_INS_VCMPNGT_UQPD,
	dt_X86_INS_VCMPFALSE_OSPD,
	dt_X86_INS_VCMPNEQ_OSPD,
	dt_X86_INS_VCMPGE_OQPD,
	dt_X86_INS_VCMPGT_OQPD,
	dt_X86_INS_VCMPTRUE_USPD,

	dt_X86_INS_UD0,
	dt_X86_INS_UD1,
	dt_X86_INS_ENDBR32,
	dt_X86_INS_ENDBR64,

	dt_X86_INS_BNDMOV,
	dt_X86_INS_ENDING, // mark the end of the list of insn
} dt_x86_insn;

/// Group of X86 instructions
typedef enum  dt_x86_insn_group {
	dt_X86_GRP_INVALID = 0, ///< = CS_GRP_INVALID

	// Generic groups
	// all jump instructions (conditional+direct+indirect jumps)
	dt_X86_GRP_JUMP,	///< = CS_GRP_JUMP
	// all call instructions
	dt_X86_GRP_CALL,	///< = CS_GRP_CALL
	// all return instructions
	dt_X86_GRP_RET,	///< = CS_GRP_RET
	// all interrupt instructions (int+syscall)
	dt_X86_GRP_INT,	///< = CS_GRP_INT
	// all interrupt return instructions
	dt_X86_GRP_IRET,	///< = CS_GRP_IRET
	// all privileged instructions
	dt_X86_GRP_PRIVILEGE,	///< = CS_GRP_PRIVILEGE
	// all relative branching instructions
	dt_X86_GRP_BRANCH_RELATIVE, ///< = CS_GRP_BRANCH_RELATIVE

	// Architecture-specific groups
	dt_X86_GRP_VM = 128,	///< all virtualization instructions (VT-x + AMD-V)
	dt_X86_GRP_3DNOW,
	dt_X86_GRP_AES,
	dt_X86_GRP_ADX,
	dt_X86_GRP_AVX,
	dt_X86_GRP_AVX2,
	dt_X86_GRP_AVX512,
	dt_X86_GRP_BMI,
	dt_X86_GRP_BMI2,
	dt_X86_GRP_CMOV,
	dt_X86_GRP_F16C,
	dt_X86_GRP_FMA,
	dt_X86_GRP_FMA4,
	dt_X86_GRP_FSGSBASE,
	dt_X86_GRP_HLE,
	dt_X86_GRP_MMX,
	dt_X86_GRP_MODE32,
	dt_X86_GRP_MODE64,
	dt_X86_GRP_RTM,
	dt_X86_GRP_SHA,
	dt_X86_GRP_SSE1,
	dt_X86_GRP_SSE2,
	dt_X86_GRP_SSE3,
	dt_X86_GRP_SSE41,
	dt_X86_GRP_SSE42,
	dt_X86_GRP_SSE4A,
	dt_X86_GRP_SSSE3,
	dt_X86_GRP_PCLMUL,
	dt_X86_GRP_XOP,
	dt_X86_GRP_CDI,
	dt_X86_GRP_ERI,
	dt_X86_GRP_TBM,
	dt_X86_GRP_16BITMODE,
	dt_X86_GRP_NOT64BITMODE,
	dt_X86_GRP_SGX,
	dt_X86_GRP_DQI,
	dt_X86_GRP_BWI,
	dt_X86_GRP_PFI,
	dt_X86_GRP_VLX,
	dt_X86_GRP_SMAP,
	dt_X86_GRP_NOVLX,
	dt_X86_GRP_FPU,

	dt_X86_GRP_ENDING
} dt_x86_insn_group;

#endif
