// File: /workspace/github_c_makefile_star2_O3/hfiguiere[P]exifprobe/print.c
// Function: print_private_entry
unsigned long
print_private_entry(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 make,int model,int indent)
{
    int value_is_offset = 0;
    unsigned long endoffset = 0UL;
    int chpr = 0;

    if((PRINT_ENTRY))
    {
        value_is_offset = is_offset(entry_ptr);
        if(value_is_offset == 0)
            value_is_offset = private_value_is_offset(make,subifd_ident,entry_ptr->tag);
        print_private_taginfo(entry_ptr,subifd_ident,parent_name,make,indent);
        if((entry_ptr->value_type == 0) || (entry_ptr->value_type > DOUBLE) ||
            ferror(inptr) || feof(inptr))
        {
            clearerr(inptr);
            printred("# INVALID ENTRY");
            endoffset = ftell(inptr);
        }
        else if(entry_ptr->count == 0)
        {
            if(PRINT_VALUE)
                chpr += printf(" EMPTY (value=%#lx)",entry_ptr->value);
            endoffset = ftell(inptr);
        }
        else if(value_is_offset)
        {
            if(value_is_offset > 0)
            {
                /* Offsets read from the file are printed relative to the */
                /* beginning of the file (with fileoffset_base added) so  */
                /* that the values, printed later, will be easy to find.  */
                if(PRINT_BOTH_OFFSET)
                    chpr += printf("@%#lx=%lu",entry_ptr->value + fileoffset_base,
                            entry_ptr->value + fileoffset_base);
                else if(PRINT_HEX_OFFSET)
                    chpr += printf("@%#lx",entry_ptr->value + fileoffset_base);
                else if(PRINT_DEC_OFFSET)
                    chpr += printf("@%lu",entry_ptr->value + fileoffset_base);

                if(fileoffset_base && (PRINT_ENTRY_RELOFFSET))
                    chpr += printf(" (%lu) ",entry_ptr->value);
            }
            else if((value_is_offset < 0) && (PRINT_VALUE))
            {
                print_value(entry_ptr,PREFIX);
                interpret_pe_value(entry_ptr,subifd_ident,make,prefix);
            }

            /* Print "inline" in REPORT & LIST modes                      */
            if(!(PRINT_VALUE_AT_OFFSET))
            {
                setcharsprinted(chpr);
                chpr = 0;
                endoffset = print_offset_pe_value(inptr,byteorder,
                                            entry_ptr,fileoffset_base,
                                            subifd_ident,summary_entry,
                                            parent_name,"@",indent + MEDIUMINDENT,
                                            make,model,0);
            }
        }
        else if(PRINT_VALUE)
        {
            print_value(entry_ptr,PREFIX);
            interpret_pe_value(entry_ptr,subifd_ident,make,prefix);
        }
        chpr = newline(chpr);
    }
    return(endoffset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x4e0f0(%rip), %rax     # 0x58180
testl $0x4003333, (%rax)      # imm = 0x4003333
je 0xa15e
movl %r8d, %r15d
movq %rdx, %r14
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movq %rcx, (%rsp)
movq %r9, 0x10(%rsp)
movl 0x70(%rsp), %ebp
movl 0x60(%rsp), %r13d
movq %rdx, %rdi
callq 0xff89
movl %eax, %r12d
movzwl %r15w, %r15d
testl %eax, %eax
jne 0xa0e6
xorl %r12d, %r12d
cmpl $0xd, %r13d
jne 0xa0e6
movzwl (%r14), %esi
movl %r15d, %edi
callq 0x30b4f
movl %eax, %r12d
movq %r14, %rdi
movl %r15d, %esi
movq 0x50(%rsp), %rdx
movl %r13d, %ecx
movl %ebp, %r8d
callq 0xa4c5
movzwl 0x2(%r14), %eax
addl $-0xd, %eax
cmpw $-0xc, %ax
jb 0xa122
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0xa122
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0xa173
movq %rbx, %rdi
callq 0x31b0
leaq 0x36f66(%rip), %rdi     # 0x41097
leaq 0x37494(%rip), %rsi     # 0x415cc
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17a82
movq %rbx, %rdi
callq 0x3190
movq %rax, %r13
movl %r12d, %edi
callq 0x1707a
jmp 0xa161
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x8(%r14)
je 0xa1c5
movq 0x58(%rsp), %r13
testl %r12d, %r12d
leaq 0x4dff7(%rip), %rdx     # 0x58180
je 0xa1ef
movq (%rdx), %rax
jle 0xa222
movl %eax, %ecx
notl %ecx
testl $0x300, %ecx            # imm = 0x300
jne 0xa264
movq 0x10(%r14), %rdx
movq (%rsp), %r13
addq %r13, %rdx
leaq 0x3b09b(%rip), %rdi     # 0x45251
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0xa29c
leaq 0x4dfb4(%rip), %rax     # 0x58180
testb $0x30, (%rax)
je 0xa25c
movq 0x10(%r14), %rsi
leaq 0x373fc(%rip), %rdi     # 0x415dc
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
jmp 0xa149
testb $0x30, (%rdx)
je 0xa21a
leaq 0x3dadb(%rip), %rsi     # 0x47cd6
movq %r14, %rdi
callq 0x634b
movl 0x60(%rsp), %eax
cmpl $0xd, %eax
jne 0xa21a
movq %r14, %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0x2fd8b
xorl %r13d, %r13d
jmp 0xa325
xorl %r12d, %r12d
testb $0x30, %al
je 0xa2cd
leaq 0x3daa2(%rip), %rsi     # 0x47cd6
movq %r14, %rdi
callq 0x634b
movl 0x60(%rsp), %eax
cmpl $0xd, %eax
jne 0xa253
movq %r14, %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0x2fd8b
leaq 0x4df26(%rip), %rdx     # 0x58180
jmp 0xa2cd
xorl %r12d, %r12d
jmp 0xa149
btl $0x8, %eax
movq (%rsp), %r13
jb 0xa287
xorl %r12d, %r12d
btl $0x9, %eax
jae 0xa2a6
movq 0x10(%r14), %rsi
addq %r13, %rsi
leaq 0x3e5a7(%rip), %rdi     # 0x4882c
jmp 0xa295
movq 0x10(%r14), %rsi
addq %r13, %rsi
leaq 0x3afc9(%rip), %rdi     # 0x4525e
xorl %eax, %eax
callq 0x3120
leaq 0x4dedd(%rip), %rdx     # 0x58180
movl %eax, %r12d
testq %r13, %r13
je 0xa2cd
testb $0x4, 0x3(%rdx)
je 0xa2cd
movq 0x10(%r14), %rsi
leaq 0x37334(%rip), %rdi     # 0x415f0
xorl %eax, %eax
callq 0x3120
leaq 0x4deb6(%rip), %rdx     # 0x58180
addl %eax, %r12d
xorl %r13d, %r13d
testb $0x1, 0x3(%rdx)
jne 0xa154
movl 0x68(%rsp), %r13d
movl %r12d, %edi
callq 0x17a82
addl $0x4, %ebp
leaq 0x36deb(%rip), %rax     # 0x410dc
movzwl 0xc(%rsp), %esi
movq %rbx, %rdi
movq %r14, %rdx
movq (%rsp), %rcx
movl %r15d, %r8d
movq 0x10(%rsp), %r9
pushq $0x0
pushq %r13
movl 0x70(%rsp), %r10d
pushq %r10
pushq %rbp
pushq %rax
pushq 0x78(%rsp)
callq 0xa340
addq $0x30, %rsp
movq %rax, %r13
xorl %r12d, %r12d
jmp 0xa154