// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_Grp3.c
// Function: G3_Ev
void __bea_callspec__ G3_Ev(PDISASM pMyDisasm)
{
    GV.REGOPCODE = ((*((UInt8*)(UIntPtr) (GV.EIP_+1))) >> 3) & 0x7;
    if (GV.REGOPCODE == 0) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+BIT_UInt8;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "test ");
        #endif
        EvIv(pMyDisasm);
        (*pMyDisasm).Argument1.AccessMode = READ;
        FillFlags(pMyDisasm, 104);
    }
    else if (GV.REGOPCODE == 1) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+BIT_UInt8;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "test ");
        #endif
        EvIv(pMyDisasm);
        (*pMyDisasm).Argument1.AccessMode = READ;
        FillFlags(pMyDisasm, 104);
    }
    else if (GV.REGOPCODE == 2) {
        if ((*pMyDisasm).Prefix.LockPrefix == InvalidPrefix) {
            (*pMyDisasm).Prefix.LockPrefix = InUsePrefix;
        }
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+LOGICAL_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "not ");
        #endif
        Ev(pMyDisasm);
        FillFlags(pMyDisasm, 73);
    }
    else if (GV.REGOPCODE == 3) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "neg ");
        #endif
        Ev(pMyDisasm);
        FillFlags(pMyDisasm, 71);
    }
    else if (GV.REGOPCODE == 4) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "mul ");
        #endif
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg2qword;
			(*pMyDisasm).Argument1.ArgSize = 64;			
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg2dword;
			(*pMyDisasm).Argument1.ArgSize = 32;				
        }
        else {
            GV.MemDecoration = Arg2word;
			(*pMyDisasm).Argument1.ArgSize = 16;				
        }
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REG0;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = REGISTER_TYPE+GENERAL_REG+REG0+REG2;
        FillFlags(pMyDisasm, 70);
    }
    else if (GV.REGOPCODE == 5) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "imul ");
        #endif
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg2qword;
			(*pMyDisasm).Argument1.ArgSize = 64;			
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg2dword;
			(*pMyDisasm).Argument1.ArgSize = 32;				
        }
        else {
            GV.MemDecoration = Arg2word;
			(*pMyDisasm).Argument1.ArgSize = 16;				
        }
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REG0;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = REGISTER_TYPE+GENERAL_REG+REG0+REG2;
        FillFlags(pMyDisasm, 38);
    }
    else if (GV.REGOPCODE == 6) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "div ");
        #endif
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg2qword;
			(*pMyDisasm).Argument1.ArgSize = 64;			
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg2dword;
			(*pMyDisasm).Argument1.ArgSize = 32;				
        }
        else {
            GV.MemDecoration = Arg2word;
			(*pMyDisasm).Argument1.ArgSize = 16;				
        }
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REG0+REG2;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = REGISTER_TYPE+GENERAL_REG+REG0+REG2;		
        FillFlags(pMyDisasm, 31);
    }
    else if (GV.REGOPCODE == 7) {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+ARITHMETIC_INSTRUCTION;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "idiv ");
        #endif
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg2qword;
			(*pMyDisasm).Argument1.ArgSize = 64;			
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg2dword;
			(*pMyDisasm).Argument1.ArgSize = 32;				
        }
        else {
            GV.MemDecoration = Arg2word;
			(*pMyDisasm).Argument1.ArgSize = 16;				
        }
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+2;
        (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REG0+REG2;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = REGISTER_TYPE+GENERAL_REG+REG0+REG2;		
        FillFlags(pMyDisasm, 37);
    }
}

// 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 0x2e0a5
movq -0x8(%rbp), %rax
movl $0x10005, 0x60(%rax)    # imm = 0x10005
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x243e4(%rip), %rsi     # 0x5245a
callq 0x81c0
movq -0x8(%rbp), %rdi
callq 0x4e4f0
movq -0x8(%rbp), %rax
movl $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rdi
movl $0x68, %esi
callq 0x4d560
jmp 0x2e5f3
movq -0x8(%rbp), %rax
cmpl $0x1, 0x240(%rax)
jne 0x2e0ff
movq -0x8(%rbp), %rax
movl $0x10005, 0x60(%rax)    # imm = 0x10005
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2438a(%rip), %rsi     # 0x5245a
callq 0x81c0
movq -0x8(%rbp), %rdi
callq 0x4e4f0
movq -0x8(%rbp), %rax
movl $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rdi
movl $0x68, %esi
callq 0x4d560
jmp 0x2e5f1
movq -0x8(%rbp), %rax
cmpl $0x2, 0x240(%rax)
jne 0x2e166
movq -0x8(%rbp), %rax
movzbl 0x1dc(%rax), %eax
cmpl $0x4, %eax
jne 0x2e127
movq -0x8(%rbp), %rax
movb $0x1, 0x1dc(%rax)
movq -0x8(%rbp), %rax
movl $0x10003, 0x60(%rax)    # imm = 0x10003
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x237b0(%rip), %rsi     # 0x518f5
callq 0x81c0
movq -0x8(%rbp), %rdi
callq 0x4eaf0
movq -0x8(%rbp), %rdi
movl $0x49, %esi
callq 0x4d560
jmp 0x2e5ef
movq -0x8(%rbp), %rax
cmpl $0x3, 0x240(%rax)
jne 0x2e1b2
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x23769(%rip), %rsi     # 0x518fa
callq 0x81c0
movq -0x8(%rbp), %rdi
callq 0x4eaf0
movq -0x8(%rbp), %rdi
movl $0x47, %esi
callq 0x4d560
jmp 0x2e5ed
movq -0x8(%rbp), %rax
cmpl $0x4, 0x240(%rax)
jne 0x2e2c0
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x238fa(%rip), %rsi     # 0x51adb
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2e211
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
jmp 0x2e25a
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2e23c
movq -0x8(%rbp), %rax
movl $0x67, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
jmp 0x2e258
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
jmp 0x2e25a
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 $0x20020001, 0xdc(%rax) # imm = 0x20020001
movq -0x8(%rbp), %rax
movl $0x20020005, 0x98(%rax) # imm = 0x20020005
movq -0x8(%rbp), %rdi
movl $0x46, %esi
callq 0x4d560
jmp 0x2e5eb
movq -0x8(%rbp), %rax
cmpl $0x5, 0x240(%rax)
jne 0x2e3ce
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x23929(%rip), %rsi     # 0x51c18
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2e31f
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
jmp 0x2e368
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2e34a
movq -0x8(%rbp), %rax
movl $0x67, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
jmp 0x2e366
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
jmp 0x2e368
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 $0x20020001, 0xdc(%rax) # imm = 0x20020001
movq -0x8(%rbp), %rax
movl $0x20020005, 0x98(%rax) # imm = 0x20020005
movq -0x8(%rbp), %rdi
movl $0x26, %esi
callq 0x4d560
jmp 0x2e5e9
movq -0x8(%rbp), %rax
cmpl $0x6, 0x240(%rax)
jne 0x2e4dc
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x236fe(%rip), %rsi     # 0x51afb
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2e42d
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
jmp 0x2e476
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2e458
movq -0x8(%rbp), %rax
movl $0x67, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
jmp 0x2e474
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
jmp 0x2e476
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 $0x20020005, 0xdc(%rax) # imm = 0x20020005
movq -0x8(%rbp), %rax
movl $0x20020005, 0x98(%rax) # imm = 0x20020005
movq -0x8(%rbp), %rdi
movl $0x1f, %esi
callq 0x4d560
jmp 0x2e5e7
movq -0x8(%rbp), %rax
cmpl $0x7, 0x240(%rax)
jne 0x2e5e5
movq -0x8(%rbp), %rax
movl $0x10002, 0x60(%rax)    # imm = 0x10002
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x23732(%rip), %rsi     # 0x51c3d
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x2e53b
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
jmp 0x2e584
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2e566
movq -0x8(%rbp), %rax
movl $0x67, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
jmp 0x2e582
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
jmp 0x2e584
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 $0x20020005, 0xdc(%rax) # imm = 0x20020005
movq -0x8(%rbp), %rax
movl $0x20020005, 0x98(%rax) # imm = 0x20020005
movq -0x8(%rbp), %rdi
movl $0x25, %esi
callq 0x4d560
jmp 0x2e5e7
jmp 0x2e5e9
jmp 0x2e5eb
jmp 0x2e5ed
jmp 0x2e5ef
jmp 0x2e5f1
jmp 0x2e5f3
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)