// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/instr_set/opcodes_A_M.c
// Function: callf_
void __bea_callspec__ callf_(PDISASM pMyDisasm)
{
    UInt32 MyNumber;
    UInt64 MyAddress;
    size_t i = 0;
    if (GV.Architecture == 64) {
        FailDecode(pMyDisasm);
    }
    else {
        (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
        (*pMyDisasm).Instruction.BranchType = CallType;
        if (GV.SYNTAX_ == ATSyntax) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "lcall ");
            #endif
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic,"\x24");
            #endif
            i++;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "call far ");
            #endif
        }
        if (GV.OperandSize ==32) {
            if (!Security(7, pMyDisasm)) return;
            MyNumber = *((UInt16*)(UIntPtr) (GV.EIP_+5));
            #ifndef BEA_LIGHT_DISASSEMBLY
               i += CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument1.ArgMnemonic+i, "%.4X",(Int64) MyNumber);
            #endif
        }
        else {
            if (!Security(5, pMyDisasm)) return;
            MyNumber = *((UInt16*)(UIntPtr) (GV.EIP_+3));
            #ifndef BEA_LIGHT_DISASSEMBLY
               i += CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument1.ArgMnemonic+i, "%.4X",(Int64) MyNumber);
            #endif
        }
        if (GV.SYNTAX_ == ATSyntax) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic+i, " , \x24");
            #endif
            i+=4;
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((*pMyDisasm).Argument1.ArgMnemonic+i, " : ");
            #endif
            i+=3;
        }
        MyAddress = MyNumber*16;
        MyNumber = *((UInt32*)(UIntPtr) (GV.EIP_+1));
        if (GV.OperandSize == 16) {
            MyNumber = MyNumber & 0xffff;
        }
        #ifndef BEA_LIGHT_DISASSEMBLY
           i += CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument1.ArgMnemonic+i, "%.8X",(Int64) MyNumber);
        #endif
        if (GV.OperandSize == 32) {
            GV.EIP_+=7;
        }
        else {
            GV.EIP_+=5;
        }
        (*pMyDisasm).Argument1.ArgType = CONSTANT_TYPE+ABSOLUTE_;
        (*pMyDisasm).Argument1.AccessMode = READ;
        (*pMyDisasm).Instruction.ImplicitModifiedRegs = GENERAL_REG+REG4;
        (*pMyDisasm).Instruction.AddrValue = MyAddress + MyNumber;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x40, 0x25c(%rdi)
jne 0x11d57
movb $0x0, 0x6c(%rbx)
movl $0x203f3f3f, 0x68(%rbx) # imm = 0x203F3F3F
movl $0x1, 0x280(%rbx)
jmp 0x11edd
movl $0x10006, 0x60(%rbx)    # imm = 0x10006
movl $0xc, 0x78(%rbx)
leaq 0x68(%rbx), %rax
cmpl $0x400, 0x24c(%rbx)     # imm = 0x400
jne 0x11d93
movl $0x206c6c, 0x3(%rax)    # imm = 0x206C6C
movl $0x6c61636c, (%rax)     # imm = 0x6C61636C
movw $0x24, 0x9c(%rbx)
movl $0x1, %r15d
jmp 0x11da9
movabsq $0x726166206c6c6163, %rcx # imm = 0x726166206C6C6163
movq %rcx, (%rax)
movw $0x20, 0x8(%rax)
xorl %r15d, %r15d
cmpl $0x20, 0x20c(%rbx)
movq 0x250(%rbx), %rcx
jne 0x11dd0
movl $0x5, %eax
testq %rcx, %rcx
je 0x11dee
movq 0x1f0(%rbx), %rdx
addq $0x7, %rdx
jmp 0x11de5
movl $0x3, %eax
testq %rcx, %rcx
je 0x11dee
movq 0x1f0(%rbx), %rdx
addq $0x5, %rdx
cmpq %rcx, %rdx
jae 0x11ed3
movq 0x1f0(%rbx), %rcx
movzwl (%rcx,%rax), %r14d
leaq (%rbx,%r15), %rsi
addq $0x9c, %rsi
leaq 0x1bc66(%rip), %rdx     # 0x2da72
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2acdf
addq %r15, %rax
cmpl $0x400, 0x24c(%rbx)     # imm = 0x400
leaq 0x9c(%rbx,%rax), %rcx
jne 0x11e3f
movb $0x0, 0x4(%rcx)
movl $0x24202c20, (%rcx)     # imm = 0x24202C20
movl $0x4, %ecx
jmp 0x11e4a
movl $0x203a20, (%rcx)       # imm = 0x203A20
movl $0x3, %ecx
shll $0x4, %r14d
movq 0x1f0(%rbx), %rdx
movl 0x1(%rdx), %edx
cmpl $0x10, 0x20c(%rbx)
movzwl %dx, %r15d
cmovnel %edx, %r15d
addq %rbx, %rax
leaq (%rcx,%rax), %rsi
addq $0x9c, %rsi
leaq 0x1bbe0(%rip), %rdx     # 0x2da5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2acdf
xorl %eax, %eax
cmpl $0x20, 0x20c(%rbx)
sete %al
movq 0x1f0(%rbx), %rcx
leaq (%rcx,%rax,2), %rax
addq $0x5, %rax
movq %rax, 0x1f0(%rbx)
movl $0x88000000, 0xdc(%rbx) # imm = 0x88000000
movl $0x1, 0xe8(%rbx)
movl $0x20010, 0x98(%rbx)    # imm = 0x20010
addq %r15, %r14
movq %r14, 0x88(%rbx)
jmp 0x11edd
movl $0x1, 0x289(%rbx)
popq %rbx
popq %r14
popq %r15
retq