// File: /workspace/github_c_makefile_star2_O3/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 0x11bf5
movb $0x0, 0x6c(%rbx)
movl $0x203f3f3f, 0x68(%rbx) # imm = 0x203F3F3F
movl $0x1, 0x280(%rbx)
jmp 0x11d65
movl $0x10006, 0x60(%rbx)    # imm = 0x10006
movl $0xc, 0x78(%rbx)
leaq 0x68(%rbx), %rax
cmpl $0x400, 0x24c(%rbx)     # imm = 0x400
jne 0x11c31
movl $0x206c6c, 0x3(%rax)    # imm = 0x206C6C
movl $0x6c61636c, (%rax)     # imm = 0x6C61636C
movw $0x24, 0x9c(%rbx)
movl $0x1, %r15d
jmp 0x11c47
movabsq $0x726166206c6c6163, %rcx # imm = 0x726166206C6C6163
movq %rcx, (%rax)
movw $0x20, 0x8(%rax)
xorl %r15d, %r15d
movq 0x250(%rbx), %rcx
decq %rcx
cmpl $0x20, 0x20c(%rbx)
movq 0x1f0(%rbx), %rax
jne 0x11c6c
leaq 0x7(%rax), %rsi
movl $0x5, %edx
jmp 0x11c75
leaq 0x5(%rax), %rsi
movl $0x3, %edx
cmpq %rsi, %rcx
jae 0x11c89
movl $0x1, 0x289(%rbx)
jmp 0x11d65
movzwl (%rax,%rdx), %r14d
leaq (%rbx,%r15), %rsi
addq $0x9c, %rsi
leaq 0x1bdd2(%rip), %rdx     # 0x2da72
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2a60b
addq %r15, %rax
cmpl $0x400, 0x24c(%rbx)     # imm = 0x400
leaq 0x9c(%rbx,%rax), %rcx
jne 0x11cd3
movb $0x0, 0x4(%rcx)
movl $0x24202c20, (%rcx)     # imm = 0x24202C20
movl $0x4, %ecx
jmp 0x11cde
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 0x1bd4c(%rip), %rdx     # 0x2da5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2a60b
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)
popq %rbx
popq %r14
popq %r15
retq