// File: /workspace/github_c_makefile_star2_O3/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 0x1646c
cltq
imulq 0x8(%r14), %rax
xorl %ebp, %ebp
cmpq $0x5, %rax
jb 0x19a46
leaq 0x3ea19(%rip), %rax     # 0x58180
movq (%rax), %rax
testb $0x30, %al
je 0x19a46
movq 0x10(%r14), %r8
addq 0x28(%rsp), %r8
testl %ebx, %ebx
je 0x197a9
movl $0x4003333, %edi        # imm = 0x4003333
movq %r8, 0x30(%rsp)
movq %r8, %rsi
movl 0x24(%rsp), %edx
movq %r12, %rcx
callq 0x55eb
cmpw $0x7, 0x2(%r14)
jne 0x197d6
leaq 0x2d119(%rip), %rdx     # 0x468c0
jmp 0x197dd
xorl %ebp, %ebp
testl $0x300, %eax            # imm = 0x300
je 0x197f7
cmpw $0x7, 0x2(%r14)
je 0x1991c
leaq 0x30de3(%rip), %rdi     # 0x4a5a8
xorl %eax, %eax
movq %r8, %r15
callq 0x3120
movq %r15, %r8
movl %eax, %ebp
jmp 0x197f7
leaq 0x30dcb(%rip), %rdx     # 0x4a5a8
movq %r14, %rdi
movl $0x19, %esi
movl %r13d, %ecx
movl %r15d, %r8d
callq 0x19668
xorl %ebp, %ebp
movq 0x30(%rsp), %r8
movzwl 0x2(%r14), %esi
leal -0x1(%rsi), %eax
cmpl $0xb, %eax
ja 0x19975
leaq 0x2cff5(%rip), %rcx     # 0x46804
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %rdx
callq 0x79c7
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x935f
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8816
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8d1a
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x7dcb
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8302
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x80fe
jmp 0x19a46
movq 0x8(%r14), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %rdx
callq 0x77d6
jmp 0x19a46
movq 0x8(%r14), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %rdx
callq 0x7be4
jmp 0x19a46
testl %ebx, %ebx
setne %cl
leaq 0x3e878(%rip), %rax     # 0x58180
movq (%rax), %rax
movl %eax, %edx
notl %edx
testl $0x1040000, %edx        # imm = 0x1040000
sete %dl
testb %dl, %cl
jne 0x1998a
leaq 0x2cfa1(%rip), %r15     # 0x468c4
testl $0x300, %eax            # imm = 0x300
jne 0x19991
leaq 0x2eefb(%rip), %rdi     # 0x4882c
movq %r8, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x19991
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x914d
jmp 0x19a46
movq 0x8(%r14), %rsi
movzwl 0x14(%rsp), %edx
movq 0x18(%rsp), %rdi
movq %r8, %rcx
callq 0x8611
jmp 0x19a46
leaq 0x27d60(%rip), %rdi     # 0x416dc
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x19a46
leaq 0x28354(%rip), %r15     # 0x41ce5
movq 0x18(%rsp), %rbx
movq 0x8(%r14), %rsi
movq %r15, %rdi
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
leaq 0x3fa5a(%rip), %rax     # 0x59408
movq (%rax), %rax
testq %rax, %rax
je 0x199cb
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
movq 0x28(%rsp), %r13
jne 0x199ee
movq 0x8(%r14), %r12
jmp 0x199f9
addl %ebp, %r15d
leaq 0x3e7ab(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
je 0x199e7
leaq 0x27cdd(%rip), %rdi     # 0x416bf
callq 0x5c26
movq 0x28(%rsp), %r13
jmp 0x19a2e
movq 0x8(%r14), %r12
cmpq %r12, %rax
cmovbq %rax, %r12
movl $0x1, %edi
callq 0x1707a
movl %eax, %r15d
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq 0x8(%r14), %rdx
movl $0x2, (%rsp)
movq %rbx, %rdi
movq %r12, %rcx
movl $0xc, %r8d
movl 0x24(%rsp), %r9d
callq 0x7480
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 0x19a63
movq %rbx, %rdi
callq 0x31a0
testl %eax, %eax
je 0x19a6b
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