// File: /workspace/github_c_makefile_star2_O3/buptlxb[P]xRay/disasm/instr_set/opcodes_N_Z.c
// Function: pop_ebp
void __bea_callspec__ pop_ebp(PDISASM pMyDisasm)
{
    (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+DATA_TRANSFER;
    #ifndef BEA_LIGHT_DISASSEMBLY
       (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "pop ");
    #endif
    if (GV.Architecture == 64) {
        if (GV.REX.B_ == 0) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy((char*) &(*pMyDisasm).Argument1.ArgMnemonic, Registers64Bits[5+0]);
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REGS[5];
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy((char*) &(*pMyDisasm).Argument1.ArgMnemonic, Registers64Bits[5+0+8]);
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REGS[5+8];
        }
        (*pMyDisasm).Argument1.ArgSize = 64;
        (*pMyDisasm).Argument2.ArgSize = 64;
    }
    else {
        if (GV.OperandSize == 32) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy((char*) &(*pMyDisasm).Argument1.ArgMnemonic, Registers32Bits[5+0]);
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REGS[5];
            (*pMyDisasm).Argument1.ArgSize = 32;
            (*pMyDisasm).Argument2.ArgSize = 32;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy((char*) &(*pMyDisasm).Argument1.ArgMnemonic, Registers16Bits[5+0]);
            #endif
            (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REGS[5];
            (*pMyDisasm).Argument1.ArgSize = 16;
            (*pMyDisasm).Argument2.ArgSize = 16;
        }
    }
    GV.EIP_++;
    (*pMyDisasm).Argument2.ArgType = MEMORY_TYPE;
    (*pMyDisasm).Argument2.Memory.BaseRegister = REG4;
    (*pMyDisasm).Instruction.ImplicitModifiedRegs = REGISTER_TYPE+GENERAL_REG+REG4;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10001, 0x60(%rdi)    # imm = 0x10001
movl $0x20706f70, 0x68(%rdi) # imm = 0x20706F70
movb $0x0, 0x6c(%rdi)
addq $0x9c, %rdi
cmpl $0x40, 0x25c(%rbx)
jne 0xe711
cmpb $0x0, 0x287(%rbx)
leaq 0x2a4da(%rip), %rax     # 0x38bb4
leaq 0x2a4f3(%rip), %rsi     # 0x38bd4
cmoveq %rax, %rsi
leaq 0x2a768(%rip), %rax     # 0x38e54
leaq 0x2a781(%rip), %r14     # 0x38e74
cmoveq %rax, %r14
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl (%r14), %eax
movl %eax, 0xdc(%rbx)
movl $0x40, %eax
jmp 0xe760
cmpl $0x20, 0x20c(%rbx)
jne 0xe73e
leaq 0x2a4e7(%rip), %rsi     # 0x38c08
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x2a723(%rip), %eax     # 0x38e54
movl %eax, 0xdc(%rbx)
movl $0x20, %eax
jmp 0xe760
leaq 0x2a543(%rip), %rsi     # 0x38c88
callq 0x8150
movl $0x20020000, %eax       # imm = 0x20020000
addl 0x2a6ff(%rip), %eax     # 0x38e54
movl %eax, 0xdc(%rbx)
movl $0x10, %eax
movl %eax, 0xe0(%rbx)
movl %eax, 0x148(%rbx)
incq 0x1f0(%rbx)
movl $0x40000000, 0x144(%rbx) # imm = 0x40000000
movl $0x10, 0x154(%rbx)
movl $0x20020010, 0x98(%rbx) # imm = 0x20020010
addq $0x8, %rsp
popq %rbx
popq %r14
retq