// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movw %si, %ax
movl 0x20(%rbp), %esi
movl 0x18(%rbp), %esi
movl 0x10(%rbp), %esi
movq %rdi, -0x18(%rbp)
movw %ax, -0x1a(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movq $0x0, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movq -0x28(%rbp), %rdi
callq 0x158d0
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
jne 0x22ebb
movq -0x28(%rbp), %rdi
movl 0x18(%rbp), %esi
movl 0x20(%rbp), %edx
callq 0x27c80
movl %eax, -0x44(%rbp)
jmp 0x22ed0
movq -0x28(%rbp), %rdi
movl 0x18(%rbp), %esi
movl 0x20(%rbp), %edx
callq 0x27c80
addl -0x44(%rbp), %eax
movl %eax, -0x44(%rbp)
leaq 0x542a9(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x22efd
movq -0x28(%rbp), %rdi
movq -0x40(%rbp), %rsi
movl 0x10(%rbp), %edx
movl 0x18(%rbp), %ecx
movl 0x20(%rbp), %r8d
callq 0x231b0
movq -0x28(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0x0, %eax
je 0x22f17
movq -0x28(%rbp), %rax
movzwl 0x2(%rax), %eax
cmpl $0xc, %eax
jle 0x22f58
leaq 0x54262(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4003333, %rax        # imm = 0x4003333
cmpq $0x0, %rax
je 0x22f46
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x45e1c(%rip), %rdi     # 0x68d58
movb $0x0, %al
callq 0x3110
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3180
movq %rax, -0x50(%rbp)
jmp 0x23189
movq -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x22fa2
leaq 0x54216(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x22f90
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x45df3(%rip), %rdi     # 0x68d79
movb $0x0, %al
callq 0x3110
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3180
movq %rax, -0x50(%rbp)
jmp 0x23187
cmpl $0x0, -0x44(%rbp)
je 0x23159
cmpl $0x0, -0x44(%rbp)
jle 0x230a9
leaq 0x541c3(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x300, %rax            # imm = 0x300
cmpq $0x300, %rax            # imm = 0x300
jne 0x22ffc
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
addq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdx
addq -0x30(%rbp), %rdx
leaq 0x448f2(%rip), %rdi     # 0x678df
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x2306e
leaq 0x5417d(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x100, %rax            # imm = 0x100
cmpq $0x0, %rax
je 0x23034
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
addq -0x30(%rbp), %rsi
leaq 0x448c7(%rip), %rdi     # 0x678ec
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x2306c
leaq 0x54145(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x200, %rax            # imm = 0x200
cmpq $0x0, %rax
je 0x2306a
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
addq -0x30(%rbp), %rsi
leaq 0x47d2e(%rip), %rdi     # 0x6ad8b
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x2306c
jmp 0x2306e
cmpq $0x0, -0x30(%rbp)
je 0x230a7
leaq 0x54104(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x4000000, %rax        # imm = 0x4000000
cmpq $0x0, %rax
je 0x230a7
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x41729(%rip), %rdi     # 0x647c3
movb $0x0, %al
callq 0x3110
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x230db
cmpl $0x0, -0x44(%rbp)
jge 0x230d9
leaq 0x540ca(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x230d9
movq -0x28(%rbp), %rdi
movl 0x18(%rbp), %esi
movl 0x20(%rbp), %edx
leaq 0x47246(%rip), %rcx     # 0x6a31a
callq 0x233d0
jmp 0x230db
leaq 0x5409e(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0x23157
movl -0x54(%rbp), %edi
callq 0x1ff00
movl $0x0, -0x54(%rbp)
movq -0x18(%rbp), %rdi
movw -0x1a(%rbp), %si
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %r8
movq -0x40(%rbp), %r9
movl 0x10(%rbp), %r11d
addl $0x2, %r11d
movl 0x18(%rbp), %r10d
movl 0x20(%rbp), %eax
leaq 0x40fae(%rip), %rbx     # 0x640dc
xorl %r14d, %r14d
movzwl %si, %esi
movq %rbx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
callq 0x23650
movq %rax, -0x50(%rbp)
jmp 0x23185
leaq 0x54020(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30, %rax
cmpq $0x0, %rax
je 0x23183
movq -0x28(%rbp), %rdi
movl 0x18(%rbp), %esi
movl 0x20(%rbp), %edx
leaq 0x4719c(%rip), %rcx     # 0x6a31a
callq 0x233d0
jmp 0x23185
jmp 0x23187
jmp 0x23189
movl -0x54(%rbp), %edi
callq 0x1ef50
movl %eax, -0x54(%rbp)
movq -0x50(%rbp), %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nopw %cs:(%rax,%rax)