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

    if(count)
    {
        data = read_float(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_float(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_float(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            chpr += printf(",%g",data);
        }
        if(count > j)
        {
            chpr += printf(" ... ");
            offset += (unsigned long)(count - j) * 4L;
            data = read_float(inptr,byteorder,offset);
            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
movq %rsi, %rbx
movq %rdi, %r14
movzwl %dx, %r15d
testq %rsi, %rsi
je 0x8aa2
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0x4a13
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a93
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8b8a
movq %r14, %rdi
callq 0x31b0
xorl %ebp, %ebp
jmp 0x8b75
xorl %ebp, %ebp
leaq 0x4e6d5(%rip), %rax     # 0x57180
testb $0x8, 0x3(%rax)
jne 0x8b18
movq %r12, 0x10(%rsp)
cmpq $0x6, %rbx
pushq $0x3
popq %r12
cmovbl %ebx, %r12d
pushq $0x1
popq %r13
cmpl %r12d, %r13d
jge 0x8ba5
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x4a13
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8b6d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8b6d
cvtss2sd 0xc(%rsp), %xmm0
leaq 0x36cf3(%rip), %rdi     # 0x3f7fd
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
incl %r13d
jmp 0x8ac6
pushq $0x1
popq %r13
leaq 0x36cda(%rip), %r12     # 0x3f7fd
cmpq %rbx, %r13
jae 0x8b75
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x4a13
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8b6d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8b6d
cvtss2sd 0xc(%rsp), %xmm0
movq %r12, %rdi
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
incq %r13
jmp 0x8b23
movq %r14, %rdi
callq 0x31b0
movl %ebp, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x16a4f
cvtss2sd 0xc(%rsp), %xmm0
leaq 0x3e631(%rip), %rdi     # 0x471c8
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
jmp 0x8aa4
movslq %r12d, %rax
movq %rbx, %r12
subq %rax, %r12
jbe 0x8b75
leaq 0x36b94(%rip), %rdi     # 0x3f74b
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq 0x10(%rsp), %rax
leaq (%rax,%r12,4), %r12
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0x4a13
cvtss2sd %xmm0, %xmm0
leaq 0x36c24(%rip), %rdi     # 0x3f80a
movq %rbx, %rsi
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
addl %r13d, %ebp
leaq 0x4e584(%rip), %rax     # 0x57180
testb $0x3, 0x2(%rax)
je 0x8b75
leaq 0x36b50(%rip), %rdi     # 0x3f75d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x8b75