// File: /workspace/github_c_makefile_star2_O2/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 0x4d969(%rip), %rax     # 0x57180
testl $0x4003333, (%rax)      # imm = 0x4003333
je 0x98d3
movl %r8d, %r15d
movq %rdx, %r14
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movq %rcx, (%rsp)
movq %r9, 0x10(%rsp)
movl 0x70(%rsp), %r13d
movq 0x50(%rsp), %rbp
movq %rdx, %rdi
callq 0xf1c7
movl %eax, %r12d
movzwl %r15w, %r15d
testl %eax, %eax
jne 0x9869
movzwl (%r14), %edx
movl 0x60(%rsp), %edi
movl %r15d, %esi
callq 0x9a95
movl %eax, %r12d
movq %r14, %rdi
movl %r15d, %esi
movq %rbp, %rdx
movl 0x60(%rsp), %ecx
movl %r13d, %r8d
callq 0x9bf1
movzwl 0x2(%r14), %eax
addl $-0xd, %eax
cmpw $-0xc, %ax
jb 0x98a7
movq %r13, %rbp
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x98a7
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x98e8
movq %rbx, %rdi
callq 0x31b0
leaq 0x35d16(%rip), %rdi     # 0x3f5cc
callq 0x56e2
movq %rbx, %rdi
callq 0x3190
movq %rax, %r13
xorl %r12d, %r12d
movl %r12d, %edi
callq 0x160f7
jmp 0x98d6
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 0x9939
movq 0x58(%rsp), %r13
testl %r12d, %r12d
leaq 0x4d882(%rip), %rdx     # 0x57180
je 0x995c
movq (%rdx), %rax
jle 0x998a
movl %eax, %ecx
notl %ecx
testw $0x300, %cx             # imm = 0x300
jne 0x99d2
movq 0x10(%r14), %rdx
movq (%rsp), %r13
addq %r13, %rdx
leaq 0x398e3(%rip), %rdi     # 0x4320d
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x9a0a
leaq 0x4d840(%rip), %rax     # 0x57180
testb $0x30, (%rax)
je 0x99bf
movq 0x10(%r14), %rsi
leaq 0x35c8c(%rip), %rdi     # 0x3f5dc
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
jmp 0x99c2
testb $0x30, (%rdx)
je 0x9982
leaq 0x3c31e(%rip), %rsi     # 0x45c86
movq %r14, %rdi
callq 0x5dd3
movq %r14, %rdi
movl %r15d, %esi
movl 0x60(%rsp), %edx
movq %r13, %rcx
callq 0x9d24
xorl %r13d, %r13d
jmp 0x98c6
xorl %r12d, %r12d
testb $0x30, %al
je 0x9a3b
leaq 0x3c2ea(%rip), %rsi     # 0x45c86
movq %r14, %rdi
callq 0x5dd3
movq %r14, %rdi
movl %r15d, %esi
movl 0x60(%rsp), %edx
movq %r13, %rcx
callq 0x9d24
leaq 0x4d7c3(%rip), %rdx     # 0x57180
jmp 0x9a3b
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x3190
movq %rax, %r13
jmp 0x98c9
btl $0x8, %eax
movq (%rsp), %r13
jb 0x99f5
xorl %r12d, %r12d
btl $0x9, %eax
jae 0x9a14
movq 0x10(%r14), %rsi
addq %r13, %rsi
leaq 0x3cde9(%rip), %rdi     # 0x467dc
jmp 0x9a03
movq 0x10(%r14), %rsi
addq %r13, %rsi
leaq 0x39817(%rip), %rdi     # 0x4321a
xorl %eax, %eax
callq 0x3120
leaq 0x4d76f(%rip), %rdx     # 0x57180
movl %eax, %r12d
testq %r13, %r13
je 0x9a3b
testb $0x4, 0x3(%rdx)
je 0x9a3b
movq 0x10(%r14), %rsi
leaq 0x35bc6(%rip), %rdi     # 0x3f5f0
xorl %eax, %eax
callq 0x3120
leaq 0x4d748(%rip), %rdx     # 0x57180
addl %eax, %r12d
xorl %r13d, %r13d
testb $0x1, 0x3(%rdx)
jne 0x98c9
movl 0x68(%rsp), %r13d
movl %r12d, %edi
callq 0x16a4f
addl $0x4, %ebp
leaq 0x3567d(%rip), %rax     # 0x3f0dc
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 0x9aa8
addq $0x30, %rsp
jmp 0x98c3