// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/instr_set/opcodes_CLMUL.c
// Function: pclmulqdq_
void __bea_callspec__ pclmulqdq_(PDISASM pMyDisasm)
{
    /* ========== 0x66 */
    if (GV.OperandSize == 16) {
        (*pMyDisasm).Prefix.OperandSize = MandatoryPrefix;
        GV.MemDecoration = Arg2dqword;
        (*pMyDisasm).Instruction.Category = CLMUL_INSTRUCTION;

        GV.ImmediatSize = 8;
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
        GV.EIP_++;
        if (!Security(0, pMyDisasm)) return;

        (*pMyDisasm).Instruction.Immediat = *((UInt8*)(UIntPtr) (GV.EIP_- 1));

        if ((*pMyDisasm).Instruction.Immediat == 0) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pclmullqlqdq ");
            #endif
        }
        else if ((*pMyDisasm).Instruction.Immediat == 0x01 ) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pclmulhqlqdq ");
            #endif
        }
        else if ((*pMyDisasm).Instruction.Immediat == 0x10 ) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pclmullqhqdq ");
            #endif
        }
        else if ((*pMyDisasm).Instruction.Immediat == 0x011 ) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pclmulhqhqdq ");
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pclmulqdq ");
            #endif
            GV.third_arg = 1;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument3.ArgMnemonic, "%.2X",(Int64) *((UInt8*)(UIntPtr) (GV.EIP_- 1)));
            #endif
            (*pMyDisasm).Argument3.ArgType = CONSTANT_TYPE+ABSOLUTE_;
            (*pMyDisasm).Argument3.ArgSize = 8;
        }
    }
    else {
        FailDecode(pMyDisasm);
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x10, 0x20c(%rdi)
jne 0x269a6
movb $0x8, 0x1dd(%rbx)
movl $0x6c, 0x210(%rbx)
movl $0x80000000, 0x60(%rbx) # imm = 0x80000000
movl $0x8, 0x260(%rbx)
movl $0x1, 0x230(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b196
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b24b
movl 0x244(%rbx), %eax
addl $0x2, %eax
addq 0x1f0(%rbx), %rax
movl $0x0, 0x230(%rbx)
leaq 0x1(%rax), %rcx
movq %rcx, 0x1f0(%rbx)
movq 0x250(%rbx), %rdx
decq %rdx
cmpq %rcx, %rdx
jae 0x269c0
movl $0x1, 0x289(%rbx)
jmp 0x26a7d
movb $0x0, 0x6c(%rbx)
movl $0x203f3f3f, 0x68(%rbx) # imm = 0x203F3F3F
movl $0x1, 0x280(%rbx)
jmp 0x26a7d
movzbl (%rax), %edx
movq %rdx, 0x90(%rbx)
leaq 0x68(%rbx), %rcx
cmpl $0xf, %edx
jg 0x269e8
testl %edx, %edx
je 0x26a56
cmpl $0x1, %edx
jne 0x26a0c
movabsq $0x207164716c7168, %rax # imm = 0x207164716C7168
jmp 0x269fc
cmpl $0x10, %edx
je 0x26a62
cmpl $0x11, %edx
jne 0x26a0c
movabsq $0x20716471687168, %rax # imm = 0x20716471687168
movq %rax, 0x6(%rcx)
movabsq $0x71686c756d6c6370, %rax # imm = 0x71686C756D6C6370
jmp 0x26a7a
movabsq $0x64716c756d6c6370, %rdx # imm = 0x64716C756D6C6370
movq %rdx, (%rcx)
movl $0x207164, 0x7(%rcx)    # imm = 0x207164
movl $0x1, 0x278(%rbx)
leaq 0x16c(%rbx), %rsi
movzbl (%rax), %ecx
leaq 0x6fd8(%rip), %rdx      # 0x2da13
movq %rbx, %rdi
callq 0x2acdf
movabsq $0x888000000, %rax      # imm = 0x888000000
movq %rax, 0x1ac(%rbx)
jmp 0x26a7d
movabsq $0x207164716c716c, %rax # imm = 0x207164716C716C
jmp 0x26a6c
movabsq $0x2071647168716c, %rax # imm = 0x2071647168716C
movq %rax, 0x6(%rcx)
movabsq $0x716c6c756d6c6370, %rax # imm = 0x716C6C756D6C6370
movq %rax, (%rcx)
popq %rbx
retq