// File: /workspace/github_c_makefile_star2_O3/buptlxb[P]xRay/disasm/Routines_ModRM.c
// Function: rEDX
void __bea_callspec__ _rEDX(ARGTYPE* pMyArgument, PDISASM pMyDisasm)
{
    int i = 0;
    GV.MemDecoration = 0;
    if (GV.MMX_  == 1) {
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, RegistersMMX[2+0]);
        #endif
        (*pMyArgument).ArgType = REGISTER_TYPE+MMX_REG+REGS[2+0];
        (*pMyArgument).ArgSize = 64;
        return;
    }

    if (GV.SSE_ == 1) {
        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, RegistersSSE[2+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+SSE_REG+REGS[2+8];
            (*pMyArgument).ArgSize = 128;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, RegistersSSE[2+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+SSE_REG+REGS[2+0];
            (*pMyArgument).ArgSize = 128;
        }
        return;
    }
    if (GV.OperandSize == 64) {
        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers64Bits[2+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+8];
            (*pMyArgument).ArgSize = 64;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers64Bits[2+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+0];
            (*pMyArgument).ArgSize = 64;
        }
    }
    else if (GV.OperandSize == 32) {
        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers32Bits[2+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+8];
            (*pMyArgument).ArgSize = 32;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers32Bits[2+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+0];
            (*pMyArgument).ArgSize = 32;
        }
    }
    else if (GV.OperandSize == 16) {
        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers16Bits[2+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+8];
            (*pMyArgument).ArgSize = 16;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers16Bits[2+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+0];
            (*pMyArgument).ArgSize = 16;
        }
    }
    else if (GV.OperandSize == 8) {
        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers8Bits[2+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+8];
            (*pMyArgument).ArgSize = 8;
        }
        else {
            if (GV.REX.state == 0) {
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers8BitsLegacy[2+0]);
                #endif
                (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS8BITS[2+0];
                (*pMyArgument).ArgSize = 8;
            }
            else {
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers8Bits[2+0]);
                #endif
                (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[2+0];
                (*pMyArgument).ArgSize = 8;
            }
        }
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x0, 0x210(%rsi)
cmpl $0x1, 0x22c(%rsi)
jne 0x28b31
leaq 0x10299(%rip), %rsi     # 0x38da8
movq %rbx, %rdi
callq 0x8150
movl $0x20010000, %eax       # imm = 0x20010000
addl 0x10326(%rip), %eax     # 0x38e48
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x28bd0
cmpl $0x1, 0x230(%rsi)
jne 0x28b5f
cmpb $0x1, 0x287(%rsi)
jne 0x28bac
leaq 0x102c6(%rip), %rsi     # 0x38e10
movq %rbx, %rdi
callq 0x8150
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x1030b(%rip), %eax     # 0x38e68
jmp 0x28bc6
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x28bd0
leaq 0x4d51(%rip), %rcx      # 0x2d8c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x28c78
leaq 0x101dc(%rip), %rsi     # 0x38d70
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x102c1(%rip), %eax     # 0x38e68
jmp 0x28cf9
leaq 0x1021d(%rip), %rsi     # 0x38dd0
movq %rbx, %rdi
callq 0x8150
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x10282(%rip), %eax     # 0x38e48
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x28c4f
leaq 0x1004e(%rip), %rsi     # 0x38c30
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10273(%rip), %eax     # 0x38e68
jmp 0x28c69
cmpb $0x1, 0x287(%rsi)
jne 0x28c9d
leaq 0x100a5(%rip), %rsi     # 0x38cb0
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1024a(%rip), %eax     # 0x38e68
jmp 0x28cb7
cmpb $0x1, 0x287(%rsi)
jne 0x28cc6
leaq 0xff91(%rip), %rsi      # 0x38bc8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1021e(%rip), %eax     # 0x38e68
jmp 0x28b22
leaq 0xff9a(%rip), %rsi      # 0x38bf0
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x101df(%rip), %eax     # 0x38e48
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x28bd0
cmpb $0x0, 0x288(%rsi)
je 0x28cdf
leaq 0x100a8(%rip), %rsi     # 0x38d30
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x101ad(%rip), %eax     # 0x38e48
jmp 0x28cf9
leaq 0xffcc(%rip), %rsi      # 0x38c70
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10191(%rip), %eax     # 0x38e48
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x28bd0
leaq 0xfedb(%rip), %rsi      # 0x38ba8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x28b1c
leaq 0x10002(%rip), %rsi     # 0x38ce8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1000f(%rip), %eax     # 0x38d08
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x28bd0