// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movw %dx, %ax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x34(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xb40d
movq -0x8(%rbp), %rdi
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x52c0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xb3de
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb3f4
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xb5f0
movsd -0x30(%rbp), %xmm0
leaq 0x605ba(%rip), %rdi     # 0x6b9ba
movb $0x1, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
leaq 0x6bd6c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x8000000, %rax        # imm = 0x8000000
cmpq $0x0, %rax
je 0xb4aa
movl $0x1, -0x24(%rbp)
movslq -0x24(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xb4a5
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x52c0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xb46b
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb481
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xb5f0
movsd -0x30(%rbp), %xmm0
leaq 0x59330(%rip), %rdi     # 0x647bd
movb $0x1, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xb42e
jmp 0xb5e8
cmpq $0x5, -0x10(%rbp)
jbe 0xb4bc
movl $0x3, %eax
movq %rax, -0x40(%rbp)
jmp 0xb4c4
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl %eax, -0x28(%rbp)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xb515
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x52c0
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
leaq 0x592c0(%rip), %rdi     # 0x647bd
movb $0x1, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xb4d2
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpq %rcx, %rax
jbe 0xb5e6
leaq 0x591de(%rip), %rdi     # 0x6470b
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
subq %rcx, %rax
shlq $0x3, %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x52c0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xb586
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb599
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xb5f0
movsd -0x30(%rbp), %xmm0
movq -0x10(%rbp), %rsi
leaq 0x59221(%rip), %rdi     # 0x647ca
movb $0x1, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
leaq 0x6bbc3(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xb5e4
movq -0x20(%rbp), %rsi
leaq 0x59146(%rip), %rdi     # 0x6471d
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xb5e6
jmp 0xb5e8
movl -0x34(%rbp), %edi
callq 0x1ff00
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)