// File: /workspace/github_c_makefile_star2_O2/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 0x118a1
movb $0x0, 0x6c(%rbx)
movl $0x203f3f3f, 0x68(%rbx) # imm = 0x203F3F3F
movl $0x1, 0x280(%rbx)
jmp 0x11a0a
movl $0x10006, 0x60(%rbx)    # imm = 0x10006
movl $0xc, 0x78(%rbx)
leaq 0x68(%rbx), %rax
cmpl $0x400, 0x24c(%rbx)     # imm = 0x400
jne 0x118db
movl $0x206c6c, 0x3(%rax)    # imm = 0x206C6C
movl $0x6c61636c, (%rax)     # imm = 0x6C61636C
movw $0x24, 0x9c(%rbx)
pushq $0x1
popq %r15
jmp 0x118f1
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 0x11918
leaq 0x7(%rax), %rdx
cmpq %rdx, %rcx
jb 0x11921
pushq $0x5
jmp 0x11932
leaq 0x5(%rax), %rdx
cmpq %rdx, %rcx
jae 0x11930
movl $0x1, 0x289(%rbx)
jmp 0x11a0a
pushq $0x3
popq %rcx
movzwl (%rax,%rcx), %r14d
leaq (%rbx,%r15), %rsi
addq $0x9c, %rsi
leaq 0x19128(%rip), %rdx     # 0x2aa72
movq %rbx, %rdi
movq %r14, %rcx
callq 0x283ec
addq %r15, %rax
cmpl $0x400, 0x24c(%rbx)     # imm = 0x400
leaq 0x9c(%rbx,%rax), %rcx
jne 0x1197a
movb $0x0, 0x4(%rcx)
movl $0x24202c20, (%rcx)     # imm = 0x24202C20
pushq $0x4
jmp 0x11982
movl $0x203a20, (%rcx)       # imm = 0x203A20
pushq $0x3
popq %rcx
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 0x190a7(%rip), %rdx     # 0x2aa5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x283ec
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