// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/print.c
// Function: print_double
void
print_double(FILE *inptr,unsigned long count,unsigned short byteorder,
                unsigned long offset)
{
    int i,j;
    double data;
    int chpr = 0;

    if(count)
    {
        data = read_double(inptr,byteorder,offset);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        chpr += printf("%g",data);
    }
    if(PRINT_MULTIVAL_ALL)
    {
        for(i = 1; i < count; ++i)
        {
            data = read_double(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            chpr += printf(",%g",data);
        }
    }
    else
    {
#define MAX 3L
        j = count > MAX + 2 ? MAX : count;
        for(i = 1; i < j; ++i)
        {
            data = read_double(inptr,byteorder,HERE);
            chpr += printf(",%g",data);
        }
        if(count > j)
        {
            chpr += printf(" ... ");
            offset += (unsigned long)(count - j) * 8UL;
            data = read_double(inptr,byteorder,offset);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            chpr += printf(",%g (%lu)",data,count);
            if(PRINT_ADDRESS)
                chpr += printf(" -> @%lu",offset);
        }
#undef MAX
    }
    setcharsprinted(chpr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rsi, %r12
movq %rdi, %r14
movzwl %dx, %ebp
testq %rsi, %rsi
je 0x8c7b
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x4b24
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8c6c
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8db6
movq %r14, %rdi
callq 0x31b0
xorl %ebx, %ebx
jmp 0x8da1
xorl %ebx, %ebx
leaq 0x4e4fc(%rip), %rax     # 0x57180
testb $0x8, 0x3(%rax)
jne 0x8cd3
movq %r15, 0x10(%rsp)
cmpq $0x6, %r12
movl %ebx, %r15d
pushq $0x3
popq %rbx
movq %r12, 0x8(%rsp)
cmovbl %r12d, %ebx
pushq $0x1
popq %r12
leaq 0x36b50(%rip), %r13     # 0x3f7fd
cmpl %ebx, %r12d
jge 0x8d2f
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x4b24
movq %r13, %rdi
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
incl %r12d
jmp 0x8cad
pushq $0x1
popq %r13
leaq 0x36b1f(%rip), %r15     # 0x3f7fd
cmpq %r12, %r13
jae 0x8da1
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x4b24
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8d94
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8d94
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %ebx
incq %r13
jmp 0x8cde
movslq %ebx, %rax
movq 0x8(%rsp), %r12
movq %r12, %rbx
subq %rax, %rbx
jbe 0x8d9e
leaq 0x36a05(%rip), %rdi     # 0x3f74b
xorl %eax, %eax
callq 0x3120
addl %r15d, %eax
movl %eax, %r13d
movq 0x10(%rsp), %rax
leaq (%rax,%rbx,8), %r15
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x4b24
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8d87
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8dd1
movq %r14, %rdi
callq 0x31b0
movl %r13d, %ebx
jmp 0x8da1
movq %r14, %rdi
callq 0x31b0
jmp 0x8da1
movl %r15d, %ebx
movl %ebx, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16a4f
leaq 0x3e40b(%rip), %rdi     # 0x471c8
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %ebx
jmp 0x8c7d
leaq 0x36a32(%rip), %rdi     # 0x3f80a
movsd 0x10(%rsp), %xmm0
movq %r12, %rsi
movb $0x1, %al
callq 0x3120
movl %r13d, %ebx
addl %eax, %ebx
leaq 0x4e38c(%rip), %rax     # 0x57180
testb $0x3, 0x2(%rax)
je 0x8da1
leaq 0x3695c(%rip), %rdi     # 0x3f75d
movq %r15, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebx
jmp 0x8da1