// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/print.c
// Function: print_offset_pe_value
unsigned long
print_offset_pe_value(FILE *inptr,unsigned short byteorder,struct ifd_entry *entry_ptr,
                    unsigned long fileoffset_base,unsigned short subifd_ident,
                    struct image_summary *summary_entry,char *parent_name,char*prefix,
                    int indent,int make,int model,int at_offset)
{
    unsigned long endoffset = 0L;

    if(inptr && entry_ptr)
    {
        endoffset = fileoffset_base + entry_ptr->value + 
            (value_type_size(entry_ptr->value_type) * entry_ptr->count);

        switch(make)
        {
            case MAKER_OLYMPUS:
                olympus_offset_pe_value(inptr,byteorder,entry_ptr,fileoffset_base,
                                                        subifd_ident,summary_entry,
                                                        parent_name,prefix,indent,
                                                        make,model,at_offset);
                break;
            default:
                print_private_offset_value(inptr,byteorder,entry_ptr,
                                            fileoffset_base,subifd_ident,
                                            parent_name,prefix,indent,
                                            make,model,at_offset);
                break;
        }
    }
    else
    {
        printred(" invalid call to print_offset_pe_makervalue ");
        if(inptr == (FILE *)0)
            printred(" no input file pointer ");
        if(entry_ptr == (struct ifd_entry *)0)
            printred(" null entry pointer");
    }
    if(ferror(inptr) || feof(inptr))
        clearerr(inptr);
    (void)newline(0);
    return(endoffset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rdi, %rbx
testq %rdi, %rdi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0xa3de
movl %esi, %r13d
movq %r9, 0x10(%rsp)
movl %r8d, 0xc(%rsp)
movl 0x68(%rsp), %r14d
movq 0x10(%r15), %rbp
addq %r12, %rbp
movzwl 0x2(%r15), %edi
callq 0x1646c
movl %r14d, %ecx
movslq %eax, %r14
imulq 0x8(%r15), %r14
addq %rbp, %r14
cmpl $0xd, %ecx
jne 0xa425
movl 0x70(%rsp), %eax
movzwl %r13w, %esi
movzwl 0xc(%rsp), %r8d
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
movq 0x10(%rsp), %r9
movl 0x78(%rsp), %r10d
pushq %r10
pushq %rax
pushq $0xd
movl 0x78(%rsp), %eax
pushq %rax
pushq 0x78(%rsp)
pushq 0x78(%rsp)
callq 0x30206
jmp 0xa467
leaq 0x36cb2(%rip), %rdi     # 0x41097
leaq 0x378cc(%rip), %rsi     # 0x41cb8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17a82
testq %rbx, %rbx
jne 0xa41b
leaq 0x36c91(%rip), %rdi     # 0x41097
leaq 0x3730a(%rip), %rsi     # 0x41717
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17a82
testq %r15, %r15
je 0xa46d
xorl %r14d, %r14d
jmp 0xa48c
subq $0x30, %rsp
movl 0xa8(%rsp), %eax
movl %eax, 0x20(%rsp)
movl %ecx, 0x10(%rsp)
movl 0x90(%rsp), %eax
movl %eax, 0x8(%rsp)
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movzwl %r13w, %esi
movzwl 0x3c(%rsp), %r8d
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
callq 0xa76a
addq $0x30, %rsp
jmp 0xa48c
leaq 0x36c23(%rip), %rdi     # 0x41097
leaq 0x372b6(%rip), %rsi     # 0x41731
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17a82
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0xa4a4
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0xa4ac
movq %rbx, %rdi
callq 0x31b0
xorl %edi, %edi
callq 0x1707a
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq