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

    if(count)
    {
        num = read_ulong(inptr,byteorder,offset);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        denom = read_ulong(inptr,byteorder,HERE);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        if(PRINT_RAW_VALUES)
            chpr += printf("%lu/%lu = ",num,denom);
        if(num == 0UL)
            chpr += printf("0");
        else
            chpr += printf("%g",(double)((double)num/(double)denom));
    }
    if(PRINT_MULTIVAL_ALL)
    {
        for(i = 1; i < count; ++i)
        {
            num = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            denom = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_RAW_VALUES)
                chpr += printf("%lu/%lu = ",num,denom);
            if(num == 0UL)
                chpr += printf(",0");
            else
                chpr += printf(",%g",(double)((double)num/(double)denom));
        }
    }
    else
    {
#define MAX 3UL
        j = count > MAX + 2 ? MAX : count;
        for(i = 1; i < j; ++i)
        {
            num = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            denom = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_RAW_VALUES)
                chpr += printf("%lu/%lu = ",num,denom);
            if(num == 0UL)
                chpr += printf(",0");
            else
                chpr += printf(",%g",(double)((double)num/(double)denom));
        }
        if(count > j)
        {
            chpr += printf(" ... ");
            offset += (unsigned long)(count - j) * 8UL;
            fseek(inptr,offset,SEEK_SET);
            num = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            denom = read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_RAW_VALUES)
                chpr += printf("%lu/%lu = ",num,denom);
            else
            if(num == 0UL)
                chpr += printf(",0 (%lu)",count);
            else
                chpr += printf(",%g (%lu)",(double)((double)num/(double)denom),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, %rbx
movq %rdi, %r14
movzwl %dx, %r15d
movq %rsi, (%rsp)
testq %rsi, %rsi
je 0x8219
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x42ba
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x820a
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x820a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %rbp
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x820a
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8503
movq %r14, %rdi
callq 0x31b0
xorl %ebp, %ebp
jmp 0x84ee
xorl %ebp, %ebp
leaq 0x4ef5e(%rip), %rax     # 0x57180
testb $0x8, 0x3(%rax)
jne 0x834b
movq %rbx, 0x10(%rsp)
movq (%rsp), %rax
cmpq $0x6, %rax
pushq $0x3
popq %rcx
cmovbl %eax, %ecx
movl %ecx, 0xc(%rsp)
pushq $0x1
popq %rbx
cmpl 0xc(%rsp), %ebx
jge 0x8454
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x84e6
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x84e6
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %r12
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x84e6
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x84e6
leaq 0x4eec3(%rip), %rax     # 0x57180
testb $0x2, 0x3(%rax)
je 0x82d9
leaq 0x37525(%rip), %rdi     # 0x3f7ef
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testq %r13, %r13
je 0x8334
movq %r13, %xmm1
movq 0x371f5(%rip), %xmm3    # 0x3f4e0
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movapd 0x371f9(%rip), %xmm2    # 0x3f4f0
subpd %xmm2, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r12, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x374d2(%rip), %rdi     # 0x3f7fd
movb $0x1, %al
callq 0x3120
jmp 0x8342
leaq 0x374bf(%rip), %rdi     # 0x3f7fa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
incl %ebx
jmp 0x8246
pushq $0x1
popq %rbx
cmpq (%rsp), %rbx
jae 0x84ee
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %r12
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x84e6
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x84e6
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x84e6
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x84e6
leaq 0x4edbb(%rip), %rax     # 0x57180
testb $0x2, 0x3(%rax)
je 0x83e1
leaq 0x3741d(%rip), %rdi     # 0x3f7ef
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testq %r12, %r12
je 0x843c
movq %r12, %xmm1
movq 0x370ed(%rip), %xmm2    # 0x3f4e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x370f1(%rip), %xmm3    # 0x3f4f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r13, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x373ca(%rip), %rdi     # 0x3f7fd
movb $0x1, %al
callq 0x3120
jmp 0x844a
leaq 0x373b7(%rip), %rdi     # 0x3f7fa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
incq %rbx
jmp 0x834e
movslq 0xc(%rsp), %rax
movq (%rsp), %rbx
subq %rax, %rbx
jbe 0x84ee
leaq 0x372de(%rip), %rdi     # 0x3f74b
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq 0x10(%rsp), %rax
leaq (%rax,%rbx,8), %r12
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x3210
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x84e6
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x84e6
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x42ba
movq %rax, %r15
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x84e6
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x859d
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
leaq 0x4ec76(%rip), %rax     # 0x57180
xorl %r12d, %r12d
testb $0x2, 0x3(%rax)
je 0x852a
leaq 0x372d5(%rip), %rdi     # 0x3f7ef
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, %r12d
testq %r13, %r13
je 0x8585
movq %r13, %xmm1
movq 0x36fa4(%rip), %xmm2    # 0x3f4e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x36fa8(%rip), %xmm3    # 0x3f4f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rbp, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x3ec4c(%rip), %rdi     # 0x471c8
movb $0x1, %al
callq 0x3120
jmp 0x8593
leaq 0x37697(%rip), %rdi     # 0x3fc23
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl %r12d, %ebp
jmp 0x821b
leaq 0x4ebdc(%rip), %rax     # 0x57180
testb $0x2, 0x3(%rax)
jne 0x8609
testq %r13, %r13
je 0x861f
movq %r13, %xmm1
movq 0x36f24(%rip), %xmm3    # 0x3f4e0
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movapd 0x36f28(%rip), %xmm2    # 0x3f4f0
subpd %xmm2, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r15, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x3720e(%rip), %rdi     # 0x3f80a
movq (%rsp), %rsi
movb $0x1, %al
callq 0x3120
jmp 0x8631
leaq 0x371df(%rip), %rdi     # 0x3f7ef
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x8631
leaq 0x371db(%rip), %rdi     # 0x3f801
movq (%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x4eb46(%rip), %rax     # 0x57180
testb $0x3, 0x2(%rax)
je 0x84ee
leaq 0x37112(%rip), %rdi     # 0x3f75d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x84ee