// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %r9, %r12
movq %rcx, 0x20(%rsp)
movq %rdx, %r14
movl %esi, 0xc(%rsp)
movq %rdi, 0x10(%rsp)
movl 0x78(%rsp), %ebp
movl 0x70(%rsp), %r15d
movl 0x68(%rsp), %r13d
movl 0x60(%rsp), %eax
movl %eax, 0x1c(%rsp)
movzwl 0x2(%rdx), %edi
callq 0x15f20
cltq
imulq 0x8(%r14), %rax
xorl %ebx, %ebx
cmpq $0x5, %rax
jb 0x194fc
leaq 0x3ef79(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x194fc
movq 0x10(%r14), %r8
addq 0x20(%rsp), %r8
testl %ebp, %ebp
je 0x19247
movl $0x4003333, %edi        # imm = 0x4003333
movq %r8, %rbx
movq %r8, %rsi
movl 0x1c(%rsp), %edx
movq %r12, %rcx
callq 0x5605
cmpw $0x7, 0x2(%r14)
jne 0x19272
leaq 0x2d63b(%rip), %rdx     # 0x46880
jmp 0x19279
xorl %r13d, %r13d
testl $0x300, %eax            # imm = 0x300
je 0x19292
cmpw $0x7, 0x2(%r14)
je 0x19292
leaq 0x31308(%rip), %rdi     # 0x4a568
xorl %eax, %eax
movq %r8, %rbx
callq 0x3120
movq %rbx, %r8
movl %eax, %r13d
jmp 0x19292
leaq 0x312ef(%rip), %rdx     # 0x4a568
movq %r14, %rdi
movl $0x19, %esi
movl %r13d, %ecx
movl %r15d, %r8d
callq 0x1910e
xorl %r13d, %r13d
movq %rbx, %r8
movzwl 0x2(%r14), %esi
leal -0x1(%rsi), %eax
cmpl $0xb, %eax
ja 0x19432
leaq 0x2d51a(%rip), %rcx     # 0x467c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdi
movq %r8, %rdx
callq 0x798e
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x9252
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x8754
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x8c3b
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x7d7a
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x8272
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x8085
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdi
movq %r8, %rdx
callq 0x7793
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rdi
movq %r8, %rdx
callq 0x7b9d
jmp 0x194fc
testl %ebp, %ebp
setne %cl
leaq 0x3edc2(%rip), %rax     # 0x58180
movq (%rax), %rax
movl %eax, %edx
notl %edx
testl $0x1040000, %edx        # imm = 0x1040000
sete %dl
testb %dl, %cl
jne 0x19447
leaq 0x2d4ab(%rip), %r15     # 0x46884
testl $0x300, %eax            # imm = 0x300
jne 0x1944e
leaq 0x2f405(%rip), %rdi     # 0x487ec
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r13d
jmp 0x1944e
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x9054
jmp 0x194fc
movl %r13d, %ebx
movq 0x8(%r14), %rsi
movzwl 0xc(%rsp), %edx
movq 0x10(%rsp), %rdi
movq %r8, %rcx
callq 0x8561
jmp 0x194fc
leaq 0x282a3(%rip), %rdi     # 0x416dc
xorl %eax, %eax
callq 0x3120
movl %eax, %ebx
jmp 0x194fc
leaq 0x28897(%rip), %r15     # 0x41ce5
movq 0x10(%rsp), %rbp
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
leaq 0x3ff9d(%rip), %rax     # 0x59408
movq (%rax), %r15
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r15
je 0x194a6
testq %r15, %r15
jne 0x194a0
addl %r13d, %r12d
leaq 0x3ecf9(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
je 0x19499
leaq 0x2822b(%rip), %rdi     # 0x416bf
callq 0x5c33
movq 0x20(%rsp), %rbx
jmp 0x194e4
cmpq 0x8(%r14), %r15
jbe 0x194aa
movq 0x8(%r14), %r15
movl $0x1, %edi
callq 0x16b56
movl %eax, %r12d
movq 0x10(%r14), %rsi
movq 0x20(%rsp), %rbx
addq %rbx, %rsi
movq 0x8(%r14), %rdx
movl $0x2, (%rsp)
movq %rbp, %rdi
movq %r15, %rcx
movl $0xc, %r8d
movl 0x1c(%rsp), %r9d
callq 0x7446
addq 0x10(%r14), %rbx
addq 0x8(%r14), %rbx
movq %rbp, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3210
movl %r12d, %ebx
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x19519
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
je 0x19521
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