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

// Assembly:
pushq %rbx
andl $0x0, 0x210(%rsi)
movq %rdi, %rbx
cmpl $0x1, 0x22c(%rsi)
jne 0x2651b
leaq 0x108c7(%rip), %rsi     # 0x36dc0
movq %rbx, %rdi
callq 0x8170
movl $0x20010000, %eax       # imm = 0x20010000
addl 0x10954(%rip), %eax     # 0x36e60
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x265ba
cmpl $0x1, 0x230(%rsi)
jne 0x26549
cmpb $0x1, 0x287(%rsi)
jne 0x26596
leaq 0x108ec(%rip), %rsi     # 0x36e20
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x10939(%rip), %eax     # 0x36e80
jmp 0x265b0
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x265ba
leaq 0x4327(%rip), %rcx      # 0x2a888
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x26662
leaq 0x10802(%rip), %rsi     # 0x36d80
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x108ef(%rip), %eax     # 0x36e80
jmp 0x266e3
leaq 0x10843(%rip), %rsi     # 0x36de0
movq %rbx, %rdi
callq 0x8170
movl $0x20080000, %eax       # imm = 0x20080000
addl 0x108b0(%rip), %eax     # 0x36e60
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x26639
leaq 0x10674(%rip), %rsi     # 0x36c40
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x108a1(%rip), %eax     # 0x36e80
jmp 0x26653
cmpb $0x1, 0x287(%rsi)
jne 0x26687
leaq 0x106cb(%rip), %rsi     # 0x36cc0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x10878(%rip), %eax     # 0x36e80
jmp 0x266a1
cmpb $0x1, 0x287(%rsi)
jne 0x266b0
leaq 0x105bf(%rip), %rsi     # 0x36be0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1084c(%rip), %eax     # 0x36e80
jmp 0x2650c
leaq 0x105c0(%rip), %rsi     # 0x36c00
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1080d(%rip), %eax     # 0x36e60
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x265ba
cmpb $0x0, 0x288(%rsi)
je 0x266c9
leaq 0x106ce(%rip), %rsi     # 0x36d40
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x107db(%rip), %eax     # 0x36e60
jmp 0x266e3
leaq 0x105f2(%rip), %rsi     # 0x36c80
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x107bf(%rip), %eax     # 0x36e60
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x265ba
leaq 0x10509(%rip), %rsi     # 0x36bc0
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x26506
leaq 0x10630(%rip), %rsi     # 0x36d00
movq %rbx, %rdi
callq 0x8170
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x1063d(%rip), %eax     # 0x36d20
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x265ba