// File: /workspace/github_c_makefile_star2_O3/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 $0x28, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
testq %rsi, %rsi
je 0x88a3
movzwl %bx, %r13d
movq %r14, %rdi
movl %r13d, %esi
movq %rcx, %r12
movq %rcx, %rdx
callq 0x4707
movq %rax, %rbp
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8894
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8894
movl %ebx, 0xc(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4707
movq %rax, %rbx
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8894
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8a9a
movq %r14, %rdi
callq 0x31b0
xorl %ebp, %ebp
jmp 0x8a85
leaq 0x4f8d6(%rip), %rax     # 0x58180
xorl %ebp, %ebp
testb $0x8, 0x3(%rax)
jne 0x8a85
movq %rcx, 0x18(%rsp)
cmpq $0x6, %r15
movl $0x3, %eax
movq %r15, 0x10(%rsp)
cmovbl %r15d, %eax
cmpl $0x2, %eax
movl %ebx, 0xc(%rsp)
movq %rax, 0x20(%rsp)
jl 0x89e4
leal -0x1(%rax), %r15d
movzwl %bx, %r13d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4707
movq %rax, %rbx
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a7d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8a7d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4707
movq %rax, %r12
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a7d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8a7d
leaq 0x4f82c(%rip), %rax     # 0x58180
testb $0x2, 0x3(%rax)
je 0x8970
leaq 0x38e8e(%rip), %rdi     # 0x417ef
movq %rbx, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testq %rbx, %rbx
je 0x89cb
movq %rbx, %xmm1
movq 0x38b5e(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x38b62(%rip), %xmm3    # 0x414f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r12, %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 0x38e3b(%rip), %rdi     # 0x417fd
movb $0x1, %al
callq 0x3120
jmp 0x89d9
leaq 0x38e28(%rip), %rdi     # 0x417fa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
decl %r15d
jne 0x88e7
movslq 0x20(%rsp), %rax
movq 0x10(%rsp), %rbx
subq %rax, %rbx
jbe 0x8a85
leaq 0x38d4d(%rip), %rdi     # 0x4174b
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq 0x18(%rsp), %rax
leaq (%rax,%rbx,8), %r12
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x3210
movzwl 0xc(%rsp), %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x4707
movq %rax, %rbx
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a7d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8a7d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x4707
movq %rax, %r15
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a7d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8c5e
movq %r14, %rdi
callq 0x31b0
movl %ebp, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17a82
leaq 0x4f6df(%rip), %rcx     # 0x58180
xorl %eax, %eax
testb $0x2, 0x3(%rcx)
je 0x8abd
leaq 0x38d3f(%rip), %rdi     # 0x417ef
movq %rbp, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, 0x10(%rsp)
testq %rbp, %rbp
je 0x8b1c
movq %rbp, %xmm1
movq 0x38a0d(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x38a11(%rip), %xmm3    # 0x414f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rbx, %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 0x40705(%rip), %rdi     # 0x49218
movb $0x1, %al
callq 0x3120
jmp 0x8b2a
leaq 0x39100(%rip), %rdi     # 0x41c23
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
movl 0xc(%rsp), %ebx
addl 0x10(%rsp), %ebp
leaq 0x4f645(%rip), %rax     # 0x58180
testb $0x8, 0x3(%rax)
jne 0x8b49
movq %r12, %rcx
jmp 0x88b6
cmpq $0x1, %r15
je 0x8a85
decq %r15
movq %r15, %r12
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4707
movq %rax, %r15
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a7d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8a7d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x4707
movq %rax, %rbx
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x8a7d
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x8a7d
leaq 0x4f5ba(%rip), %rax     # 0x58180
testb $0x2, 0x3(%rax)
je 0x8be2
leaq 0x38c1c(%rip), %rdi     # 0x417ef
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testq %r15, %r15
je 0x8c3d
movq %r15, %xmm1
movq 0x388ec(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x388f0(%rip), %xmm3    # 0x414f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %rbx, %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 0x38bc9(%rip), %rdi     # 0x417fd
movb $0x1, %al
callq 0x3120
jmp 0x8c4b
leaq 0x38bb6(%rip), %rdi     # 0x417fa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq %r12, %r15
decq %r15
jne 0x8b56
jmp 0x8a85
leaq 0x4f51b(%rip), %r14     # 0x58180
testb $0x2, 0x3(%r14)
jne 0x8ccc
testq %rbx, %rbx
je 0x8ce2
movq %rbx, %xmm1
movq 0x38862(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x38866(%rip), %xmm3    # 0x414f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq %r15, %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 0x38b4c(%rip), %rdi     # 0x4180a
movq 0x10(%rsp), %rsi
movb $0x1, %al
callq 0x3120
jmp 0x8cf5
leaq 0x38b1c(%rip), %rdi     # 0x417ef
movq %rbx, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x8cf5
leaq 0x38b18(%rip), %rdi     # 0x41801
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testb $0x3, 0x2(%r14)
je 0x8a85
leaq 0x38a54(%rip), %rdi     # 0x4175d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x8a85