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

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x0, 0x210(%rsi)
cmpl $0x1, 0x22c(%rsi)
jne 0x28fe6
leaq 0xfde0(%rip), %rsi      # 0x38da4
movq %rbx, %rdi
callq 0x8150
movl $0x20010000, %eax       # imm = 0x20010000
addl 0xfe6d(%rip), %eax      # 0x38e44
movl %eax, 0x40(%rbx)
movl $0x40, 0x44(%rbx)
jmp 0x29085
cmpl $0x1, 0x230(%rsi)
jne 0x29014
cmpb $0x1, 0x287(%rsi)
jne 0x29061
leaq 0xfe09(%rip), %rsi      # 0x38e08
movq %rbx, %rdi
callq 0x8150
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xfe52(%rip), %eax      # 0x38e64
jmp 0x2907b
movl 0x20c(%rsi), %eax
addl $-0x8, %eax
roll $0x1d, %eax
cmpl $0x7, %eax
ja 0x29085
leaq 0x487c(%rip), %rcx      # 0x2d8a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x1, 0x287(%rsi)
jne 0x2912d
leaq 0xfd1f(%rip), %rsi      # 0x38d68
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfe08(%rip), %eax      # 0x38e64
jmp 0x291ae
leaq 0xfd60(%rip), %rsi      # 0x38dc8
movq %rbx, %rdi
callq 0x8150
movl $0x20080000, %eax       # imm = 0x20080000
addl 0xfdc9(%rip), %eax      # 0x38e44
movl %eax, 0x40(%rbx)
movl $0x80, 0x44(%rbx)
popq %rbx
retq
cmpb $0x1, 0x287(%rsi)
jne 0x29104
leaq 0xfb91(%rip), %rsi      # 0x38c28
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfdba(%rip), %eax      # 0x38e64
jmp 0x2911e
cmpb $0x1, 0x287(%rsi)
jne 0x29152
leaq 0xfbe8(%rip), %rsi      # 0x38ca8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfd91(%rip), %eax      # 0x38e64
jmp 0x2916c
cmpb $0x1, 0x287(%rsi)
jne 0x2917b
leaq 0xfad8(%rip), %rsi      # 0x38bc4
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfd65(%rip), %eax      # 0x38e64
jmp 0x28fd7
leaq 0xfadd(%rip), %rsi      # 0x38be8
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfd26(%rip), %eax      # 0x38e44
movl %eax, 0x40(%rbx)
movl $0x20, 0x44(%rbx)
jmp 0x29085
cmpb $0x0, 0x288(%rsi)
je 0x29194
leaq 0xfbeb(%rip), %rsi      # 0x38d28
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfcf4(%rip), %eax      # 0x38e44
jmp 0x291ae
leaq 0xfb0f(%rip), %rsi      # 0x38c68
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfcd8(%rip), %eax      # 0x38e44
movl %eax, 0x40(%rbx)
movl $0x10, 0x44(%rbx)
jmp 0x29085
leaq 0xfa22(%rip), %rsi      # 0x38ba4
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
jmp 0x28fd1
leaq 0xfb49(%rip), %rsi      # 0x38ce4
movq %rbx, %rdi
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0xfb56(%rip), %eax      # 0x38d04
movl %eax, 0x40(%rbx)
movl $0x8, 0x44(%rbx)
jmp 0x29085