// File: /workspace/github_c_makefile_star2_O1/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 0xa27f
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 0x15f20
movl %r14d, %ecx
movslq %eax, %r14
imulq 0x8(%r15), %r14
addq %rbp, %r14
cmpl $0xd, %ecx
jne 0xa2c6
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 0x2fa19
jmp 0xa308
leaq 0x36e11(%rip), %rdi     # 0x41097
leaq 0x37a2b(%rip), %rsi     # 0x41cb8
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17530
testq %rbx, %rbx
jne 0xa2bc
leaq 0x36df0(%rip), %rdi     # 0x41097
leaq 0x37469(%rip), %rsi     # 0x41717
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17530
testq %r15, %r15
je 0xa30e
xorl %r14d, %r14d
jmp 0xa32d
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 0xa60a
addq $0x30, %rsp
jmp 0xa32d
leaq 0x36d82(%rip), %rdi     # 0x41097
leaq 0x37415(%rip), %rsi     # 0x41731
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17530
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0xa345
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0xa34d
movq %rbx, %rdi
callq 0x31b0
xorl %edi, %edi
callq 0x16b56
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq