// File: /workspace/github_c_makefile_star2_O1/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, %r12
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x92af
movzwl %bp, %esi
movq %r14, %rdi
movq %r12, %rdx
callq 0x4fba
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x929f
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x93f1
movq %r14, %rdi
callq 0x31b0
xorl %r15d, %r15d
jmp 0x93db
xorl %r15d, %r15d
leaq 0x4eec7(%rip), %rax     # 0x58180
testb $0x8, 0x3(%rax)
jne 0x9319
movq %r12, 0x10(%rsp)
cmpq $0x6, %rbx
movl $0x3, %eax
cmovbl %ebx, %eax
cmpl $0x2, %eax
movl %ebp, 0xc(%rsp)
movq %rax, (%rsp)
jl 0x9375
leal -0x1(%rax), %r12d
movzwl %bp, %r13d
leaq 0x3850d(%rip), %rax     # 0x417fd
movl %r15d, %ebp
movq %rax, %r15
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4fba
movq %r15, %rdi
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
decl %r12d
jne 0x92f6
jmp 0x9378
cmpq $0x2, %rbx
jb 0x93db
decq %rbx
movzwl %bp, %ebp
leaq 0x384cd(%rip), %r12     # 0x417fd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x4fba
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x93ce
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x93ce
movq %r12, %rdi
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
decq %rbx
jne 0x9330
jmp 0x93db
movl %r15d, %ebp
movslq (%rsp), %rax
movq %rbx, %r12
subq %rax, %r12
jbe 0x93d8
leaq 0x383c0(%rip), %rdi     # 0x4174b
xorl %eax, %eax
callq 0x3120
movl %eax, %r15d
addl %ebp, %r15d
movq 0x10(%rsp), %rax
leaq (%rax,%r12,8), %r12
movzwl 0xc(%rsp), %esi
movq %r14, %rdi
movq %r12, %rdx
callq 0x4fba
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x93ce
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x940c
movq %r14, %rdi
callq 0x31b0
jmp 0x93db
movl %ebp, %r15d
movl %r15d, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
leaq 0x3fde0(%rip), %rdi     # 0x491d8
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x3120
movl %eax, %r15d
jmp 0x92b2
leaq 0x383f7(%rip), %rdi     # 0x4180a
movsd (%rsp), %xmm0
movq %rbx, %rsi
movb $0x1, %al
callq 0x3120
addl %eax, %r15d
leaq 0x4ed54(%rip), %rax     # 0x58180
testb $0x3, 0x2(%rax)
je 0x93db
leaq 0x38324(%rip), %rdi     # 0x4175d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %r15d
jmp 0x93db