// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_A_M.c
// Function: mov_OveAX
void __bea_callspec__ mov_OveAX(PDISASM pMyDisasm)
{
    UInt64 MyAddress;
    (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+DATA_TRANSFER;
    #ifndef BEA_LIGHT_DISASSEMBLY
       (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "mov ");
    #endif
    GV.RM_ = 5;
    GV.MOD_= 0;
    if (GV.AddressSize == 64) {
        if (!Security(9, pMyDisasm)) return;
        MyAddress = *((UInt64 *)(UIntPtr) (GV.EIP_+1));
       #ifndef BEA_LIGHT_DISASSEMBLY
          (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument1.ArgMnemonic, "%.16llX",(Int64) MyAddress);
       #endif
       GV.EIP_+=9;
       (*pMyDisasm).Argument1.Memory.Displacement = (Int64)MyAddress;
    }
    else if (GV.AddressSize == 32) {
        if (!Security(5, pMyDisasm)) return;
        MyAddress = *((UInt32*)(UIntPtr) (GV.EIP_+1));
       #ifndef BEA_LIGHT_DISASSEMBLY
          (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument1.ArgMnemonic, "%.8X",(Int64) MyAddress);
       #endif
       GV.EIP_+=5;
       (*pMyDisasm).Argument1.Memory.Displacement = (Int64)MyAddress;
    }
    else {
        if (!Security(3, pMyDisasm)) return;
        MyAddress = *((UInt16*)(UIntPtr) (GV.EIP_+1));
       #ifndef BEA_LIGHT_DISASSEMBLY
          (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument1.ArgMnemonic, "%.4X",(Int64) MyAddress);
       #endif
       GV.EIP_+=3;
       (*pMyDisasm).Argument1.Memory.Displacement = (Int64)MyAddress;
    }

    if (GV.REX.B_ == 0) {
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg1qword;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers64Bits[0]);
            #endif
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg1dword;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers32Bits[0]);
            #endif
        }
        else {
            GV.MemDecoration = Arg1word;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers16Bits[0]);
            #endif
        }
    }
    else {
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg1qword;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers64Bits[0+8]);
            #endif
        }
        else if (GV.OperandSize == 32) {
            GV.MemDecoration = Arg1dword;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers32Bits[0+8]);
            #endif
        }
        else {
            GV.MemDecoration = Arg1word;
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers16Bits[0+8]);
            #endif
        }
    }

    (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+GENERAL_REG+REG0;
    (*pMyDisasm).Argument1.ArgType = MEMORY_TYPE ;
    if (GV.MemDecoration == Arg1qword) {
        (*pMyDisasm).Argument1.ArgSize = 64;
        (*pMyDisasm).Argument2.ArgSize = 64;
    }
    else if (GV.MemDecoration == Arg1dword) {
        (*pMyDisasm).Argument1.ArgSize = 32;
        (*pMyDisasm).Argument2.ArgSize = 32;
    }
    else if (GV.MemDecoration == Arg1word) {
        (*pMyDisasm).Argument1.ArgSize = 16;
        (*pMyDisasm).Argument2.ArgSize = 16;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x10001, 0x60(%rax)    # imm = 0x10001
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2f755(%rip), %rsi     # 0x516cf
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x5, 0x21c(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x218(%rax)
movq -0x8(%rbp), %rax
cmpl $0x40, 0x214(%rax)
jne 0x2201c
movq -0x8(%rbp), %rsi
movl $0x9, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x21fc0
jmp 0x222e2
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movq 0x1(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x9c, %rsi
movq -0x10(%rbp), %rcx
leaq 0x2f4bb(%rip), %rdx     # 0x514a8
callq 0x4d3a0
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x9, %rcx
movq %rcx, 0x1f0(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xf8(%rax)
jmp 0x2210a
movq -0x8(%rbp), %rax
cmpl $0x20, 0x214(%rax)
jne 0x22099
movq -0x8(%rbp), %rsi
movl $0x5, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x22041
jmp 0x222e2
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movl 0x1(%rax), %eax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x9c, %rsi
movq -0x10(%rbp), %rcx
leaq 0x2f443(%rip), %rdx     # 0x514b0
callq 0x4d3a0
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x5, %rcx
movq %rcx, 0x1f0(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xf8(%rax)
jmp 0x22108
movq -0x8(%rbp), %rsi
movl $0x3, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x220b1
jmp 0x222e2
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movzwl 0x1(%rax), %eax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x9c, %rsi
movq -0x10(%rbp), %rcx
leaq 0x2f3e8(%rip), %rdx     # 0x514c6
callq 0x4d3a0
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x3, %rcx
movq %rcx, 0x1f0(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xf8(%rax)
jmp 0x2210a
movq -0x8(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x0, %eax
jne 0x221b2
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x22152
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
leaq 0x40ab5(%rip), %rsi     # 0x62c00
callq 0x81c0
jmp 0x221ad
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x22186
movq -0x8(%rbp), %rax
movl $0x3, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
leaq 0x40ac1(%rip), %rsi     # 0x62c40
callq 0x81c0
jmp 0x221ab
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
leaq 0x40b1a(%rip), %rsi     # 0x62cc0
callq 0x81c0
jmp 0x221ad
jmp 0x22243
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x221e6
movq -0x8(%rbp), %rax
movl $0x4, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
leaq 0x40a41(%rip), %rsi     # 0x62c20
callq 0x81c0
jmp 0x22241
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x2221a
movq -0x8(%rbp), %rax
movl $0x3, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
leaq 0x40a6d(%rip), %rsi     # 0x62c80
callq 0x81c0
jmp 0x2223f
movq -0x8(%rbp), %rax
movl $0x2, 0x210(%rax)
movq -0x8(%rbp), %rdi
addq $0x104, %rdi            # imm = 0x104
leaq 0x40ac6(%rip), %rsi     # 0x62d00
callq 0x81c0
jmp 0x22241
jmp 0x22243
movq -0x8(%rbp), %rax
movl $0x20020001, 0x144(%rax) # imm = 0x20020001
movq -0x8(%rbp), %rax
movl $0x40000000, 0xdc(%rax) # imm = 0x40000000
movq -0x8(%rbp), %rax
cmpl $0x4, 0x210(%rax)
jne 0x2228a
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0x148(%rax)
jmp 0x222e2
movq -0x8(%rbp), %rax
cmpl $0x3, 0x210(%rax)
jne 0x222b5
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x148(%rax)
jmp 0x222e0
movq -0x8(%rbp), %rax
cmpl $0x2, 0x210(%rax)
jne 0x222de
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
jmp 0x222e0
jmp 0x222e2
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)