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

// Assembly:
pushq %rbx
andl $0x0, 0x210(%rsi)
movq %rdi, %rbx
cmpl $0x1, 0x22c(%rsi)
jne 0x26b57
leaq 0x10297(%rip), %rsi     # 0x36dcc
movq %rbx, %rdi
callq 0x8170
movl $0x20010000, %eax       # imm = 0x20010000
addl 0x10324(%rip), %eax     # 0x36e6c
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x26bf6
cmpl $0x1, 0x230(%rsi)
jne 0x26b85
cmpb $0x1, 0x287(%rsi)
jne 0x26bd2
leaq 0x102c8(%rip), %rsi     # 0x36e38
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x10309(%rip), %eax     # 0x36e8c
jmp 0x26bec
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x26bf6
leaq 0x3d4b(%rip), %rcx      # 0x2a8e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x26c9e
leaq 0x101de(%rip), %rsi     # 0x36d98
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x102bf(%rip), %eax     # 0x36e8c
jmp 0x26d1f
leaq 0x1021f(%rip), %rsi     # 0x36df8
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x10280(%rip), %eax     # 0x36e6c
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x26c75
leaq 0x10050(%rip), %rsi     # 0x36c58
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10271(%rip), %eax     # 0x36e8c
jmp 0x26c8f
cmpb $0x1, 0x287(%rsi)
jne 0x26cc3
leaq 0x100a7(%rip), %rsi     # 0x36cd8
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10248(%rip), %eax     # 0x36e8c
jmp 0x26cdd
cmpb $0x1, 0x287(%rsi)
jne 0x26cec
leaq 0xff8f(%rip), %rsi      # 0x36bec
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1021c(%rip), %eax     # 0x36e8c
jmp 0x26b48
leaq 0xff9c(%rip), %rsi      # 0x36c18
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x101dd(%rip), %eax     # 0x36e6c
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x26bf6
cmpb $0x0, 0x288(%rsi)
je 0x26d05
leaq 0x100aa(%rip), %rsi     # 0x36d58
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x101ab(%rip), %eax     # 0x36e6c
jmp 0x26d1f
leaq 0xffce(%rip), %rsi      # 0x36c98
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1018f(%rip), %eax     # 0x36e6c
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x26bf6
leaq 0xfed9(%rip), %rsi      # 0x36bcc
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x26b42
leaq 0x10000(%rip), %rsi     # 0x36d0c
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1000d(%rip), %eax     # 0x36d2c
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x26bf6