// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/print_maker.c
// Function: print_makerentry
unsigned long
print_makerentry(FILE *inptr,unsigned short byteorder,
                    struct ifd_entry *entry_ptr,unsigned long fileoffset_base,
                    struct image_summary *summary_entry,char *parent_name,
                    int indent,int make,int model)
{
    int value_is_offset = 0;
    unsigned long endoffset = 0UL;
    int chpr = 0;

    value_is_offset = is_offset(entry_ptr);
    if(value_is_offset == 0)
        value_is_offset = maker_value_is_offset(entry_ptr,make,model);
    else
        value_is_offset += maker_value_is_offset(entry_ptr,make,model);

    if(PRINT_ENTRY)
        print_makertaginfo(entry_ptr,parent_name,indent,make,model);
    if((entry_ptr->value_type == 0) || (entry_ptr->value_type > DOUBLE))
    {
        if(PRINT_ENTRY)
            chpr = printf("# INVALID MAKERNOTE ENTRY (%#lx)",entry_ptr->value);
        endoffset = ftell(inptr);
    }
    else if(entry_ptr->count == 0)
    {
        if(PRINT_VALUE)
            chpr = printf("EMPTY (%lu)",entry_ptr->value);
        endoffset = ftell(inptr);
    }
    else if(value_is_offset)
    {
        if(value_is_offset > 0)
        {
            if(PRINT_BOTH_OFFSET)
                chpr += printf("@%#lx=%lu",entry_ptr->value + fileoffset_base,
                        entry_ptr->value + fileoffset_base);
            else if(PRINT_HEX_OFFSET)
                chpr += printf("@%#lx",entry_ptr->value + fileoffset_base);
            else if(PRINT_DEC_OFFSET)
                chpr += printf("@%lu",entry_ptr->value + fileoffset_base);

            if(fileoffset_base && (PRINT_ENTRY_RELOFFSET))
                chpr += printf(" (%lu)",entry_ptr->value);
        }
        else if((value_is_offset < 0) && (PRINT_VALUE))
            print_makervalue(entry_ptr,make,model,PREFIX);

        /* Print "inline" in REPORT & LIST modes                      */
        if(!(PRINT_VALUE_AT_OFFSET))
        {
            setcharsprinted(chpr);
            chpr = 0;
            endoffset = print_offset_makervalue(inptr,byteorder,
                                        entry_ptr,fileoffset_base,
                                        summary_entry,parent_name,
                                        "@",indent + SUBINDENT,
                                        make,model,0);
        }
    }
    else if(PRINT_VALUE)
        print_makervalue(entry_ptr,make,model,PREFIX);
    chpr = newline(chpr);
    return(endoffset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r12
movq %r8, 0x20(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r14
movl %esi, 0x1c(%rsp)
movq %rdi, 0x10(%rsp)
movl 0x70(%rsp), %r13d
movl 0x68(%rsp), %ebx
movq %rdx, %rdi
callq 0xf1c7
movl %eax, %ebp
movq %r14, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x1b023
movl %eax, %r15d
leaq 0x3f66b(%rip), %rdx     # 0x57180
testl $0x4003333, (%rdx)      # imm = 0x4003333
je 0x17b33
movq %r14, %rdi
movq %r12, %rsi
movl %ebx, %ecx
movl %r13d, %r8d
movq %rdx, %rbx
callq 0x17cee
movq %rbx, %rdx
movzwl 0x2(%r14), %eax
addl $-0xd, %eax
cmpw $-0xd, %ax
ja 0x17b56
testl $0x4003333, (%rdx)      # imm = 0x4003333
je 0x17bc3
movq 0x10(%r14), %rsi
leaq 0x2cc90(%rip), %rdi     # 0x447e4
jmp 0x17bb8
cmpq $0x0, 0x8(%r14)
je 0x17ba8
movq %r13, %rbx
addl %ebp, %r15d
testl %r15d, %r15d
je 0x17bd7
movq (%rdx), %rax
jle 0x17bf2
movl %eax, %ecx
notl %ecx
testw $0x300, %cx             # imm = 0x300
movq %r12, %r13
jne 0x17c16
movq %rdx, %r15
movq 0x10(%r14), %rdx
movq 0x8(%rsp), %r12
addq %r12, %rdx
leaq 0x2b674(%rip), %rdi     # 0x4320d
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x17c51
testb $0x30, (%rdx)
je 0x17bc3
movq 0x10(%r14), %rsi
leaq 0x2cc4d(%rip), %rdi     # 0x44805
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x17bc5
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
callq 0x3190
movq %rax, %r15
jmp 0x17cd5
testb $0x30, (%rdx)
movl 0x68(%rsp), %esi
je 0x17bea
movq %r14, %rdi
movl %ebx, %edx
callq 0x17e43
xorl %r15d, %r15d
jmp 0x17cd3
xorl %ebp, %ebp
testb $0x30, %al
movq %r12, %r13
je 0x17c0f
movq %r14, %rdi
movl 0x68(%rsp), %esi
movq %rdx, %r15
movl %ebx, %edx
callq 0x17e43
movq %r15, %rdx
movq 0x8(%rsp), %r12
jmp 0x17c7b
btl $0x8, %eax
movq 0x8(%rsp), %r12
jb 0x17c39
xorl %ebp, %ebp
btl $0x9, %eax
jae 0x17c56
movq 0x10(%r14), %rsi
addq %r12, %rsi
leaq 0x2eba5(%rip), %rdi     # 0x467dc
jmp 0x17c47
movq 0x10(%r14), %rsi
addq %r12, %rsi
leaq 0x2b5d3(%rip), %rdi     # 0x4321a
xorl %eax, %eax
movq %rdx, %r15
callq 0x3120
movq %r15, %rdx
movl %eax, %ebp
testq %r12, %r12
je 0x17c7b
testb $0x4, 0x3(%rdx)
je 0x17c7b
movq 0x10(%r14), %rsi
leaq 0x27b97(%rip), %rdi     # 0x3f803
xorl %eax, %eax
movq %rdx, %r15
callq 0x3120
movq %r15, %rdx
addl %eax, %ebp
xorl %r15d, %r15d
testb $0x1, 0x3(%rdx)
jne 0x17cd5
movl 0x60(%rsp), %r15d
movl %ebp, %edi
callq 0x16a4f
addl $0x2, %r15d
subq $0x8, %rsp
leaq 0x2743d(%rip), %rax     # 0x3f0dc
movzwl 0x24(%rsp), %esi
movq 0x18(%rsp), %rdi
movq %r14, %rdx
movq %r12, %rcx
movq 0x28(%rsp), %r8
movq %r13, %r9
pushq $0x0
pushq %rbx
movl 0x80(%rsp), %r10d
pushq %r10
pushq %r15
pushq %rax
callq 0x17f69
addq $0x30, %rsp
movq %rax, %r15
xorl %ebp, %ebp
movl %ebp, %edi
callq 0x160f7
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq