// File: /workspace/github_c_makefile_star2_O0/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
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 0xb181
movq -0x8(%rbp), %rdi
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x50b0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xb152
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb168
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xb373
movsd -0x30(%rbp), %xmm0
leaq 0x60846(%rip), %rdi     # 0x6b9ba
movb $0x1, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
leaq 0x6bff8(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x8000000, %rax        # imm = 0x8000000
cmpq $0x0, %rax
je 0xb222
movl $0x1, -0x24(%rbp)
movslq -0x24(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xb21d
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x50b0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xb1e3
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb1f9
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xb373
movsd -0x30(%rbp), %xmm0
leaq 0x595b8(%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 0xb1a2
jmp 0xb36b
cmpq $0x5, -0x10(%rbp)
jbe 0xb234
movl $0x3, %eax
movq %rax, -0x40(%rbp)
jmp 0xb23c
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 0xb2c3
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x50b0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xb289
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb29f
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x34(%rbp), %edi
callq 0x1ff00
jmp 0xb373
movsd -0x30(%rbp), %xmm0
leaq 0x59512(%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 0xb24a
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpq %rcx, %rax
jbe 0xb369
leaq 0x59430(%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 $0x2, %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 0x50b0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
movq -0x10(%rbp), %rsi
leaq 0x5949e(%rip), %rdi     # 0x647ca
movb $0x1, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
leaq 0x6be40(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xb367
movq -0x20(%rbp), %rsi
leaq 0x593c3(%rip), %rdi     # 0x6471d
movb $0x0, %al
callq 0x3110
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0xb369
jmp 0xb36b
movl -0x34(%rbp), %edi
callq 0x1ff00
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)