// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/print_maker.c
// Function: print_generic_offset_makervalue
void
print_generic_offset_makervalue(FILE *inptr,unsigned short byteorder,
    struct ifd_entry *entry_ptr,unsigned long fileoffset_base,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);
                if(entry_ptr->value_type == UNDEFINED)
                    print_makertagid(entry_ptr,MAKERTAGWIDTH," : ",make,model);
                else
                    print_makertagid(entry_ptr,MAKERTAGWIDTH," = ",make,model);
            }
            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) && at_offset && (PRINT_VALUE_AT_OFFSET))
                        chpr += printf("length %-9lu # UNDEFINED",entry_ptr->count);
                    else
                    {
                        if(!(PRINT_OFFSET))
                            chpr += printf("@%lu",value_offset);
                        chpr += printf(":%-9lu # UNDEFINED",entry_ptr->count);
                    }
                    if(Max_undefined == 0)
                    {
                        if((PRINT_SECTION))
                            printred(" (not dumped, use -U)");
                    }
                    else
                    {
                        /* Even in LIST and REPORT modes              */
                        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,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
movq %r9, %r12
movq %rcx, 0x28(%rsp)
movq %rdx, %r14
movl %esi, 0x14(%rsp)
movq %rdi, 0x18(%rsp)
movl 0x88(%rsp), %ebx
movl 0x80(%rsp), %r15d
movl 0x78(%rsp), %r13d
movl 0x70(%rsp), %eax
movl %eax, 0x24(%rsp)
movzwl 0x2(%rdx), %edi
callq 0x155c8
cltq
imulq 0x8(%r14), %rax
xorl %ebp, %ebp
cmpq $0x5, %rax
jb 0x188e0
leaq 0x3eb77(%rip), %rax     # 0x57180
movq (%rax), %rax
testb $0x30, %al
je 0x188e0
movq 0x10(%r14), %r8
addq 0x28(%rsp), %r8
testl %ebx, %ebx
je 0x1864b
movl $0x4003333, %edi        # imm = 0x4003333
movq %r8, 0x30(%rsp)
movq %r8, %rsi
movl 0x24(%rsp), %edx
movq %r12, %rcx
callq 0x5100
cmpw $0x7, 0x2(%r14)
jne 0x18677
leaq 0x2c227(%rip), %rdx     # 0x44870
jmp 0x1867e
xorl %ebp, %ebp
testw $0x300, %ax             # imm = 0x300
je 0x18696
cmpw $0x7, 0x2(%r14)
je 0x187bb
leaq 0x2fef2(%rip), %rdi     # 0x48558
xorl %eax, %eax
movq %r8, %r15
callq 0x3120
movq %r15, %r8
movl %eax, %ebp
jmp 0x18696
leaq 0x2feda(%rip), %rdx     # 0x48558
pushq $0x19
popq %rsi
movq %r14, %rdi
movl %r13d, %ecx
movl %r15d, %r8d
callq 0x1850a
xorl %ebp, %ebp
movq 0x30(%rsp), %r8
movzwl 0x2(%r14), %esi
leal -0x1(%rsi), %eax
cmpl $0xb, %eax
ja 0x18813
leaq 0x2c106(%rip), %rcx     # 0x447b4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %rdx
callq 0x73b2
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8c1e
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8191
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x865c
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x7790
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x7caf
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x7aa9
jmp 0x188e0
movq 0x8(%r14), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %rdx
callq 0x71a9
jmp 0x188e0
movq 0x8(%r14), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %rdx
callq 0x75b4
jmp 0x188e0
testl %ebx, %ebx
setne %cl
leaq 0x3e9d9(%rip), %rax     # 0x57180
movq (%rax), %rax
movl %eax, %edx
notl %edx
testl $0x1040000, %edx        # imm = 0x1040000
sete %dl
testb %dl, %cl
jne 0x18828
leaq 0x2c0b2(%rip), %r15     # 0x44874
testw $0x300, %ax             # imm = 0x300
jne 0x1882f
leaq 0x2e00d(%rip), %rdi     # 0x467dc
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x1882f
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8a43
jmp 0x188e0
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x7fa4
jmp 0x188e0
leaq 0x26ec2(%rip), %rdi     # 0x3f6dc
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x188e0
leaq 0x274b6(%rip), %r15     # 0x3fce5
movq 0x18(%rsp), %rbx
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
leaq 0x3fbbc(%rip), %rax     # 0x58408
movq (%rax), %rax
testq %rax, %rax
je 0x18869
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
movq 0x28(%rsp), %r13
jne 0x1888c
movq 0x8(%r14), %r12
jmp 0x18897
addl %ebp, %r15d
leaq 0x3e90d(%rip), %rax     # 0x57180
testb $0x4, 0x2(%rax)
je 0x18885
leaq 0x26e3f(%rip), %rdi     # 0x3f6bf
callq 0x56e2
movq 0x28(%rsp), %r13
jmp 0x188c8
movq 0x8(%r14), %r12
cmpq %r12, %rax
cmovbq %rax, %r12
pushq $0x1
popq %rdi
callq 0x160f7
movl %eax, %r15d
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq 0x8(%r14), %rdx
movl $0x2, (%rsp)
pushq $0xc
popq %r8
movq %rbx, %rdi
movq %r12, %rcx
movl 0x24(%rsp), %r9d
callq 0x6e93
addq 0x10(%r14), %r13
addq 0x8(%r14), %r13
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x3210
movl %r15d, %ebp
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x188fd
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x18905
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