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

// 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 0x2ccb5(%rip), %rsi     # 0x516cf
callq 0x81c0
movq -0x8(%rbp), %rax
movl $0x20020020, 0xdc(%rax) # imm = 0x20020020
movq -0x8(%rbp), %rax
movl $0x88000000, 0x144(%rax) # imm = 0x88000000
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x24adc
movq -0x8(%rbp), %rsi
movl $0x9, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x24a64
jmp 0x24ce7
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 $0x104, %rsi            # imm = 0x104
movq -0x10(%rbp), %rcx
leaq 0x2ca17(%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, 0x90(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0x148(%rax)
jmp 0x24c09
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x24b7c
movq -0x8(%rbp), %rsi
movl $0x5, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x24b05
jmp 0x24ce7
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 $0x104, %rsi            # imm = 0x104
movq -0x10(%rbp), %rcx
leaq 0x2c97f(%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, 0x90(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x148(%rax)
jmp 0x24c07
movq -0x8(%rbp), %rsi
movl $0x3, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x24b94
jmp 0x24ce7
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 $0x104, %rsi            # imm = 0x104
movq -0x10(%rbp), %rcx
leaq 0x2c905(%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, 0x90(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
jmp 0x24c09
movq -0x8(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x0, %eax
jne 0x24c80
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x24c3f
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x3dfdc(%rip), %rsi     # 0x62c14
callq 0x81c0
jmp 0x24c7e
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x24c65
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x3e00a(%rip), %rsi     # 0x62c68
callq 0x81c0
jmp 0x24c7c
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x3e071(%rip), %rsi     # 0x62ce8
callq 0x81c0
jmp 0x24c7e
jmp 0x24ce7
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x24ca6
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x3df95(%rip), %rsi     # 0x62c34
callq 0x81c0
jmp 0x24ce5
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x24ccc
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x3dfe3(%rip), %rsi     # 0x62ca8
callq 0x81c0
jmp 0x24ce3
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x3e04a(%rip), %rsi     # 0x62d28
callq 0x81c0
jmp 0x24ce5
jmp 0x24ce7
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)