// File: /workspace/github_c_makefile_star2_O3/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 0x1646c
cltq
imulq 0x8(%r14), %rax
xorl %ebp, %ebp
cmpq $0x5, %rax
jb 0xaa9d
leaq 0x4d9b5(%rip), %rcx     # 0x58180
movq (%rcx), %rax
testb $0x30, %al
je 0xaa9d
movq 0x10(%r14), %rsi
addq 0x28(%rsp), %rsi
testl %ebx, %ebx
je 0xa84e
movq %rcx, %rbx
movl $0x4003333, %edi        # imm = 0x4003333
movq %rsi, 0x18(%rsp)
movl 0x24(%rsp), %edx
movq %r12, %rcx
callq 0x55eb
movzwl %r15w, %esi
movq %r14, %rdi
movl %r13d, %edx
movl $0x2, %ecx
callq 0xa69b
xorl %ebp, %ebp
movq 0x30(%rsp), %r12
movzwl 0x2(%r14), %esi
leal -0x1(%rsi), %eax
cmpl $0xb, %eax
ja 0xaa06
leaq 0x36c39(%rip), %rcx     # 0x41468
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0x79c7
jmp 0xaa9d
testl $0x300, %eax            # imm = 0x300
je 0xa882
xorl %ebp, %ebp
cmpw $0x7, 0x2(%r14)
movq 0x30(%rsp), %r12
je 0xa965
movq %rcx, %rbx
movq %rsi, 0x18(%rsp)
leaq 0x3fd31(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0xa817
movq %rcx, %rbx
movq %rsi, 0x18(%rsp)
jmp 0xa810
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x935f
jmp 0xaa9d
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8816
jmp 0xaa9d
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8d1a
jmp 0xaa9d
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x7dcb
jmp 0xaa9d
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8302
jmp 0xaa9d
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x80fe
jmp 0xaa9d
movq 0x8(%r14), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0x77d6
jmp 0xaa9d
movq 0x8(%r14), %rsi
movq %r12, %rdi
movq 0x18(%rsp), %rdx
callq 0x7be4
jmp 0xaa9d
movq %rbx, %rcx
movq (%rbx), %rax
movq 0x18(%rsp), %rsi
movq %rcx, %r13
btl $0x12, %eax
jb 0xa98e
leaq 0x37389(%rip), %r15     # 0x41cfe
testl $0x300, %eax            # imm = 0x300
jne 0xa995
leaq 0x3dea9(%rip), %rdi     # 0x4882c
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0xa995
leaq 0x37350(%rip), %r15     # 0x41ce5
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
leaq 0x4ea5c(%rip), %rax     # 0x59408
movq (%rax), %rax
testq %rax, %rax
je 0xaa1b
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
movq 0x28(%rsp), %r13
jne 0xaa47
movq 0x8(%r14), %r15
jmp 0xaa52
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x914d
jmp 0xaa9d
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq %r12, %rdi
movq 0x18(%rsp), %rcx
callq 0x8611
jmp 0xaa9d
leaq 0x36ccf(%rip), %rdi     # 0x416dc
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0xaa9d
addl %ebp, %ebx
testb $0x4, 0x2(%r13)
je 0xaa40
leaq 0x3666c(%rip), %rdi     # 0x41097
leaq 0x36c8d(%rip), %rsi     # 0x416bf
xorl %eax, %eax
callq 0x3120
movl %eax, %edi
callq 0x17a82
movq 0x28(%rsp), %r13
jmp 0xaa86
movq 0x8(%r14), %r15
cmpq %r15, %rax
cmovbq %rax, %r15
movl $0x1, %edi
callq 0x1707a
movl %eax, %ebx
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq 0x8(%r14), %rdx
movl $0x2, (%rsp)
movq %r12, %rdi
movq %r15, %rcx
movl $0xc, %r8d
movl 0x24(%rsp), %r9d
callq 0x7480
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 0xaaba
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0xaac2
movq %rbx, %rdi
callq 0x31b0
movl %ebp, %edi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82
nop