// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/instr_set/opcodes_A_M.c
// Function: mov_ObAL
void __bea_callspec__ mov_ObAL(PDISASM pMyDisasm)
{
    UInt64 MyAddress;
    (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+DATA_TRANSFER;
    #ifndef BEA_LIGHT_DISASSEMBLY
       (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "mov ");
    #endif
    GV.MemDecoration = Arg1byte;
    GV.RM_ = 5;
    GV.MOD_= 0;
    (*pMyDisasm).Argument2.ArgType = REGISTER_TYPE+GENERAL_REG+REG0;
    (*pMyDisasm).Argument1.ArgType = MEMORY_TYPE ;
    (*pMyDisasm).Argument1.ArgSize = 8;
    (*pMyDisasm).Argument2.ArgSize = 8;
    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) {
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers8Bits[0]);
        #endif
    }
    else {
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) strcpy ((char*) (*pMyDisasm).Argument2.ArgMnemonic, Registers8Bits[0+8]);
        #endif
    }

}

// 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)
movl $0x1, 0x210(%rdi)
movabsq $0x500000000, %rax      # imm = 0x500000000
movq %rax, 0x218(%rdi)
movabsq $0x820020001, %rax      # imm = 0x820020001
movq %rax, 0x144(%rdi)
leaq 0x9c(%rdi), %rsi
movabsq $0x840000000, %rax      # imm = 0x840000000
movq %rax, 0xdc(%rdi)
movl 0x214(%rdi), %ecx
movq 0x250(%rdi), %rax
cmpl $0x20, %ecx
je 0x1254a
cmpl $0x40, %ecx
jne 0x12587
testq %rax, %rax
je 0x12526
movq 0x1f0(%rbx), %rcx
addq $0x9, %rcx
cmpq %rax, %rcx
jae 0x125e6
movq 0x1f0(%rbx), %rax
movq 0x1(%rax), %r14
leaq 0x1b51c(%rip), %rdx     # 0x2da54
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x9, %eax
jmp 0x125bf
testq %rax, %rax
je 0x12563
movq 0x1f0(%rbx), %rcx
addq $0x5, %rcx
cmpq %rax, %rcx
jae 0x125e6
movq 0x1f0(%rbx), %rax
movl 0x1(%rax), %r14d
leaq 0x1b4e7(%rip), %rdx     # 0x2da5c
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x5, %eax
jmp 0x125bf
testq %rax, %rax
je 0x1259c
movq 0x1f0(%rbx), %rcx
addq $0x3, %rcx
cmpq %rax, %rcx
jae 0x125e6
movq 0x1f0(%rbx), %rax
movzwl 0x1(%rax), %r14d
leaq 0x1b4c3(%rip), %rdx     # 0x2da72
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x3, %eax
addq %rax, 0x1f0(%rbx)
leaq 0x104(%rbx), %rdi
movq %r14, 0xf8(%rbx)
cmpb $0x0, 0x287(%rbx)
je 0x125f8
leaq 0x2677c(%rip), %rsi     # 0x38d60
jmp 0x125ff
movl $0x1, 0x289(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x26721(%rip), %rsi     # 0x38d20
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8150