// File: /workspace/github_c_makefile_star2_O1/hfiguiere[P]exifprobe/print.c
// Function: print_private_offset_value
void
print_private_offset_value(FILE *inptr,unsigned short byteorder,
    struct ifd_entry *entry_ptr,unsigned long fileoffset_base,
    unsigned short subifd_ident,char *parent_name, char *prefix,
    int indent,int make,int model,int at_offset)
{
    unsigned long value_offset;
    unsigned long dumplength;
    int chpr = 0;

    if((value_type_size(entry_ptr->value_type) * entry_ptr->count) > 4)
    {
        value_offset = fileoffset_base + entry_ptr->value;
        if(PRINT_VALUE)
        {
            if(at_offset)
            {
                print_tag_address(ENTRY,value_offset,indent,prefix);
                print_private_tagid(entry_ptr,subifd_ident,make,SUBINDENT);
            }
            else
            {
                if((PRINT_OFFSET) && (entry_ptr->value_type != UNDEFINED))
                    chpr += printf(" = ");
            }
            switch(entry_ptr->value_type)
            {
                case UNDEFINED: 
                    /* Could make a pseudo-tag for 'count' in LIST    */
                    /* mode...                                        */
                    if((PRINT_SECTION))
                        chpr += printf("length %-9lu # UNDEFINED",entry_ptr->count);
                    else
                    {
                        if(!(PRINT_OFFSET))
                            chpr += printf("@%lu",value_offset);
                        chpr += printf(":%lu     # UNDEFINED",entry_ptr->count);
                    }
                    if(Max_undefined == 0)
                    {
                        if((PRINT_SECTION))
                            printred(" (not dumped, use -U)");
                    }
                    else
                    {
                        /* Even in LIST mode                          */
                        if((Max_undefined == DUMPALL)
                            || (Max_undefined > entry_ptr->count))
                                dumplength = entry_ptr->count;
                        else 
                            dumplength = Max_undefined;
                        chpr = newline(1);
                        hexdump(inptr,entry_ptr->value + fileoffset_base,
                                    entry_ptr->count,dumplength,12,
                                    indent,SUBINDENT);
                    }
                    /* make certain we're at the end                  */
                    fseek(inptr,(long)(entry_ptr->value + fileoffset_base + entry_ptr->count),SEEK_SET);
                    break;
                case ASCII:
                    print_ascii(inptr,entry_ptr->count,value_offset); 
                    break;
                case BYTE:
                    print_ubytes(inptr,entry_ptr->count,value_offset);
                    break;
                case SBYTE:
                    print_sbytes(inptr,entry_ptr->count,value_offset);
                    break;
                case SHORT:
                    print_ushort(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case SSHORT:
                    print_sshort(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case LONG:
                    print_ulong(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case SLONG:
                    print_slong(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case RATIONAL:
                    print_urational(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case SRATIONAL:
                    print_srational(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case FLOAT:
                    print_float(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                case DOUBLE:
                    print_double(inptr,entry_ptr->count,byteorder,value_offset);
                    break;
                default:
                    chpr = printf(" INVALID TYPE %#x",entry_ptr->value_type);
                    break;
            }
        }
    }
    if(ferror(inptr) || feof(inptr))
        clearerr(inptr);
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r12d
movq %rcx, 0x20(%rsp)
movq %rdx, %r14
movl %esi, 0xc(%rsp)
movq %rdi, 0x10(%rsp)
movl 0x80(%rsp), %ebp
movl 0x70(%rsp), %r13d
movl 0x68(%rsp), %eax
movl %eax, 0x1c(%rsp)
movq 0x60(%rsp), %r15
movzwl 0x2(%rdx), %edi
callq 0x15f20
cltq
imulq 0x8(%r14), %rax
xorl %ebx, %ebx
cmpq $0x5, %rax
jb 0xa91d
leaq 0x4db18(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0xa91d
movq 0x10(%r14), %rsi
addq 0x20(%rsp), %rsi
testl %ebp, %ebp
je 0xa6e1
movl $0x4003333, %edi        # imm = 0x4003333
movq %rsi, %rbp
movl 0x1c(%rsp), %edx
movq %r15, %rcx
callq 0x5605
movzwl %r12w, %esi
movq %r14, %rdi
movl %r13d, %edx
movl $0x2, %ecx
callq 0xa53a
xorl %ebx, %ebx
movzwl 0x2(%r14), %esi
leal -0x1(%rsi), %eax
cmpl $0xb, %eax
ja 0xa83e
leaq 0x36da6(%rip), %rcx     # 0x41468
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x798e
jmp 0xa91d
movq %rsi, %rbp
xorl %ebx, %ebx
testl $0x300, %eax            # imm = 0x300
je 0xa6aa
cmpw $0x7, 0x2(%r14)
je 0xa6aa
leaq 0x3fe6c(%rip), %rdi     # 0x4a568
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0xa6aa
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x9252
jmp 0xa91d
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x8754
jmp 0xa91d
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x8c3b
jmp 0xa91d
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x7d7a
jmp 0xa91d
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x8272
jmp 0xa91d
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x8085
jmp 0xa91d
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x7793
jmp 0xa91d
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdi
movq %rbp, %rdx
callq 0x7b9d
jmp 0xa91d
leaq 0x4d9a4(%rip), %rax     # 0x58180
movq (%rax), %rax
btl $0x12, %eax
jb 0xa853
leaq 0x37512(%rip), %r15     # 0x41cfe
testl $0x300, %eax            # imm = 0x300
jne 0xa85a
leaq 0x3dff2(%rip), %rdi     # 0x487ec
movq %rbp, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
jmp 0xa85a
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x9054
jmp 0xa91d
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %rbp, %rcx
callq 0x8561
jmp 0xa91d
leaq 0x36e97(%rip), %rdi     # 0x416dc
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0xa91d
leaq 0x3748b(%rip), %r15     # 0x41ce5
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
leaq 0x4eb96(%rip), %rax     # 0x59408
movq (%rax), %r12
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r12
je 0xa8c2
testq %r12, %r12
jne 0xa8bc
addl %ebx, %r15d
leaq 0x4d8f2(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
je 0xa8b0
leaq 0x367fc(%rip), %rdi     # 0x41097
leaq 0x36e1d(%rip), %rsi     # 0x416bf
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17530
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %rsi
jmp 0xa908
cmpq 0x8(%r14), %r12
jbe 0xa8c6
movq 0x8(%r14), %r12
movl $0x1, %edi
callq 0x16b56
movl %eax, %r15d
movq 0x10(%r14), %rsi
movq 0x20(%rsp), %r13
addq %r13, %rsi
movq 0x8(%r14), %rdx
movl $0x2, (%rsp)
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rcx
movl $0xc, %r8d
movl 0x1c(%rsp), %r9d
callq 0x7446
movq %r13, %rsi
addq 0x10(%r14), %rsi
addq 0x8(%r14), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3210
movl %r15d, %ebx
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0xa93a
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
je 0xa942
movq %r14, %rdi
callq 0x31b0
movl %ebx, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
nop