// File: /workspace/github_c_makefile_star2_O3/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
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x91af
movzwl %r15w, %r13d
movq %r14, %rdi
movl %r13d, %esi
movq %r12, %rdx
callq 0x4e81
movss %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x91a0
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x92be
movq %r14, %rdi
callq 0x31b0
xorl %ebp, %ebp
jmp 0x934a
leaq 0x4efca(%rip), %rax     # 0x58180
xorl %ebp, %ebp
testb $0x8, 0x3(%rax)
jne 0x934a
movq %r12, 0x10(%rsp)
movl %r15d, 0xc(%rsp)
cmpq $0x6, %rbx
movl $0x3, %r12d
cmovbl %ebx, %r12d
cmpl $0x2, %r12d
jl 0x923f
leal -0x1(%r12), %r15d
movzwl 0xc(%rsp), %r13d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4e81
movss %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x9342
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x9342
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
leaq 0x385cc(%rip), %rdi     # 0x417fd
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
decl %r15d
jne 0x91eb
movslq %r12d, %rax
movq %rbx, %r15
subq %rax, %r15
jbe 0x934a
leaq 0x384f6(%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 0x4e81
cvtss2sd %xmm0, %xmm0
leaq 0x38584(%rip), %rdi     # 0x4180a
movq %rbx, %rsi
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
addl %r13d, %ebp
leaq 0x4eee4(%rip), %rax     # 0x58180
testb $0x3, 0x2(%rax)
je 0x934a
leaq 0x384b0(%rip), %rdi     # 0x4175d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x934a
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
leaq 0x3ff4a(%rip), %rdi     # 0x49218
movb $0x1, %al
callq 0x3120
movl %eax, %ebp
leaq 0x4eea2(%rip), %rax     # 0x58180
testb $0x8, 0x3(%rax)
je 0x91c2
cmpq $0x1, %rbx
je 0x934a
decq %rbx
leaq 0x38505(%rip), %r15     # 0x417fd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4e81
movss %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x9342
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x9342
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
movq %r15, %rdi
movb $0x1, %al
callq 0x3120
addl %eax, %ebp
decq %rbx
jne 0x92f8
jmp 0x934a
movq %r14, %rdi
callq 0x31b0
movl %ebp, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82