// File: /workspace/github_c_makefile_star2_O1/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 0xfe62
movl %eax, %ebp
movq %r14, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x1bd4a
movl %eax, %r15d
leaq 0x3fa87(%rip), %rdx     # 0x58180
testl $0x4003333, (%rdx)      # imm = 0x4003333
je 0x18717
movq %r14, %rdi
movq %r12, %rsi
movl %ebx, %ecx
movl %r13d, %r8d
movq %rdx, %rbx
callq 0x188d3
movq %rbx, %rdx
movzwl 0x2(%r14), %eax
addl $-0xd, %eax
cmpw $-0xd, %ax
ja 0x1873a
testl $0x4003333, (%rdx)      # imm = 0x4003333
je 0x187a8
movq 0x10(%r14), %rsi
leaq 0x2e0bc(%rip), %rdi     # 0x467f4
jmp 0x1879d
cmpq $0x0, 0x8(%r14)
je 0x1878d
movq %r13, %rbx
addl %ebp, %r15d
testl %r15d, %r15d
je 0x187bc
movq (%rdx), %rax
jle 0x187d7
movl %eax, %ecx
notl %ecx
testl $0x300, %ecx            # imm = 0x300
movq %r12, %r13
jne 0x187fb
movq %rdx, %r15
movq 0x10(%r14), %rdx
movq 0x8(%rsp), %r12
addq %r12, %rdx
leaq 0x2ca8f(%rip), %rdi     # 0x4520d
movq %rdx, %rsi
xorl %eax, %eax
callq 0x3120
jmp 0x18836
testb $0x30, (%rdx)
je 0x187a8
movq 0x10(%r14), %rsi
leaq 0x2e078(%rip), %rdi     # 0x46815
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
jmp 0x187aa
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
callq 0x3190
movq %rax, %r15
jmp 0x188ba
testb $0x30, (%rdx)
movl 0x68(%rsp), %esi
je 0x187cf
movq %r14, %rdi
movl %ebx, %edx
callq 0x18a27
xorl %r15d, %r15d
jmp 0x188b8
xorl %ebp, %ebp
testb $0x30, %al
movq %r12, %r13
je 0x187f4
movq %r14, %rdi
movl 0x68(%rsp), %esi
movq %rdx, %r15
movl %ebx, %edx
callq 0x18a27
movq %r15, %rdx
movq 0x8(%rsp), %r12
jmp 0x18860
btl $0x8, %eax
movq 0x8(%rsp), %r12
jb 0x1881e
xorl %ebp, %ebp
btl $0x9, %eax
jae 0x1883b
movq 0x10(%r14), %rsi
addq %r12, %rsi
leaq 0x2ffd0(%rip), %rdi     # 0x487ec
jmp 0x1882c
movq 0x10(%r14), %rsi
addq %r12, %rsi
leaq 0x2c9ee(%rip), %rdi     # 0x4521a
xorl %eax, %eax
movq %rdx, %r15
callq 0x3120
movq %r15, %rdx
movl %eax, %ebp
testq %r12, %r12
je 0x18860
testb $0x4, 0x3(%rdx)
je 0x18860
movq 0x10(%r14), %rsi
leaq 0x28fb2(%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 0x188ba
movl 0x60(%rsp), %r15d
movl %ebp, %edi
callq 0x17530
addl $0x2, %r15d
subq $0x8, %rsp
leaq 0x28858(%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 0x18b6d
addq $0x30, %rsp
movq %rax, %r15
xorl %ebp, %ebp
movl %ebp, %edi
callq 0x16b56
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq