// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_FPU.c
// Function: DD_
void __bea_callspec__ DD_(PDISASM pMyDisasm)
{
    long MyMODRM;
    char (*pRegistersFPU)[8][8] ;

    GV.DECALAGE_EIP = 0;
    if (!Security(1, pMyDisasm)) {return;}
    MyMODRM = *((UInt8*)(UIntPtr) (GV.EIP_+1));
    pRegistersFPU = &RegistersFPU_Masm;
    if (GV.SYNTAX_ == NasmSyntax) {
        pRegistersFPU = &RegistersFPU_Nasm;
    }
    if (MyMODRM <= 0xbf) {

        GV.REGOPCODE = ((*((UInt8*)(UIntPtr) (GV.EIP_+1))) >> 3) & 0x7;
        if (GV.REGOPCODE == 0) {
            GV.MemDecoration = Arg2qword;
            MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fld ");
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+FPU_REG+REG0;
            (*pMyDisasm).Argument1.ArgSize = 80;
        }
        else if (GV.REGOPCODE == 1) {
            GV.MemDecoration = Arg1qword;
            MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fisttp ");
            #endif
            (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+FPU_REG+REG0;
            (*pMyDisasm).Argument2.ArgSize = 80;
        }
        else if (GV.REGOPCODE == 2) {
            GV.MemDecoration = Arg1qword;
            MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fst ");
            #endif
            (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+FPU_REG+REG0;
            (*pMyDisasm).Argument2.ArgSize = 80;
        }
        else if (GV.REGOPCODE == 3) {
            GV.MemDecoration = Arg1qword;
            MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fstp ");
            #endif
            (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+FPU_REG+REG0;
            (*pMyDisasm).Argument2.ArgSize = 80;
        }
        else if (GV.REGOPCODE == 4) {
            GV.MemDecoration = Arg2multibytes;
            MOD_RM(&(*pMyDisasm).Argument2, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+FPUCONTROL;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "frstor ");
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+FPU_REG+REG0;
            (*pMyDisasm).Argument1.ArgSize = 108*8;
        }
        else if (GV.REGOPCODE == 6) {
            GV.MemDecoration = Arg1multibytes;
            MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+FPUCONTROL;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fsave ");
            #endif
            (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+FPU_REG+REG0;
            (*pMyDisasm).Argument2.ArgSize = 108*8;
        }
        else if (GV.REGOPCODE == 7) {
            GV.MemDecoration = Arg1word;
            MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
            (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+FPUCONTROL;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fstsw ");
            #endif
            (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+FPU_REG;
            (*pMyDisasm).Argument2.ArgSize = 16;
        }
        else {
            FailDecode(pMyDisasm);
        }
    }
    else {
        if ((MyMODRM & 0xf0) == 0xc0) {
            if (((MyMODRM & 0xf) >=0) && ((MyMODRM & 0xf) <=7)) {
                (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+FPUCONTROL;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "ffree ");
                #endif
            }
            else {
                (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fxch4 ");
                #endif
                (*pMyDisasm).Argument2.AccessMode = WRITE;
            }
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic, (*pRegistersFPU)[(MyMODRM & 0xf)%8]);
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+FPU_REG+REGS[(MyMODRM & 0xf)%8];
            (*pMyDisasm).Argument1.ArgSize = 80;
        }
        else if ((MyMODRM & 0xf0) == 0xd0) {
            if (((MyMODRM & 0xf) >=0) && ((MyMODRM & 0xf) <=7)) {
                (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fst ");
                #endif
            }
            else {
                (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+DATA_TRANSFER;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fstp ");
                #endif
                (*pMyDisasm).Argument2.AccessMode = WRITE;
            }
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic, (*pRegistersFPU)[(MyMODRM & 0xf)%8]);
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+FPU_REG+REGS[(MyMODRM & 0xf)%8];
            (*pMyDisasm).Argument1.ArgSize = 80;

        }
        else if ((MyMODRM & 0xf0) == 0xe0) {
            if (((MyMODRM & 0xf) >=0) && ((MyMODRM & 0xf) <=7)) {
                (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+COMPARISON_INSTRUCTION;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fucom ");
                #endif
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Argument2.ArgMnemonic, (*pRegistersFPU)[0]);
                #endif
                (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+FPU_REG+REGS[0];
                (*pMyDisasm).Argument2.ArgSize = 80;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic, (*pRegistersFPU)[(MyMODRM & 0xf)%8]);
                #endif
                (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+FPU_REG+REGS[(MyMODRM & 0xf)%8];
                (*pMyDisasm).Argument1.ArgSize = 80;
            }
            else {
                (*pMyDisasm).Instruction.Category = FPU_INSTRUCTION+COMPARISON_INSTRUCTION;
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "fucomp ");
                #endif
                #ifndef BEA_LIGHT_DISASSEMBLY
                   (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic, (*pRegistersFPU)[(MyMODRM & 0xf)%8]);
                #endif
                (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+FPU_REG+REGS[(MyMODRM & 0xf)%8];
                (*pMyDisasm).Argument1.ArgSize = 80;
            }

        }

        else {
            FailDecode(pMyDisasm);
        }
    }
    GV.EIP_ += GV.DECALAGE_EIP+2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, 0x244(%rax)
movq -0x8(%rbp), %rsi
movl $0x1, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x2a5c2
jmp 0x2ad08
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movzbl 0x1(%rax), %eax
movq %rax, -0x10(%rbp)
leaq 0x38424(%rip), %rax     # 0x62a00
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x200, 0x24c(%rax)     # imm = 0x200
jne 0x2a5fb
leaq 0x38449(%rip), %rax     # 0x62a40
movq %rax, -0x18(%rbp)
cmpq $0xbf, -0x10(%rbp)
jg 0x2a961
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 0x2a69b
movq -0x8(%rbp), %rax
movl $0x68, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27492(%rip), %rsi     # 0x51b07
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040001, 0xdc(%rax) # imm = 0x20040001
movq -0x8(%rbp), %rax
movl $0x50, 0xe0(%rax)
jmp 0x2a95c
movq -0x8(%rbp), %rax
cmpl $0x1, 0x240(%rax)
jne 0x2a70e
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27593(%rip), %rsi     # 0x51c7b
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040001, 0x144(%rax) # imm = 0x20040001
movq -0x8(%rbp), %rax
movl $0x50, 0x148(%rax)
jmp 0x2a95a
movq -0x8(%rbp), %rax
cmpl $0x2, 0x240(%rax)
jne 0x2a781
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x273b1(%rip), %rsi     # 0x51b0c
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040001, 0x144(%rax) # imm = 0x20040001
movq -0x8(%rbp), %rax
movl $0x50, 0x148(%rax)
jmp 0x2a958
movq -0x8(%rbp), %rax
cmpl $0x3, 0x240(%rax)
jne 0x2a7f4
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27343(%rip), %rsi     # 0x51b11
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040001, 0x144(%rax) # imm = 0x20040001
movq -0x8(%rbp), %rax
movl $0x50, 0x148(%rax)
jmp 0x2a956
movq -0x8(%rbp), %rax
cmpl $0x4, 0x240(%rax)
jne 0x2a867
movq -0x8(%rbp), %rax
movl $0x69, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20012, 0x60(%rax)    # imm = 0x20012
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x274c2(%rip), %rsi     # 0x51d03
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040001, 0xdc(%rax) # imm = 0x20040001
movq -0x8(%rbp), %rax
movl $0x360, 0xe0(%rax)      # imm = 0x360
jmp 0x2a954
movq -0x8(%rbp), %rax
cmpl $0x6, 0x240(%rax)
jne 0x2a8d7
movq -0x8(%rbp), %rax
movl $0x5, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20012, 0x60(%rax)    # imm = 0x20012
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27457(%rip), %rsi     # 0x51d0b
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040001, 0x144(%rax) # imm = 0x20040001
movq -0x8(%rbp), %rax
movl $0x360, 0x148(%rax)     # imm = 0x360
jmp 0x2a952
movq -0x8(%rbp), %rax
cmpl $0x7, 0x240(%rax)
jne 0x2a947
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x8(%rbp), %rsi
callq 0x4dbc0
movq -0x8(%rbp), %rax
movl $0x20012, 0x60(%rax)    # imm = 0x20012
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x273ee(%rip), %rsi     # 0x51d12
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20040000, 0x144(%rax) # imm = 0x20040000
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
jmp 0x2a950
movq -0x8(%rbp), %rdi
callq 0x30050
jmp 0x2a952
jmp 0x2a954
jmp 0x2a956
jmp 0x2a958
jmp 0x2a95a
jmp 0x2a95c
jmp 0x2ace5
movq -0x10(%rbp), %rax
andq $0xf0, %rax
cmpq $0xc0, %rax
jne 0x2aa55
movq -0x10(%rbp), %rax
andq $0xf, %rax
cmpq $0x0, %rax
jl 0x2a9b8
movq -0x10(%rbp), %rax
andq $0xf, %rax
cmpq $0x7, %rax
jg 0x2a9b8
movq -0x8(%rbp), %rax
movl $0x20012, 0x60(%rax)    # imm = 0x20012
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27368(%rip), %rsi     # 0x51d19
callq 0x81c0
jmp 0x2a9e9
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2734a(%rip), %rsi     # 0x51d20
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x2, 0x150(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
shlq $0x3, %rdx
addq %rdx, %rsi
callq 0x81c0
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
leaq 0x38471(%rip), %rax     # 0x62ea0
movl (%rax,%rdx,4), %ecx
addl $0x20040000, %ecx       # imm = 0x20040000
movq -0x8(%rbp), %rax
movl %ecx, 0xdc(%rax)
movq -0x8(%rbp), %rax
movl $0x50, 0xe0(%rax)
jmp 0x2ace3
movq -0x10(%rbp), %rax
andq $0xf0, %rax
cmpq $0xd0, %rax
jne 0x2ab49
movq -0x10(%rbp), %rax
andq $0xf, %rax
cmpq $0x0, %rax
jl 0x2aaac
movq -0x10(%rbp), %rax
andq $0xf, %rax
cmpq $0x7, %rax
jg 0x2aaac
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27067(%rip), %rsi     # 0x51b0c
callq 0x81c0
jmp 0x2aadd
movq -0x8(%rbp), %rax
movl $0x20001, 0x60(%rax)    # imm = 0x20001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27047(%rip), %rsi     # 0x51b11
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x2, 0x150(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
shlq $0x3, %rdx
addq %rdx, %rsi
callq 0x81c0
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
leaq 0x3837d(%rip), %rax     # 0x62ea0
movl (%rax,%rdx,4), %ecx
addl $0x20040000, %ecx       # imm = 0x20040000
movq -0x8(%rbp), %rax
movl %ecx, 0xdc(%rax)
movq -0x8(%rbp), %rax
movl $0x50, 0xe0(%rax)
jmp 0x2ace1
movq -0x10(%rbp), %rax
andq $0xf0, %rax
cmpq $0xe0, %rax
jne 0x2acd6
movq -0x10(%rbp), %rax
andq $0xf, %rax
cmpq $0x0, %rax
jl 0x2ac4a
movq -0x10(%rbp), %rax
andq $0xf, %rax
cmpq $0x7, %rax
jg 0x2ac4a
movq -0x8(%rbp), %rax
movl $0x2000d, 0x60(%rax)    # imm = 0x2000D
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x27186(%rip), %rsi     # 0x51d27
callq 0x81c0
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
movq -0x18(%rbp), %rsi
callq 0x81c0
movl 0x382e0(%rip), %ecx     # 0x62ea0
addl $0x20040000, %ecx       # imm = 0x20040000
movq -0x8(%rbp), %rax
movl %ecx, 0x144(%rax)
movq -0x8(%rbp), %rax
movl $0x50, 0x148(%rax)
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
shlq $0x3, %rdx
addq %rdx, %rsi
callq 0x81c0
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
leaq 0x3827c(%rip), %rax     # 0x62ea0
movl (%rax,%rdx,4), %ecx
addl $0x20040000, %ecx       # imm = 0x20040000
movq -0x8(%rbp), %rax
movl %ecx, 0xdc(%rax)
movq -0x8(%rbp), %rax
movl $0x50, 0xe0(%rax)
jmp 0x2acd4
movq -0x8(%rbp), %rax
movl $0x2000d, 0x60(%rax)    # imm = 0x2000D
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x270c6(%rip), %rsi     # 0x51d2e
callq 0x81c0
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
shlq $0x3, %rdx
addq %rdx, %rsi
callq 0x81c0
movq -0x10(%rbp), %rax
andq $0xf, %rax
movl $0x8, %ecx
cqto
idivq %rcx
leaq 0x381ed(%rip), %rax     # 0x62ea0
movl (%rax,%rdx,4), %ecx
addl $0x20040000, %ecx       # imm = 0x20040000
movq -0x8(%rbp), %rax
movl %ecx, 0xdc(%rax)
movq -0x8(%rbp), %rax
movl $0x50, 0xe0(%rax)
jmp 0x2acdf
movq -0x8(%rbp), %rdi
callq 0x30050
jmp 0x2ace1
jmp 0x2ace3
jmp 0x2ace5
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)
addq $0x20, %rsp
popq %rbp
retq
nop