// File: /workspace/github_c_makefile_star2_O3/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, %rbp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x93c1
movzwl %r15w, %r13d
movq %r14, %rdi
movl %r13d, %esi
movq %rbp, %rdx
callq 0x4f9b
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x93b1
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x94aa
movq %r14, %rdi
callq 0x31b0
xorl %r12d, %r12d
jmp 0x9494
movq %rbp, (%rsp)
leaq 0x4edb4(%rip), %rax     # 0x58180
xorl %ebp, %ebp
testb $0x8, 0x3(%rax)
movl $0x0, %r12d
jne 0x9494
movl %r15d, 0xc(%rsp)
cmpq $0x6, %rbx
movl $0x3, %r15d
movq %rbx, 0x10(%rsp)
cmovbl %ebx, %r15d
cmpl $0x2, %r15d
jl 0x942d
leal -0x1(%r15), %ebx
movzwl 0xc(%rsp), %r12d
leaq 0x383f0(%rip), %r13     # 0x417fd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r12d, %esi
callq 0x4f9b
movq %r13, %rdi
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
decl %ebx
jne 0x940d
movslq %r15d, %rax
movq 0x10(%rsp), %rbx
subq %rax, %rbx
jbe 0x9491
leaq 0x3830a(%rip), %rdi     # 0x4174b
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
addl %ebp, %r12d
movq (%rsp), %rax
leaq (%rax,%rbx,8), %r13
movzwl 0xc(%rsp), %esi
movq %r14, %rdi
movq %r13, %rdx
callq 0x4f9b
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x9487
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x953a
movq %r14, %rdi
callq 0x31b0
jmp 0x9494
movl %ebp, %r12d
movl %r12d, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82
leaq 0x3fd67(%rip), %rdi     # 0x49218
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %r12d
leaq 0x4ecb9(%rip), %rax     # 0x58180
testb $0x8, 0x3(%rax)
jne 0x94d9
movq %rbp, (%rsp)
movl %r12d, %ebp
jmp 0x93de
cmpq $0x1, %rbx
je 0x9494
decq %rbx
leaq 0x38314(%rip), %r15     # 0x417fd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4f9b
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x9487
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x9487
movq %r15, %rdi
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r12d
decq %rbx
jne 0x94e9
jmp 0x9494
leaq 0x382c9(%rip), %rdi     # 0x4180a
movsd (%rsp), %xmm0
movq 0x10(%rsp), %rsi
movb $0x1, %al
callq 0x3120
addl %eax, %r12d
leaq 0x4ec24(%rip), %rax     # 0x58180
testb $0x3, 0x2(%rax)
je 0x9494
leaq 0x381f0(%rip), %rdi     # 0x4175d
movq %r13, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r12d
jmp 0x9494