// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/instr_set/opcodes_SSE.c
// Function: palignr_
void __bea_callspec__ palignr_(PDISASM pMyDisasm)
{
    (*pMyDisasm).Instruction.Category = SSE_INSTRUCTION+SIMD64bits;
    /* ========== 0x66 */
    if ((*pMyDisasm).Prefix.OperandSize == InUsePrefix) {
        GV.OperandSize = GV.OriginalOperandSize;
        (*pMyDisasm).Prefix.OperandSize = MandatoryPrefix;
        GV.MemDecoration = Arg2dqword;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "palignr ");
        #endif
        GV.ImmediatSize = 8;
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
        GV.EIP_++;
        if (!Security(0, pMyDisasm)) return;
        GV.third_arg = 1;
        (*pMyDisasm).Instruction.Immediat = *((UInt8*)(UIntPtr) (GV.EIP_- 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 {
        GV.MemDecoration = Arg2qword;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "palignr ");
        #endif
        GV.ImmediatSize = 8;
        GV.MMX_ = 1;
        GxEx(pMyDisasm);
        GV.MMX_ = 0;
        GV.EIP_++;
        if (!Security(0, pMyDisasm)) return;
        GV.third_arg = 1;
        (*pMyDisasm).Instruction.Immediat = *((UInt8*)(UIntPtr) (GV.EIP_- 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;

    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x80018, 0x60(%rdi)    # imm = 0x80018
cmpb $0x1, 0x1dd(%rdi)
jne 0x25cd6
movl 0x208(%rbx), %eax
movl %eax, 0x20c(%rbx)
movb $0x8, 0x1dd(%rbx)
movl $0x6c, 0x210(%rbx)
movabsq $0x20726e67696c6170, %rax # imm = 0x20726E67696C6170
movq %rax, 0x68(%rbx)
movb $0x0, 0x70(%rbx)
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)
jmp 0x25d3e
movl $0x68, 0x210(%rbx)
movabsq $0x20726e67696c6170, %rax # imm = 0x20726E67696C6170
movq %rax, 0x68(%rbx)
movb $0x0, 0x70(%rbx)
movl $0x8, 0x260(%rbx)
movl $0x1, 0x22c(%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, 0x22c(%rbx)
movq %rax, %rcx
incq %rcx
movq %rcx, 0x1f0(%rbx)
movq 0x250(%rbx), %rdx
decq %rdx
cmpq %rcx, %rdx
jae 0x25d66
movl $0x1, %eax
movl $0x289, %ecx            # imm = 0x289
jmp 0x25da7
movl $0x1, 0x278(%rbx)
movzbl (%rax), %ecx
movq %rcx, 0x90(%rbx)
leaq 0x16c(%rbx), %rsi
movzbl (%rax), %ecx
leaq 0x7c88(%rip), %rdx      # 0x2da13
movq %rbx, %rdi
callq 0x2acdf
movl $0x88000000, 0x1ac(%rbx) # imm = 0x88000000
movl $0x8, %eax
movl $0x1b0, %ecx            # imm = 0x1B0
movl %eax, (%rbx,%rcx)
popq %rbx
retq