// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_Grp5.c
// Function: G5_Ev
void __bea_callspec__ G5_Ev(PDISASM pMyDisasm)
{
    GV.REGOPCODE = ((*((UInt8*)(UIntPtr) (GV.EIP_+1))) >> 3) & 0x7;
    if (GV.REGOPCODE == 0) {
        if ((*pMyDisasm).Prefix.LockPrefix == InvalidPrefix) {
            (*pMyDisasm).Prefix.LockPrefix = InUsePrefix;
        }
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "inc ");
        #endif
        Ev(pMyDisasm);
        FillFlags(pMyDisasm, 40);
    }
    else if (GV.REGOPCODE == 1) {
        if ((*pMyDisasm).Prefix.LockPrefix == InvalidPrefix) {
            (*pMyDisasm).Prefix.LockPrefix = InUsePrefix;
        }
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "dec ");
        #endif
        Ev(pMyDisasm);
        FillFlags(pMyDisasm, 30);
    }
    else if (GV.REGOPCODE == 2) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
        (*pMyDisasm).Instruction.BranchType = CallType;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "call ");
        #endif
        if (GV.Architecture == 64) {
            GV.OperandSize = 64;
        }
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg1qword;
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg1dword;
        }
        else {
            GV.MemDecoration = Arg1word;
        }
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = GENERAL_REG+REG4;
    }
    else if (GV.REGOPCODE == 3) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
        (*pMyDisasm).Instruction.BranchType = CallType;
        if (GV.SYNTAX_ == ATSyntax) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "lcall ");
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "call far ");
            #endif
        }
        GV.MemDecoration = Arg1fword;
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = GENERAL_REG+REG4;
    }
    else if (GV.REGOPCODE == 4) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
        (*pMyDisasm).Instruction.BranchType = JmpType;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "jmp ");
        #endif
        if (GV.Architecture == 64) {
            GV.OperandSize = 64;
        }
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg1qword;
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg1dword;
        }
        else {
            GV.MemDecoration = Arg1word;
        }
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 5) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
        (*pMyDisasm).Instruction.BranchType = JmpType;
        if (GV.SYNTAX_ == ATSyntax) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "ljmp ");
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "jmp far ");
            #endif
        }
        GV.MemDecoration = Arg1fword;
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 6) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+DATA_TRANSFER;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "push ");
        #endif
        if (GV.Architecture == 64) {
            GV.OperandSize = 64;
        }
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg2qword;
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg2dword;
        }
        else {
            GV.MemDecoration = Arg2word;
        }
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Argument1.ArgType = MEMORY_TYPE;
        (*pMyDisasm).Argument1.ArgSize = GV.OperandSize;
        (*pMyDisasm).Argument1.Memory.BaseRegister = REG4;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = GENERAL_REG+REG4;
    }
    else {
        FailDecode(pMyDisasm);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movzbl 0x1(%rax), %ecx
sarl $0x3, %ecx
andl $0x7, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x240(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x240(%rax)
jne 0x2eaa2
movq -0x8(%rbp), %rax
movzbl 0x1dc(%rax), %eax
cmpl $0x4, %eax
jne 0x2ea63
movq -0x8(%rbp), %rax
movb $0x1, 0x1dc(%rax)
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22b45(%rip), %rsi     # 0x515c6
callq 0x81c0
movq -0x8(%rbp), %rdi
callq 0x4eaf0
movq -0x8(%rbp), %rdi
movl $0x28, %esi
callq 0x4d560
jmp 0x2ef70
movq -0x8(%rbp), %rax
cmpl $0x1, 0x240(%rax)
jne 0x2eb09
movq -0x8(%rbp), %rax
movzbl 0x1dc(%rax), %eax
cmpl $0x4, %eax
jne 0x2eaca
movq -0x8(%rbp), %rax
movb $0x1, 0x1dc(%rax)
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x23a69(%rip), %rsi     # 0x52551
callq 0x81c0
movq -0x8(%rbp), %rdi
callq 0x4eaf0
movq -0x8(%rbp), %rdi
movl $0x1e, %esi
callq 0x4d560
jmp 0x2ef6e
movq -0x8(%rbp), %rax
cmpl $0x2, 0x240(%rax)
jne 0x2ebf7
movq -0x8(%rbp), %rax
movl $0x10006, 0x60(%rax)    # imm = 0x10006
movq -0x8(%rbp), %rax
movl $0xc, 0x78(%rax)
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22973(%rip), %rsi     # 0x514b6
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x25c(%rax)
jne 0x2eb63
movq -0x8(%rbp), %rax
movl $0x40, 0x20c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2eb80
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
jmp 0x2ebad
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2eb9d
movq -0x8(%rbp), %rax
movl $0x3, 0x210(%rax)
jmp 0x2ebab
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
jmp 0x2ebad
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl 0x244(%rax), %eax
addl $0x2, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
addq 0x1f0(%rax), %rcx
movq %rcx, 0x1f0(%rax)
movq -0x8(%rbp), %rax
movl $0x20010, 0x98(%rax)    # imm = 0x20010
jmp 0x2ef6c
movq -0x8(%rbp), %rax
cmpl $0x3, 0x240(%rax)
jne 0x2ecb8
movq -0x8(%rbp), %rax
movl $0x10006, 0x60(%rax)    # imm = 0x10006
movq -0x8(%rbp), %rax
movl $0xc, 0x78(%rax)
movq -0x8(%rbp), %rax
cmpl $0x400, 0x24c(%rax)     # imm = 0x400
jne 0x2ec48
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22874(%rip), %rsi     # 0x514b5
callq 0x81c0
jmp 0x2ec60
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22861(%rip), %rsi     # 0x514bc
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x7, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl 0x244(%rax), %eax
addl $0x2, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
addq 0x1f0(%rax), %rcx
movq %rcx, 0x1f0(%rax)
movq -0x8(%rbp), %rax
movl $0x20010, 0x98(%rax)    # imm = 0x20010
jmp 0x2ef6a
movq -0x8(%rbp), %rax
cmpl $0x4, 0x240(%rax)
jne 0x2ed98
movq -0x8(%rbp), %rax
movl $0x10006, 0x60(%rax)    # imm = 0x10006
movq -0x8(%rbp), %rax
movl $0xb, 0x78(%rax)
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2296e(%rip), %rsi     # 0x51660
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x25c(%rax)
jne 0x2ed12
movq -0x8(%rbp), %rax
movl $0x40, 0x20c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2ed2f
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
jmp 0x2ed5c
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2ed4c
movq -0x8(%rbp), %rax
movl $0x3, 0x210(%rax)
jmp 0x2ed5a
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
jmp 0x2ed5c
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl 0x244(%rax), %eax
addl $0x2, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
addq 0x1f0(%rax), %rcx
movq %rcx, 0x1f0(%rax)
jmp 0x2ef68
movq -0x8(%rbp), %rax
cmpl $0x5, 0x240(%rax)
jne 0x2ee4b
movq -0x8(%rbp), %rax
movl $0x10006, 0x60(%rax)    # imm = 0x10006
movq -0x8(%rbp), %rax
movl $0xb, 0x78(%rax)
movq -0x8(%rbp), %rax
cmpl $0x400, 0x24c(%rax)     # imm = 0x400
jne 0x2ede9
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2287d(%rip), %rsi     # 0x5165f
callq 0x81c0
jmp 0x2ee01
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22869(%rip), %rsi     # 0x51665
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x7, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl 0x244(%rax), %eax
addl $0x2, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
addq 0x1f0(%rax), %rcx
movq %rcx, 0x1f0(%rax)
jmp 0x2ef66
movq -0x8(%rbp), %rax
cmpl $0x6, 0x240(%rax)
jne 0x2ef5b
movq -0x8(%rbp), %rax
movl $0x10001, 0x60(%rax)    # imm = 0x10001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x228d5(%rip), %rsi     # 0x5174f
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x25c(%rax)
jne 0x2ee9a
movq -0x8(%rbp), %rax
movl $0x40, 0x20c(%rax)
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2eeb7
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
jmp 0x2eee4
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2eed4
movq -0x8(%rbp), %rax
movl $0x67, 0x210(%rax)
jmp 0x2eee2
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
jmp 0x2eee4
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl 0x244(%rax), %eax
addl $0x2, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
addq 0x1f0(%rax), %rcx
movq %rcx, 0x1f0(%rax)
movq -0x8(%rbp), %rax
movl $0x40000000, 0xdc(%rax) # imm = 0x40000000
movq -0x8(%rbp), %rax
movl 0x20c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xec(%rax)
movq -0x8(%rbp), %rax
movl $0x20010, 0x98(%rax)    # imm = 0x20010
jmp 0x2ef64
movq -0x8(%rbp), %rdi
callq 0x30050
jmp 0x2ef66
jmp 0x2ef68
jmp 0x2ef6a
jmp 0x2ef6c
jmp 0x2ef6e
jmp 0x2ef70
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)