// File: /workspace/github_c_makefile_star2_O2/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 0x9b3f
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 0x155c8
movl %r14d, %ecx
movslq %eax, %r14
imulq 0x8(%r15), %r14
addq %rbp, %r14
cmpl $0xd, %ecx
jne 0x9b72
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 0x2e99f
jmp 0x9bb4
leaq 0x36172(%rip), %rdi     # 0x3fcb8
callq 0x56e2
testq %rbx, %rbx
jne 0x9b5c
leaq 0x35bc0(%rip), %rdi     # 0x3f717
callq 0x56e2
testq %r15, %r15
jne 0x9b6d
leaq 0x35bc9(%rip), %rdi     # 0x3f731
callq 0x56e2
xorl %r14d, %r14d
jmp 0x9bb8
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 0x9e7b
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x9bd0
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x9bd8
movq %rbx, %rdi
callq 0x31b0
xorl %edi, %edi
callq 0x160f7
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq