// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_Grp6.c
// Function: G6_
void __bea_callspec__ G6_(PDISASM pMyDisasm)
{
    Int32 OperandSizeOld = 0;

    (*pMyDisasm).Instruction.Category = SYSTEM_INSTRUCTION;
    OperandSizeOld = GV.OperandSize;
    GV.OperandSize = 16;
    GV.REGOPCODE = ((*((UInt8*)(UIntPtr) (GV.EIP_+1))) >> 3) & 0x7;
    GV.MOD_= ((*((UInt8*)(UIntPtr) (GV.EIP_+1))) >> 6) & 0x3;

    if (GV.REGOPCODE == 0) {
        if ((OperandSizeOld == 64) && (GV.MOD_== 0x3)) {
            GV.OperandSize = OperandSizeOld;
        }
        else {
            GV.MemDecoration = Arg1word;
        }
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "sldt ");
        #endif
        (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+MEMORY_MANAGEMENT_REG+REG1;
        (*pMyDisasm).Argument2.ArgSize = 32;
        GV.OperandSize = OperandSizeOld;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 1) {
        if ((OperandSizeOld == 64) && (GV.MOD_== 0x3)) {
            GV.OperandSize = OperandSizeOld;
        }
        else {
            GV.MemDecoration = Arg1word;
        }
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "str ");
        #endif
        (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+MEMORY_MANAGEMENT_REG+REG3;
        (*pMyDisasm).Argument2.ArgSize = 16;
        GV.OperandSize = OperandSizeOld;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 2) {
        GV.MemDecoration = Arg2word;
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "lldt ");
        #endif
        (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+MEMORY_MANAGEMENT_REG+REG1;
        (*pMyDisasm).Argument1.ArgSize = 16;
        GV.OperandSize = OperandSizeOld;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 3) {
        GV.MemDecoration = Arg2word;
        MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "ltr ");
        #endif
        (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+MEMORY_MANAGEMENT_REG+REG3;
        (*pMyDisasm).Argument1.ArgSize = 16;
        GV.OperandSize = OperandSizeOld;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 4) {
        GV.MemDecoration = Arg1word;
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "verr ");
        #endif
        (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+SPECIAL_REG+REG0;
        (*pMyDisasm).Argument2.ArgSize = 16;
        GV.OperandSize = OperandSizeOld;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 5) {
        GV.MemDecoration = Arg1word;
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "verw ");
        #endif
        (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+SPECIAL_REG+REG0;
        (*pMyDisasm).Argument2.ArgSize = 16;
        GV.OperandSize = OperandSizeOld;
        GV.EIP_+= GV.DECALAGE_EIP+2;
    }
    else if (GV.REGOPCODE == 6) {
        FailDecode(pMyDisasm);
        GV.OperandSize = OperandSizeOld;
    }
    else {
        FailDecode(pMyDisasm);
        GV.OperandSize = OperandSizeOld;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl $0x2000000, 0x60(%rax)  # imm = 0x2000000
movq -0x8(%rbp), %rax
movl 0x20c(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl $0x10, 0x20c(%rax)
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
movq 0x1f0(%rax), %rax
movzbl 0x1(%rax), %ecx
sarl $0x6, %ecx
andl $0x3, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x218(%rax)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x240(%rax)
jne 0x2f0b5
cmpl $0x40, -0xc(%rbp)
jne 0x2f02a
movq -0x8(%rbp), %rax
cmpl $0x3, 0x218(%rax)
jne 0x2f02a
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
jmp 0x2f038
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x228a0(%rip), %rsi     # 0x518ff
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20800002, 0x144(%rax) # imm = 0x20800002
movq -0x8(%rbp), %rax
movl $0x20, 0x148(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
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 0x2f427
movq -0x8(%rbp), %rax
cmpl $0x1, 0x240(%rax)
jne 0x2f173
cmpl $0x40, -0xc(%rbp)
jne 0x2f0e8
movq -0x8(%rbp), %rax
cmpl $0x3, 0x218(%rax)
jne 0x2f0e8
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
jmp 0x2f0f6
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x227e8(%rip), %rsi     # 0x51905
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20800008, 0x144(%rax) # imm = 0x20800008
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
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 0x2f425
movq -0x8(%rbp), %rax
cmpl $0x2, 0x240(%rax)
jne 0x2f20f
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22751(%rip), %rsi     # 0x5190a
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20800002, 0xdc(%rax) # imm = 0x20800002
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
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 0x2f423
movq -0x8(%rbp), %rax
cmpl $0x3, 0x240(%rax)
jne 0x2f2ab
movq -0x8(%rbp), %rax
movl $0x66, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x226bb(%rip), %rsi     # 0x51910
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20800008, 0xdc(%rax) # imm = 0x20800008
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
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 0x2f421
movq -0x8(%rbp), %rax
cmpl $0x4, 0x240(%rax)
jne 0x2f347
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x22624(%rip), %rsi     # 0x51915
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20400001, 0x144(%rax) # imm = 0x20400001
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
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 0x2f41f
movq -0x8(%rbp), %rax
cmpl $0x5, 0x240(%rax)
jne 0x2f3e0
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2258e(%rip), %rsi     # 0x5191b
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20400001, 0x144(%rax) # imm = 0x20400001
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
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 0x2f41d
movq -0x8(%rbp), %rax
cmpl $0x6, 0x240(%rax)
jne 0x2f405
movq -0x8(%rbp), %rdi
callq 0x30050
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
jmp 0x2f41b
movq -0x8(%rbp), %rdi
callq 0x30050
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20c(%rax)
jmp 0x2f41d
jmp 0x2f41f
jmp 0x2f421
jmp 0x2f423
jmp 0x2f425
jmp 0x2f427
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)