// File: /workspace/github_c_makefile_star2_O1/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), %ecx
leaq 0x9c(%rdi), %rsi
movl %ecx, 0xe0(%rdi)
movl $0x1, 0xe8(%rdi)
movl $0x6c6c6163, 0x68(%rdi) # imm = 0x6C6C6163
movw $0x20, 0x6c(%rdi)
movq 0x250(%rdi), %rax
cmpl $0x20, %ecx
jl 0x17996
testq %rax, %rax
je 0x1790d
movq 0x1f0(%rbx), %rcx
addq $0x5, %rcx
cmpq %rax, %rcx
jae 0x17a25
movq 0x1f0(%rbx), %rax
movq 0x1f8(%rbx), %r14
movslq 0x1(%rax), %rax
movslq 0x264(%rbx), %rcx
addq %rcx, %rax
addq $0x5, %rax
movl $0x1, 0x258(%rbx)
testq %r14, %r14
jne 0x17943
movq 0x200(%rbx), %r14
addq %rax, %r14
movq %r14, 0x88(%rbx)
movl $0x20010, 0x98(%rbx)    # imm = 0x20010
cmpq $0x7fffffff, %r14       # imm = 0x7FFFFFFF
leaq 0x160ef(%rip), %rax     # 0x2da54
leaq 0x160f0(%rip), %rdx     # 0x2da5c
cmovaq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x84000000, 0xdc(%rbx) # imm = 0x84000000
movq %r14, 0x88(%rbx)
movl $0x5, %eax
jmp 0x17a1c
testq %rax, %rax
je 0x179ab
movq 0x1f0(%rbx), %rcx
addq $0x3, %rcx
cmpq %rax, %rcx
jae 0x17a25
movq 0x1f0(%rbx), %rcx
movq 0x1f8(%rbx), %rax
movl 0x1(%rcx), %ecx
movl 0x264(%rbx), %edx
addl %edx, %ecx
addl $0x3, %ecx
movl $0x1, 0x258(%rbx)
testq %rax, %rax
jne 0x179dd
movq 0x200(%rbx), %rax
addl %ecx, %eax
movzwl %ax, %r14d
movq %r14, 0x88(%rbx)
movl $0x20010, 0x98(%rbx)    # imm = 0x20010
leaq 0x16061(%rip), %rdx     # 0x2da5c
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
movl $0x84000000, 0xdc(%rbx) # imm = 0x84000000
movq %r14, 0x88(%rbx)
movl $0x3, %eax
addq %rax, 0x1f0(%rbx)
jmp 0x17a2f
movl $0x1, 0x289(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq