// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, 0x210(%rsi)
movq %rdi, %rbx
cmpl $0x1, 0x22c(%rsi)
jne 0x26943
leaq 0x104a7(%rip), %rsi     # 0x36dc8
movq %rbx, %rdi
callq 0x8170
movl $0x20010000, %eax       # imm = 0x20010000
addl 0x10534(%rip), %eax     # 0x36e68
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x269e2
cmpl $0x1, 0x230(%rsi)
jne 0x26971
cmpb $0x1, 0x287(%rsi)
jne 0x269be
leaq 0x104d4(%rip), %rsi     # 0x36e30
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x10519(%rip), %eax     # 0x36e88
jmp 0x269d8
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x269e2
leaq 0x3f3f(%rip), %rcx      # 0x2a8c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x26a8a
leaq 0x103ea(%rip), %rsi     # 0x36d90
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x104cf(%rip), %eax     # 0x36e88
jmp 0x26b0b
leaq 0x1042b(%rip), %rsi     # 0x36df0
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x10490(%rip), %eax     # 0x36e68
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x26a61
leaq 0x1025c(%rip), %rsi     # 0x36c50
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10481(%rip), %eax     # 0x36e88
jmp 0x26a7b
cmpb $0x1, 0x287(%rsi)
jne 0x26aaf
leaq 0x102b3(%rip), %rsi     # 0x36cd0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10458(%rip), %eax     # 0x36e88
jmp 0x26ac9
cmpb $0x1, 0x287(%rsi)
jne 0x26ad8
leaq 0x1019f(%rip), %rsi     # 0x36be8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1042c(%rip), %eax     # 0x36e88
jmp 0x26934
leaq 0x101a8(%rip), %rsi     # 0x36c10
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x103ed(%rip), %eax     # 0x36e68
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x269e2
cmpb $0x0, 0x288(%rsi)
je 0x26af1
leaq 0x102b6(%rip), %rsi     # 0x36d50
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x103bb(%rip), %eax     # 0x36e68
jmp 0x26b0b
leaq 0x101da(%rip), %rsi     # 0x36c90
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1039f(%rip), %eax     # 0x36e68
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x269e2
leaq 0x100e9(%rip), %rsi     # 0x36bc8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x2692e
leaq 0x10210(%rip), %rsi     # 0x36d08
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1021d(%rip), %eax     # 0x36d28
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x269e2