// File: /workspace/github_c_makefile_star2_O3/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 0xff89
movl %eax, %ebp
movq %r14, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x1c23a
movl %eax, %r15d
leaq 0x3f533(%rip), %rdx     # 0x58180
testl $0x4003333, (%rdx)      # imm = 0x4003333
je 0x18c6b
movq %r14, %rdi
movq %r12, %rsi
movl %ebx, %ecx
movl %r13d, %r8d
movq %rdx, %rbx
callq 0x18e27
movq %rbx, %rdx
movzwl 0x2(%r14), %eax
addl $-0xd, %eax
cmpw $-0xd, %ax
ja 0x18c8e
testl $0x4003333, (%rdx)      # imm = 0x4003333
je 0x18cfc
movq 0x10(%r14), %rsi
leaq 0x2dba8(%rip), %rdi     # 0x46834
jmp 0x18cf1
cmpq $0x0, 0x8(%r14)
je 0x18ce1
movq %r13, %rbx
addl %ebp, %r15d
testl %r15d, %r15d
je 0x18d10
movq (%rdx), %rax
jle 0x18d2b
movl %eax, %ecx
notl %ecx
testl $0x300, %ecx            # imm = 0x300
movq %r12, %r13
jne 0x18d4f
movq %rdx, %r15
movq 0x10(%r14), %rdx
movq 0x8(%rsp), %r12
addq %r12, %rdx
leaq 0x2c57f(%rip), %rdi     # 0x45251
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x18d8a
testb $0x30, (%rdx)
je 0x18cfc
movq 0x10(%r14), %rsi
leaq 0x2db64(%rip), %rdi     # 0x46855
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x18cfe
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
callq 0x3190
movq %rax, %r15
jmp 0x18e0e
testb $0x30, (%rdx)
movl 0x68(%rsp), %esi
je 0x18d23
movq %r14, %rdi
movl %ebx, %edx
callq 0x18f81
xorl %r15d, %r15d
jmp 0x18e0c
xorl %ebp, %ebp
testb $0x30, %al
movq %r12, %r13
je 0x18d48
movq %r14, %rdi
movl 0x68(%rsp), %esi
movq %rdx, %r15
movl %ebx, %edx
callq 0x18f81
movq %r15, %rdx
movq 0x8(%rsp), %r12
jmp 0x18db4
btl $0x8, %eax
movq 0x8(%rsp), %r12
jb 0x18d72
xorl %ebp, %ebp
btl $0x9, %eax
jae 0x18d8f
movq 0x10(%r14), %rsi
addq %r12, %rsi
leaq 0x2fabc(%rip), %rdi     # 0x4882c
jmp 0x18d80
movq 0x10(%r14), %rsi
addq %r12, %rsi
leaq 0x2c4de(%rip), %rdi     # 0x4525e
xorl %eax, %eax
movq %rdx, %r15
callq 0x3120
movq %r15, %rdx
movl %eax, %ebp
testq %r12, %r12
je 0x18db4
testb $0x4, 0x3(%rdx)
je 0x18db4
movq 0x10(%r14), %rsi
leaq 0x28a5e(%rip), %rdi     # 0x41803
xorl %eax, %eax
movq %rdx, %r15
callq 0x3120
movq %r15, %rdx
addl %eax, %ebp
xorl %r15d, %r15d
testb $0x1, 0x3(%rdx)
jne 0x18e0e
movl 0x60(%rsp), %r15d
movl %ebp, %edi
callq 0x17a82
addl $0x2, %r15d
subq $0x8, %rsp
leaq 0x28304(%rip), %rax     # 0x410dc
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 0x190c7
addq $0x30, %rsp
movq %rax, %r15
xorl %ebp, %ebp
movl %ebp, %edi
callq 0x1707a
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq