// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10001, 0x60(%rdi)    # imm = 0x10001
movl $0x20766f6d, 0x68(%rdi) # imm = 0x20766F6D
movb $0x0, 0x6c(%rdi)
movabsq $0x500000000, %rax      # imm = 0x500000000
movq %rax, 0x218(%rdi)
movl 0x214(%rdi), %ecx
movq 0x250(%rdi), %rax
cmpl $0x20, %ecx
je 0x12697
cmpl $0x40, %ecx
jne 0x126db
testq %rax, %rax
je 0x12669
movq 0x1f0(%rbx), %rcx
addq $0x9, %rcx
cmpq %rax, %rcx
jae 0x12751
movq 0x1f0(%rbx), %rax
movq 0x1(%rax), %r14
leaq 0x9c(%rbx), %rsi
leaq 0x1b3d2(%rip), %rdx     # 0x2da54
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x9, %eax
jmp 0x1271a
testq %rax, %rax
je 0x126b0
movq 0x1f0(%rbx), %rcx
addq $0x5, %rcx
cmpq %rax, %rcx
jae 0x12751
movq 0x1f0(%rbx), %rax
movl 0x1(%rax), %r14d
leaq 0x9c(%rbx), %rsi
leaq 0x1b393(%rip), %rdx     # 0x2da5c
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x5, %eax
jmp 0x1271a
testq %rax, %rax
je 0x126f0
movq 0x1f0(%rbx), %rcx
addq $0x3, %rcx
cmpq %rax, %rcx
jae 0x12751
movq 0x1f0(%rbx), %rax
movzwl 0x1(%rax), %r14d
leaq 0x9c(%rbx), %rsi
leaq 0x1b368(%rip), %rdx     # 0x2da72
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x3, %eax
addq %rax, 0x1f0(%rbx)
movq %r14, 0xf8(%rbx)
leaq 0x104(%rbx), %rdi
cmpb $0x0, 0x287(%rbx)
movl 0x20c(%rbx), %eax
je 0x12760
cmpl $0x40, %eax
je 0x12778
cmpl $0x20, %eax
jne 0x12781
leaq 0x264d1(%rip), %rsi     # 0x38c20
jmp 0x12771
movl $0x1, %eax
movl $0x289, %ecx            # imm = 0x289
jmp 0x127e8
cmpl $0x40, %eax
je 0x1278a
cmpl $0x20, %eax
jne 0x12798
leaq 0x2646f(%rip), %rsi     # 0x38be0
movl $0x3, %eax
jmp 0x127a4
leaq 0x26441(%rip), %rsi     # 0x38bc0
jmp 0x12791
leaq 0x26518(%rip), %rsi     # 0x38ca0
jmp 0x1279f
leaq 0x2640f(%rip), %rsi     # 0x38ba0
movl $0x4, %eax
jmp 0x127a4
leaq 0x264c1(%rip), %rsi     # 0x38c60
movl $0x2, %eax
movl %eax, 0x210(%rbx)
callq 0x8150
movl $0x20020001, 0x144(%rbx) # imm = 0x20020001
movl $0x40000000, 0xdc(%rbx) # imm = 0x40000000
movl 0x210(%rbx), %eax
addl $-0x2, %eax
cmpl $0x2, %eax
ja 0x127eb
movl %eax, %eax
leaq 0x1b21e(%rip), %rcx     # 0x2d9f8
movl (%rcx,%rax,4), %eax
movl %eax, 0xe0(%rbx)
movl $0x148, %ecx            # imm = 0x148
movl %eax, (%rbx,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq