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

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x40001, 0x60(%rdi)    # imm = 0x40001
cmpl $0x1, 0x268(%rdi)
jne 0x1d4b0
movb $0x8, 0x1e0(%rbx)
movl $0x68, 0x210(%rbx)
movl $0x71766f6d, 0x68(%rbx) # imm = 0x71766F6D
movw $0x20, 0x6c(%rbx)
movl $0x1, 0x230(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x2b196
leaq 0x9c(%rbx), %rdi
jmp 0x1d55d
cmpb $0x1, 0x1dd(%rbx)
jne 0x1d4ff
movl 0x208(%rbx), %eax
movl %eax, 0x20c(%rbx)
movb $0x8, 0x1dd(%rbx)
leaq 0x68(%rbx), %rax
leaq 0x9c(%rbx), %rdi
leaq 0x104(%rbx), %r14
cmpb $0x1, 0x284(%rbx)
jne 0x1d532
movl $0x4, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x71766f6d, (%rax)     # imm = 0x71766F6D
jmp 0x1d548
leaq 0x68(%rbx), %rax
leaq 0x9c(%rbx), %rdi
leaq 0x104(%rbx), %r14
cmpb $0x1, 0x284(%rbx)
jne 0x1d571
movl $0x4, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x71766f6d, (%rax)     # imm = 0x71766F6D
jmp 0x1d587
movl $0x3, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x64766f6d, (%rax)     # imm = 0x64766F6D
movq %rbx, %rsi
callq 0x2b196
movl $0x1, 0x230(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b24b
movl $0x0, 0x230(%rbx)
jmp 0x1d5ae
movl $0x3, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x64766f6d, (%rax)     # imm = 0x64766F6D
movq %rbx, %rsi
callq 0x2b196
movl $0x1, 0x22c(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b24b
movl $0x0, 0x22c(%rbx)
movl 0x244(%rbx), %eax
addl $0x2, %eax
addq %rax, 0x1f0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq