// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %rbx
movl $0x0, 0x210(%rsi)
cmpl $0x1, 0x22c(%rsi)
jne 0x29a81
leaq 0xf359(%rip), %rsi      # 0x38db8
movq %rbx, %rdi
callq 0x8150
movl $0x20010000, %eax       # imm = 0x20010000
addl 0xf3e6(%rip), %eax      # 0x38e58
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x29b20
cmpl $0x1, 0x230(%rsi)
jne 0x29aaf
cmpb $0x1, 0x287(%rsi)
jne 0x29afc
leaq 0xf396(%rip), %rsi      # 0x38e30
movq %rbx, %rdi
callq 0x8150
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xf3cb(%rip), %eax      # 0x38e78
jmp 0x29b16
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x29b20
leaq 0x3e81(%rip), %rcx      # 0x2d948
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x29bc8
leaq 0xf2ac(%rip), %rsi      # 0x38d90
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf381(%rip), %eax      # 0x38e78
jmp 0x29beb
leaq 0xf2ed(%rip), %rsi      # 0x38df0
movq %rbx, %rdi
callq 0x8150
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xf342(%rip), %eax      # 0x38e58
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x29b9f
leaq 0xf11e(%rip), %rsi      # 0x38c50
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf333(%rip), %eax      # 0x38e78
jmp 0x29bb9
cmpb $0x1, 0x287(%rsi)
jne 0x29bfa
leaq 0xf175(%rip), %rsi      # 0x38cd0
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf30a(%rip), %eax      # 0x38e78
jmp 0x29c14
cmpb $0x1, 0x287(%rsi)
jne 0x29c23
leaq 0xf051(%rip), %rsi      # 0x38bd8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf2de(%rip), %eax      # 0x38e78
jmp 0x29a72
leaq 0xf06a(%rip), %rsi      # 0x38c10
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf29f(%rip), %eax      # 0x38e58
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x29b20
cmpb $0x0, 0x288(%rsi)
je 0x29c3c
leaq 0xf178(%rip), %rsi      # 0x38d50
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf26d(%rip), %eax      # 0x38e58
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x29b20
leaq 0xf08f(%rip), %rsi      # 0x38c90
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf244(%rip), %eax      # 0x38e58
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x29b20
leaq 0xef8e(%rip), %rsi      # 0x38bb8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x29a6c
leaq 0xf0b5(%rip), %rsi      # 0x38cf8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xf0c2(%rip), %eax      # 0x38d18
movl %eax, 0x40(%rbx)
movabsq $0x100000008, %rax      # imm = 0x100000008
movq %rax, 0x44(%rbx)
jmp 0x29b20