// File: /workspace/github_c_makefile_star2_O1/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, %r15
movl %edx, %r13d
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x90b3
movzwl %r13w, %esi
movq %r14, %rdi
movq %r15, %rdx
callq 0x4e7d
movss %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x90a4
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x9234
movq %r14, %rdi
callq 0x31b0
xorl %ebp, %ebp
jmp 0x921f
xorl %ebp, %ebp
leaq 0x4f0c4(%rip), %rax     # 0x58180
testb $0x8, 0x3(%rax)
jne 0x91b9
movq %r15, 0x10(%rsp)
cmpq $0x6, %rbx
movl $0x3, %r12d
cmovbl %ebx, %r12d
cmpl $0x2, %r12d
movl %r13d, 0xc(%rsp)
jl 0x9141
leal -0x1(%r12), %r15d
movzwl %r13w, %r13d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4e7d
movss %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x9217
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x9217
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
leaq 0x386ca(%rip), %rdi     # 0x417fd
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
decl %r15d
jne 0x90ed
movslq %r12d, %rax
movq %rbx, %r15
subq %rax, %r15
jbe 0x921f
leaq 0x385f4(%rip), %rdi     # 0x4174b
xorl %eax, %eax
callq 0x3120
movl %eax, %r13d
addl %ebp, %r13d
movq 0x10(%rsp), %rax
leaq (%rax,%r15,4), %r12
movzwl 0xc(%rsp), %esi
movq %r14, %rdi
movq %r12, %rdx
callq 0x4e7d
cvtss2sd %xmm0, %xmm0
leaq 0x38682(%rip), %rdi     # 0x4180a
movq %rbx, %rsi
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
addl %r13d, %ebp
leaq 0x4efe2(%rip), %rax     # 0x58180
testb $0x3, 0x2(%rax)
je 0x921f
leaq 0x385b2(%rip), %rdi     # 0x4175d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x921f
cmpq $0x2, %rbx
jb 0x921f
decq %rbx
movzwl %r13w, %r15d
leaq 0x38630(%rip), %r12     # 0x417fd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x4e7d
movss %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x9217
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x9217
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
movq %r12, %rdi
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
decq %rbx
jne 0x91cd
jmp 0x921f
movq %r14, %rdi
callq 0x31b0
movl %ebp, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
leaq 0x3ff94(%rip), %rdi     # 0x491d8
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
jmp 0x90b5