// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movl %r8d, %r15d
movq %rcx, 0x28(%rsp)
movq %rdx, %r14
movl %esi, 0x14(%rsp)
movq %rdi, 0x30(%rsp)
movl 0x90(%rsp), %ebx
movl 0x80(%rsp), %r13d
movl 0x78(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x70(%rsp), %r12
movzwl 0x2(%rdx), %edi
callq 0x155c8
cltq
imulq 0x8(%r14), %rax
xorl %ebp, %ebp
cmpq $0x5, %rax
jb 0xa18c
leaq 0x4d2a4(%rip), %rcx     # 0x57180
movq (%rcx), %rax
testb $0x30, %al
je 0xa18c
movq 0x10(%r14), %rsi
addq 0x28(%rsp), %rsi
testl %ebx, %ebx
je 0x9f5d
movq %rcx, %rbx
movl $0x4003333, %edi        # imm = 0x4003333
movq %rsi, 0x18(%rsp)
movl 0x24(%rsp), %edx
movq %r12, %rcx
callq 0x5100
movzwl %r15w, %esi
pushq $0x2
popq %rcx
movq %r14, %rdi
movl %r13d, %edx
callq 0x9db8
xorl %ebp, %ebp
movq 0x30(%rsp), %r12
movzwl 0x2(%r14), %esi
leal -0x1(%rsi), %eax
cmpl $0xb, %eax
ja 0xa10c
leaq 0x3552a(%rip), %rcx     # 0x3f468
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0x73b2
jmp 0xa18c
testw $0x300, %ax             # imm = 0x300
je 0x9f90
xorl %ebp, %ebp
cmpw $0x7, 0x2(%r14)
movq 0x30(%rsp), %r12
je 0xa073
movq %rcx, %rbx
movq %rsi, 0x18(%rsp)
leaq 0x3e5d3(%rip), %rdi     # 0x48558
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x9f26
movq %rcx, %rbx
movq %rsi, 0x18(%rsp)
jmp 0x9f1f
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8c1e
jmp 0xa18c
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8191
jmp 0xa18c
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x865c
jmp 0xa18c
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x7790
jmp 0xa18c
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x7caf
jmp 0xa18c
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x7aa9
jmp 0xa18c
movq 0x8(%r14), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0x71a9
jmp 0xa18c
movq 0x8(%r14), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0x75b4
jmp 0xa18c
movq %rbx, %rcx
movq (%rbx), %rax
movq 0x18(%rsp), %rsi
movq %rcx, %r13
btl $0x12, %eax
jb 0xa09b
leaq 0x35c7b(%rip), %r15     # 0x3fcfe
testw $0x300, %ax             # imm = 0x300
jne 0xa0a2
leaq 0x3c74c(%rip), %rdi     # 0x467dc
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0xa0a2
leaq 0x35c43(%rip), %r15     # 0x3fce5
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
leaq 0x4e34f(%rip), %rax     # 0x58408
movq (%rax), %rax
testq %rax, %rax
je 0xa11e
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
movq 0x28(%rsp), %r13
jne 0xa13a
movq 0x8(%r14), %r15
jmp 0xa145
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8a43
jmp 0xa18c
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x7fa4
jmp 0xa18c
leaq 0x355c9(%rip), %rdi     # 0x3f6dc
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0xa18c
addl %ebp, %ebx
testb $0x4, 0x2(%r13)
je 0xa133
leaq 0x35591(%rip), %rdi     # 0x3f6bf
callq 0x56e2
movq 0x28(%rsp), %r13
jmp 0xa175
movq 0x8(%r14), %r15
cmpq %r15, %rax
cmovbq %rax, %r15
pushq $0x1
popq %rdi
callq 0x160f7
movl %eax, %ebx
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq 0x8(%r14), %rdx
movl $0x2, (%rsp)
pushq $0xc
popq %r8
movq %r12, %rdi
movq %r15, %rcx
movl 0x24(%rsp), %r9d
callq 0x6e93
addq 0x10(%r14), %r13
addq 0x8(%r14), %r13
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x3210
movl %ebx, %ebp
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0xa1a9
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0xa1b1
movq %rbx, %rdi
callq 0x31b0
movl %ebp, %edi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16a4f
nop