// File: /workspace/github_c_makefile_star2_O2/buptlxb[P]xRay/disasm/Routines_ModRM.c
// Function: rESI
void __bea_callspec__ _rESI(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[6+0]);
        #endif
        (*pMyArgument).ArgType = REGISTER_TYPE+MMX_REG+REGS[6+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[6+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+SSE_REG+REGS[6+8];
            (*pMyArgument).ArgSize = 128;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, RegistersSSE[6+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+SSE_REG+REGS[6+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[6+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+8];
            (*pMyArgument).ArgSize = 64;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers64Bits[6+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+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[6+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+8];
            (*pMyArgument).ArgSize = 32;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers32Bits[6+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+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[6+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+8];
            (*pMyArgument).ArgSize = 16;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers16Bits[6+0]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+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[6+8]);
            #endif
            (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+8];
            (*pMyArgument).ArgSize = 8;
        }
        else {
            if (GV.REX.state == 0) {
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers8BitsLegacy[6+0]);
                #endif
                (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS8BITS[6+0];
				(*pMyArgument).ArgPosition = HighPosition;
                (*pMyArgument).ArgSize = 8;
            }
            else {
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers8Bits[6+0]);
                #endif
                (*pMyArgument).ArgType = REGISTER_TYPE+GENERAL_REG+REGS[6+0];
                (*pMyArgument).ArgSize = 8;
            }
        }
    }
}

// Assembly:
pushq %rbx
andl $0x0, 0x210(%rsi)
movq %rdi, %rbx
cmpl $0x1, 0x22c(%rsi)
jne 0x271bb
leaq 0xfc3f(%rip), %rsi      # 0x36dd8
movq %rbx, %rdi
callq 0x8170
movl $0x20010000, %eax       # imm = 0x20010000
addl 0xfccc(%rip), %eax      # 0x36e78
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x2725a
cmpl $0x1, 0x230(%rsi)
jne 0x271e9
cmpb $0x1, 0x287(%rsi)
jne 0x27236
leaq 0xfc7c(%rip), %rsi      # 0x36e50
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xfcb1(%rip), %eax      # 0x36e98
jmp 0x27250
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x2725a
leaq 0x3747(%rip), %rcx      # 0x2a948
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x27302
leaq 0xfb92(%rip), %rsi      # 0x36db0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfc67(%rip), %eax      # 0x36e98
jmp 0x27325
leaq 0xfbd3(%rip), %rsi      # 0x36e10
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xfc28(%rip), %eax      # 0x36e78
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x272d9
leaq 0xfa04(%rip), %rsi      # 0x36c70
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfc19(%rip), %eax      # 0x36e98
jmp 0x272f3
cmpb $0x1, 0x287(%rsi)
jne 0x27334
leaq 0xfa5b(%rip), %rsi      # 0x36cf0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfbf0(%rip), %eax      # 0x36e98
jmp 0x2734e
cmpb $0x1, 0x287(%rsi)
jne 0x2735d
leaq 0xf937(%rip), %rsi      # 0x36bf8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfbc4(%rip), %eax      # 0x36e98
jmp 0x271ac
leaq 0xf950(%rip), %rsi      # 0x36c30
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfb85(%rip), %eax      # 0x36e78
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x2725a
cmpb $0x0, 0x288(%rsi)
je 0x27376
leaq 0xfa5e(%rip), %rsi      # 0x36d70
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfb53(%rip), %eax      # 0x36e78
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x2725a
leaq 0xf975(%rip), %rsi      # 0x36cb0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfb2a(%rip), %eax      # 0x36e78
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x2725a
leaq 0xf874(%rip), %rsi      # 0x36bd8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x271a6
leaq 0xf99b(%rip), %rsi      # 0x36d18
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf9a8(%rip), %eax      # 0x36d38
movl %eax, 0x40(%rbx)
movabsq $0x100000008, %rax      # imm = 0x100000008
movq %rax, 0x44(%rbx)
jmp 0x2725a