// File: /workspace/github_c_makefile_star2_O3/buptlxb[P]xRay/disasm/instr_set/opcodes_MMX.c
// Function: movq_WV
void __bea_callspec__ movq_WV(PDISASM pMyDisasm)
{
    (*pMyDisasm).Instruction.Category = MMX_INSTRUCTION+DATA_TRANSFER;
    /* ========= 0xf2 */
    if (GV.PrefRepne == 1) {
        (*pMyDisasm).Prefix.RepnePrefix = MandatoryPrefix;
        GV.MemDecoration = Arg2dqword;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movdq2q ");
        #endif
        GV.MMX_ = 1;
        Reg_Opcode(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.MMX_ = 0;
        GV.SSE_ = 1;
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.SSE_ = 0;
        GV.EIP_+= GV.DECALAGE_EIP+2;

    }
    /* ========= 0xf3 */
    else if (GV.PrefRepe == 1) {
        (*pMyDisasm).Prefix.RepPrefix = MandatoryPrefix;
        GV.MemDecoration = Arg2qword;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movq2dq ");
        #endif
        GV.SSE_ = 1;
        Reg_Opcode(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.SSE_ = 0;
        GV.MMX_ = 1;
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.MMX_ = 0;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    /* ========== 0x66 */
    else if ((*pMyDisasm).Prefix.OperandSize == InUsePrefix) {            
        GV.OperandSize = GV.OriginalOperandSize;
        (*pMyDisasm).Prefix.OperandSize = MandatoryPrefix;
        GV.MemDecoration = Arg1qword;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "movq ");
        #endif
        GV.SSE_ = 1;
        ExGx(pMyDisasm);
        GV.SSE_ = 0;
    }
    else {
        FailDecode(pMyDisasm);
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x40001, 0x60(%rdi)    # imm = 0x40001
cmpl $0x1, 0x26c(%rdi)
jne 0x21205
movb $0x8, 0x1df(%rbx)
movl $0x6c, 0x210(%rbx)
movabsq $0x2071327164766f6d, %rax # imm = 0x2071327164766F6D
movq %rax, 0x68(%rbx)
movb $0x0, 0x70(%rbx)
movl $0x1, 0x22c(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2ab36
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x22c(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2aa8c
movl $0x0, 0x230(%rbx)
jmp 0x2126e
cmpl $0x1, 0x268(%rbx)
jne 0x21280
movb $0x8, 0x1e0(%rbx)
movl $0x68, 0x210(%rbx)
movabsq $0x2071643271766f6d, %rax # imm = 0x2071643271766F6D
movq %rax, 0x68(%rbx)
movb $0x0, 0x70(%rbx)
movl $0x1, 0x230(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2ab36
movq $0x1, 0x22c(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2aa8c
movl $0x0, 0x22c(%rbx)
movl 0x244(%rbx), %eax
addl $0x2, %eax
addq %rax, 0x1f0(%rbx)
popq %rbx
retq
cmpb $0x1, 0x1dd(%rbx)
jne 0x212f7
movl 0x208(%rbx), %eax
movl %eax, 0x20c(%rbx)
movb $0x8, 0x1dd(%rbx)
movl $0x4, 0x210(%rbx)
movl $0x71766f6d, 0x68(%rbx) # imm = 0x71766F6D
movw $0x20, 0x6c(%rbx)
movl $0x1, 0x230(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x2aa8c
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2ab36
movl 0x244(%rbx), %eax
addl $0x2, %eax
addq %rax, 0x1f0(%rbx)
movl $0x0, 0x230(%rbx)
jmp 0x2127e
movb $0x0, 0x6c(%rbx)
movl $0x203f3f3f, 0x68(%rbx) # imm = 0x203F3F3F
movl $0x1, 0x280(%rbx)
jmp 0x2127e