// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_SSE.c
// Function: movlps_VM
void __bea_callspec__ movlps_VM(PDISASM pMyDisasm)
{
    /* ========= 0xf2 */
    if (GV.PrefRepne == 1) {
        (*pMyDisasm).Prefix.RepnePrefix = MandatoryPrefix;
        GV.MemDecoration = Arg2qword;
        (*pMyDisasm).Instruction.Category = SSE3_INSTRUCTION+DATA_TRANSFER;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movddup ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    /* ========= 0xf3 */
    else if (GV.PrefRepe == 1) {
        (*pMyDisasm).Prefix.RepPrefix = MandatoryPrefix;
        GV.MemDecoration = Arg2qword;
        (*pMyDisasm).Instruction.Category = SSE3_INSTRUCTION+DATA_TRANSFER;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movsldup ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    /* ========== 0x66 */
    else if ((*pMyDisasm).Prefix.OperandSize == InUsePrefix) {
        GV.OperandSize = GV.OriginalOperandSize;
        (*pMyDisasm).Prefix.OperandSize = MandatoryPrefix;
        GV.MemDecoration = Arg2qword;
        (*pMyDisasm).Instruction.Category = SSE2_INSTRUCTION+DATA_TRANSFER;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movlpd ");
        #endif
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
    else {
        GV.MemDecoration = Arg2qword;
        (*pMyDisasm).Instruction.Category = SSE_INSTRUCTION+DATA_TRANSFER;
        if (GV.MOD_== 0x3) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movhlps ");
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movlps ");
            #endif
        }
        GV.SSE_ = 1;
        GxEx(pMyDisasm);
        GV.SSE_ = 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, 0x26c(%rax)
jne 0x3085f
movq -0x8(%rbp), %rax
movb $0x8, 0x1df(%rax)
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x200001, 0x60(%rax)   # imm = 0x200001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x21922(%rip), %rsi     # 0x52152
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x1, 0x230(%rax)
movq -0x8(%rbp), %rdi
callq 0x4eb90
movq -0x8(%rbp), %rax
movl $0x0, 0x230(%rax)
jmp 0x309da
movq -0x8(%rbp), %rax
cmpl $0x1, 0x268(%rax)
jne 0x308d2
movq -0x8(%rbp), %rax
movb $0x8, 0x1e0(%rax)
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x200001, 0x60(%rax)   # imm = 0x200001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x218b8(%rip), %rsi     # 0x5215b
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x1, 0x230(%rax)
movq -0x8(%rbp), %rdi
callq 0x4eb90
movq -0x8(%rbp), %rax
movl $0x0, 0x230(%rax)
jmp 0x309d8
movq -0x8(%rbp), %rax
movzbl 0x1dd(%rax), %eax
cmpl $0x1, %eax
jne 0x30959
movq -0x8(%rbp), %rax
movl 0x208(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
movq -0x8(%rbp), %rax
movb $0x8, 0x1dd(%rax)
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x100001, 0x60(%rax)   # imm = 0x100001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x21838(%rip), %rsi     # 0x52165
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x1, 0x230(%rax)
movq -0x8(%rbp), %rdi
callq 0x4eb90
movq -0x8(%rbp), %rax
movl $0x0, 0x230(%rax)
jmp 0x309d6
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x80001, 0x60(%rax)    # imm = 0x80001
movq -0x8(%rbp), %rax
cmpl $0x3, 0x218(%rax)
jne 0x30999
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x217db(%rip), %rsi     # 0x5216d
callq 0x81c0
jmp 0x309b1
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x217ca(%rip), %rsi     # 0x52176
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x1, 0x230(%rax)
movq -0x8(%rbp), %rdi
callq 0x4eb90
movq -0x8(%rbp), %rax
movl $0x0, 0x230(%rax)
jmp 0x309d8
jmp 0x309da
addq $0x10, %rsp
popq %rbp
retq