// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10006, 0x60(%rdi)    # imm = 0x10006
movl $0xc, 0x78(%rdi)
movl 0x20c(%rdi), %edx
leaq 0x9c(%rdi), %rsi
movl %edx, 0xe0(%rdi)
movl $0x1, 0xe8(%rdi)
movl $0x6c6c6163, 0x68(%rdi) # imm = 0x6C6C6163
movw $0x20, 0x6c(%rdi)
movq 0x250(%rdi), %rcx
decq %rcx
movq 0x1f0(%rdi), %rax
cmpl $0x20, %edx
jl 0x17467
movq %rax, %rdx
addq $0x5, %rdx
cmpq %rdx, %rcx
jb 0x17473
movslq 0x1(%rax), %rax
movslq 0x264(%rbx), %rcx
addq %rcx, %rax
addq $0x5, %rax
movl $0x1, 0x258(%rbx)
movq 0x1f8(%rbx), %r14
testq %r14, %r14
jne 0x17414
movq 0x200(%rbx), %r14
addq %rax, %r14
movq %r14, 0x88(%rbx)
movl $0x20010, 0x98(%rbx)    # imm = 0x20010
cmpq $0x7fffffff, %r14       # imm = 0x7FFFFFFF
leaq 0x1661e(%rip), %rax     # 0x2da54
leaq 0x1661f(%rip), %rdx     # 0x2da5c
cmovaq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2a60b
movl $0x84000000, 0xdc(%rbx) # imm = 0x84000000
movq %r14, 0x88(%rbx)
movl $0x5, %eax
jmp 0x174e9
movq %rax, %rdx
addq $0x3, %rdx
cmpq %rdx, %rcx
jae 0x1747f
movl $0x1, 0x289(%rbx)
jmp 0x174f0
movl 0x1(%rax), %eax
movl 0x264(%rbx), %ecx
addl %ecx, %eax
addl $0x3, %eax
movl $0x1, 0x258(%rbx)
movq 0x1f8(%rbx), %rcx
testq %rcx, %rcx
jne 0x174aa
movq 0x200(%rbx), %rcx
addl %eax, %ecx
movzwl %cx, %r14d
movq %r14, 0x88(%rbx)
movl $0x20010, 0x98(%rbx)    # imm = 0x20010
leaq 0x16594(%rip), %rdx     # 0x2da5c
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2a60b
movl $0x84000000, 0xdc(%rbx) # imm = 0x84000000
movq %r14, 0x88(%rbx)
movl $0x3, %eax
addq %rax, 0x1f0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq