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

// Assembly:
pushq %rbx
andl $0x0, 0x210(%rsi)
movq %rdi, %rbx
cmpl $0x1, 0x22c(%rsi)
jne 0x26f93
leaq 0xfe63(%rip), %rsi      # 0x36dd4
movq %rbx, %rdi
callq 0x8170
movl $0x20010000, %eax       # imm = 0x20010000
addl 0xfef0(%rip), %eax      # 0x36e74
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x27032
cmpl $0x1, 0x230(%rsi)
jne 0x26fc1
cmpb $0x1, 0x287(%rsi)
jne 0x2700e
leaq 0xfe9c(%rip), %rsi      # 0x36e48
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xfed5(%rip), %eax      # 0x36e94
jmp 0x27028
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x27032
leaq 0x394f(%rip), %rcx      # 0x2a928
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x270da
leaq 0xfdb2(%rip), %rsi      # 0x36da8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfe8b(%rip), %eax      # 0x36e94
jmp 0x270fd
leaq 0xfdf3(%rip), %rsi      # 0x36e08
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xfe4c(%rip), %eax      # 0x36e74
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x270b1
leaq 0xfc24(%rip), %rsi      # 0x36c68
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfe3d(%rip), %eax      # 0x36e94
jmp 0x270cb
cmpb $0x1, 0x287(%rsi)
jne 0x2710c
leaq 0xfc7b(%rip), %rsi      # 0x36ce8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfe14(%rip), %eax      # 0x36e94
jmp 0x27126
cmpb $0x1, 0x287(%rsi)
jne 0x27135
leaq 0xfb5b(%rip), %rsi      # 0x36bf4
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfde8(%rip), %eax      # 0x36e94
jmp 0x26f84
leaq 0xfb70(%rip), %rsi      # 0x36c28
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfda9(%rip), %eax      # 0x36e74
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x27032
cmpb $0x0, 0x288(%rsi)
je 0x2714e
leaq 0xfc7e(%rip), %rsi      # 0x36d68
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfd77(%rip), %eax      # 0x36e74
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x27032
leaq 0xfb95(%rip), %rsi      # 0x36ca8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfd4e(%rip), %eax      # 0x36e74
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x27032
leaq 0xfa98(%rip), %rsi      # 0x36bd4
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x26f7e
leaq 0xfbbf(%rip), %rsi      # 0x36d14
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfbcc(%rip), %eax      # 0x36d34
movl %eax, 0x40(%rbx)
movabsq $0x100000008, %rax      # imm = 0x100000008
movq %rax, 0x44(%rbx)
jmp 0x27032