// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x40001, 0x60(%rdi)    # imm = 0x40001
cmpl $0x1, 0x268(%rdi)
jne 0x1c2f9
movb $0x8, 0x1e0(%rbx)
movl $0x68, 0x210(%rbx)
movl $0x71766f6d, 0x68(%rbx) # imm = 0x71766F6D
movw $0x20, 0x6c(%rbx)
leaq 0x230(%rbx), %r15
movl $0x1, 0x230(%rbx)
leaq 0x104(%rbx), %rdi
movq %rbx, %rsi
callq 0x28863
leaq 0x9c(%rbx), %r14
jmp 0x1c3db
cmpb $0x1, 0x1dd(%rbx)
jne 0x1c34f
movl 0x208(%rbx), %eax
movl %eax, 0x20c(%rbx)
movb $0x8, 0x1dd(%rbx)
leaq 0x68(%rbx), %rax
leaq 0x9c(%rbx), %rdi
leaq 0x230(%rbx), %r15
leaq 0x104(%rbx), %r14
cmpb $0x1, 0x284(%rbx)
jne 0x1c389
movl $0x4, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x71766f6d, (%rax)     # imm = 0x71766F6D
jmp 0x1c39f
leaq 0x68(%rbx), %rax
leaq 0x9c(%rbx), %rdi
leaq 0x22c(%rbx), %r15
leaq 0x104(%rbx), %r14
cmpb $0x1, 0x284(%rbx)
jne 0x1c3b3
movl $0x4, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x71766f6d, (%rax)     # imm = 0x71766F6D
jmp 0x1c3c9
movl $0x3, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x64766f6d, (%rax)     # imm = 0x64766F6D
movq %rbx, %rsi
callq 0x28863
movl $0x1, 0x230(%rbx)
jmp 0x1c3db
movl $0x3, 0x210(%rbx)
movw $0x20, 0x4(%rax)
movl $0x64766f6d, (%rax)     # imm = 0x64766F6D
movq %rbx, %rsi
callq 0x28863
movl $0x1, 0x22c(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2890a
andl $0x0, (%r15)
movl 0x244(%rbx), %eax
addl $0x2, %eax
addq %rax, 0x1f0(%rbx)
popq %rbx
popq %r14
popq %r15
retq