// File: /workspace/github_c_makefile_star2_O3/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 0x262f3
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 0x2aa8c
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2ab36
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 0x2630d
movl $0x1, 0x289(%rbx)
jmp 0x263ca
movb $0x0, 0x6c(%rbx)
movl $0x203f3f3f, 0x68(%rbx) # imm = 0x203F3F3F
movl $0x1, 0x280(%rbx)
jmp 0x263ca
movzbl (%rax), %edx
movq %rdx, 0x90(%rbx)
leaq 0x68(%rbx), %rcx
cmpl $0xf, %edx
jg 0x26335
testl %edx, %edx
je 0x263a3
cmpl $0x1, %edx
jne 0x26359
movabsq $0x207164716c7168, %rax # imm = 0x207164716C7168
jmp 0x26349
cmpl $0x10, %edx
je 0x263af
cmpl $0x11, %edx
jne 0x26359
movabsq $0x20716471687168, %rax # imm = 0x20716471687168
movq %rax, 0x6(%rcx)
movabsq $0x71686c756d6c6370, %rax # imm = 0x71686C756D6C6370
jmp 0x263c7
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 0x768b(%rip), %rdx      # 0x2da13
movq %rbx, %rdi
callq 0x2a60b
movabsq $0x888000000, %rax      # imm = 0x888000000
movq %rax, 0x1ac(%rbx)
jmp 0x263ca
movabsq $0x207164716c716c, %rax # imm = 0x207164716C716C
jmp 0x263b9
movabsq $0x2071647168716c, %rax # imm = 0x2071647168716C
movq %rax, 0x6(%rcx)
movabsq $0x716c6c756d6c6370, %rax # imm = 0x716C6C756D6C6370
movq %rax, (%rcx)
popq %rbx
retq