// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/instr_set/opcodes_A_M.c
// Function: call_
void __bea_callspec__ call_(PDISASM pMyDisasm)
{
    UInt64 MyAddress;
    long MyNumber;
    (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
    (*pMyDisasm).Instruction.BranchType = CallType;
    (*pMyDisasm).Argument1.ArgSize = GV.OperandSize;
    (*pMyDisasm).Argument1.AccessMode = READ;
    #ifndef BEA_LIGHT_DISASSEMBLY
       (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "call ");
    #endif
    if (GV.OperandSize >= 32) {
        if (!Security(5, pMyDisasm)) return;
        MyNumber = *((Int32*)(UIntPtr) (GV.EIP_+1))+5+GV.NB_PREFIX;
        CalculateRelativeAddress(&MyAddress,(Int64) MyNumber, pMyDisasm);
        (*pMyDisasm).Instruction.AddrValue = MyAddress;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = GENERAL_REG+REG4;
        if (MyAddress >= 0x80000000) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument1.ArgMnemonic, "%.16llX",(Int64) MyAddress);
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument1.ArgMnemonic, "%.8X",(Int64) MyAddress);
            #endif
        }
        (*pMyDisasm).Argument1.ArgType = CONSTANT_TYPE+RELATIVE_;
        (*pMyDisasm).Instruction.AddrValue = MyAddress;
        GV.EIP_+=5;
    }
    else {
        if (!Security(3, pMyDisasm)) return;
        MyNumber = *((Int32*)(UIntPtr) (GV.EIP_+1))+3+GV.NB_PREFIX;
        CalculateRelativeAddress(&MyAddress,(Int64) MyNumber, pMyDisasm);
        MyAddress = MyAddress & 0xffff;
        (*pMyDisasm).Instruction.AddrValue = MyAddress;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = GENERAL_REG+REG4;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument1.ArgMnemonic, "%.8X",(Int64) MyAddress);
        #endif
        (*pMyDisasm).Argument1.ArgType = CONSTANT_TYPE+RELATIVE_;
        (*pMyDisasm).Instruction.AddrValue = MyAddress;
        GV.EIP_+=3;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x10006, 0x60(%rax)    # imm = 0x10006
movq -0x8(%rbp), %rax
movl $0xc, 0x78(%rax)
movq -0x8(%rbp), %rax
movl 0x20c(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0xe8(%rax)
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
addq $0x8, %rdi
leaq 0x2487f(%rip), %rsi     # 0x514b6
callq 0x81c0
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jl 0x2cd37
movq -0x8(%rbp), %rsi
movl $0x5, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x2cc65
jmp 0x2cdfe
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movl 0x1(%rax), %eax
addl $0x5, %eax
movq -0x8(%rbp), %rcx
addl 0x264(%rcx), %eax
cltq
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rsi
movq -0x8(%rbp), %rdx
leaq -0x10(%rbp), %rdi
callq 0x4db60
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x8(%rbp), %rax
movl $0x20010, 0x98(%rax)    # imm = 0x20010
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, -0x10(%rbp)
jb 0x2cce0
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x9c, %rsi
movq -0x10(%rbp), %rcx
leaq 0x247cf(%rip), %rdx     # 0x514a8
callq 0x4d3a0
jmp 0x2ccff
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x9c, %rsi
movq -0x10(%rbp), %rcx
leaq 0x247b6(%rip), %rdx     # 0x514b0
callq 0x4d3a0
movq -0x8(%rbp), %rax
movl $0x84000000, 0xdc(%rax) # imm = 0x84000000
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x5, %rcx
movq %rcx, 0x1f0(%rax)
jmp 0x2cdfe
movq -0x8(%rbp), %rsi
movl $0x3, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x2cd4f
jmp 0x2cdfe
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movl 0x1(%rax), %eax
addl $0x3, %eax
movq -0x8(%rbp), %rcx
addl 0x264(%rcx), %eax
cltq
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rsi
movq -0x8(%rbp), %rdx
leaq -0x10(%rbp), %rdi
callq 0x4db60
movq -0x10(%rbp), %rax
andq $0xffff, %rax           # imm = 0xFFFF
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x8(%rbp), %rax
movl $0x20010, 0x98(%rax)    # imm = 0x20010
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x9c, %rsi
movq -0x10(%rbp), %rcx
leaq 0x246ea(%rip), %rdx     # 0x514b0
callq 0x4d3a0
movq -0x8(%rbp), %rax
movl $0x84000000, 0xdc(%rax) # imm = 0x84000000
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x3, %rcx
movq %rcx, 0x1f0(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)