// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x210(%rax)
movq -0x10(%rbp), %rax
cmpl $0x1, 0x22c(%rax)
jne 0x4aeac
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17f90(%rip), %rsi     # 0x62e14
callq 0x81c0
movl 0x18025(%rip), %ecx     # 0x62eb4
addl $0x20010000, %ecx       # imm = 0x20010000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0x44(%rax)
jmp 0x4b1e0
movq -0x10(%rbp), %rax
cmpl $0x1, 0x230(%rax)
jne 0x4af3e
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4af04
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17fa9(%rip), %rsi     # 0x62e88
callq 0x81c0
movl 0x17fea(%rip), %ecx     # 0x62ed4
addl $0x20080000, %ecx       # imm = 0x20080000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x80, 0x44(%rax)
jmp 0x4af39
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17f32(%rip), %rsi     # 0x62e48
callq 0x81c0
movl 0x17f93(%rip), %ecx     # 0x62eb4
addl $0x20080000, %ecx       # imm = 0x20080000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x80, 0x44(%rax)
jmp 0x4b1e0
movq -0x10(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x4afd0
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4af96
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17cc3(%rip), %rsi     # 0x62c34
callq 0x81c0
movl 0x17f58(%rip), %ecx     # 0x62ed4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0x44(%rax)
jmp 0x4afcb
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17c6c(%rip), %rsi     # 0x62c14
callq 0x81c0
movl 0x17f01(%rip), %ecx     # 0x62eb4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0x44(%rax)
jmp 0x4b1e0
movq -0x10(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x4b062
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4b028
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17ca5(%rip), %rsi     # 0x62ca8
callq 0x81c0
movl 0x17ec6(%rip), %ecx     # 0x62ed4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x44(%rax)
jmp 0x4b05d
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17c2e(%rip), %rsi     # 0x62c68
callq 0x81c0
movl 0x17e6f(%rip), %ecx     # 0x62eb4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x44(%rax)
jmp 0x4b1de
movq -0x10(%rbp), %rax
cmpl $0x10, 0x20c(%rax)
jne 0x4b0f4
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4b0ba
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17c93(%rip), %rsi     # 0x62d28
callq 0x81c0
movl 0x17e34(%rip), %ecx     # 0x62ed4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0x44(%rax)
jmp 0x4b0ef
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17c1c(%rip), %rsi     # 0x62ce8
callq 0x81c0
movl 0x17ddd(%rip), %ecx     # 0x62eb4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0x44(%rax)
jmp 0x4b1dc
movq -0x10(%rbp), %rax
cmpl $0x8, 0x20c(%rax)
jne 0x4b1da
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4b14f
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17cc1(%rip), %rsi     # 0x62de8
callq 0x81c0
movl 0x17da2(%rip), %ecx     # 0x62ed4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x8, 0x44(%rax)
jmp 0x4b1d8
movq -0x10(%rbp), %rax
movzbl 0x288(%rax), %eax
cmpl $0x0, %eax
jne 0x4b1a1
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17be3(%rip), %rsi     # 0x62d54
callq 0x81c0
movl 0x17bf8(%rip), %ecx     # 0x62d74
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0x48(%rax)
movq -0x8(%rbp), %rax
movl $0x8, 0x44(%rax)
jmp 0x4b1d6
movq -0x8(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
leaq 0x17bf5(%rip), %rsi     # 0x62da8
callq 0x81c0
movl 0x17cf6(%rip), %ecx     # 0x62eb4
addl $0x20020000, %ecx       # imm = 0x20020000
movq -0x8(%rbp), %rax
movl %ecx, 0x40(%rax)
movq -0x8(%rbp), %rax
movl $0x8, 0x44(%rax)
jmp 0x4b1d8
jmp 0x4b1da
jmp 0x4b1dc
jmp 0x4b1de
jmp 0x4b1e0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)