// File: /workspace/github_c_makefile_star2_O1/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
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
je 0x87db
movl %edx, %r15d
movzwl %dx, %ebp
movq %r14, %rdi
movl %ebp, %esi
movq %rcx, %r12
movq %rcx, %rdx
callq 0x46cc
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x87cc
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x87cc
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %ebp, %esi
callq 0x46cc
movq %rax, %rbp
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x87cc
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8add
movq %r14, %rdi
callq 0x31b0
xorl %ebp, %ebp
jmp 0x8ac8
xorl %ebp, %ebp
leaq 0x4f99c(%rip), %rax     # 0x58180
testb $0x8, 0x3(%rax)
jne 0x89ca
movq %rcx, 0x18(%rsp)
cmpq $0x6, %rbx
movl $0x3, %eax
cmovbl %ebx, %eax
cmpl $0x2, %eax
movl %edx, 0x14(%rsp)
movq %rax, 0x8(%rsp)
jl 0x8926
leal -0x1(%rax), %r13d
movzwl %dx, %r15d
movq %rbx, 0x20(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x46cc
movq %rax, %r12
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x89bd
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x89bd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %ebx
movl %r15d, %esi
callq 0x46cc
movq %rax, %r15
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x89bd
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x89bd
leaq 0x4f8f2(%rip), %rax     # 0x58180
testb $0x2, 0x3(%rax)
je 0x88aa
leaq 0x38f54(%rip), %rdi     # 0x417ef
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testq %r12, %r12
je 0x8905
movq %r12, %xmm1
movq 0x38c24(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x38c28(%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 0x38f01(%rip), %rdi     # 0x417fd
movb $0x1, %al
callq 0x3120
jmp 0x8913
leaq 0x38eee(%rip), %rdi     # 0x417fa
xorl %eax, %eax
callq 0x3120
movl %ebx, %r15d
addl %eax, %ebp
decl %r13d
movq 0x20(%rsp), %rbx
jne 0x881e
movslq 0x8(%rsp), %rax
movq %rbx, %r15
subq %rax, %r15
jbe 0x8ac8
leaq 0x38e0d(%rip), %rdi     # 0x4174b
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
movq 0x18(%rsp), %rax
leaq (%rax,%r15,8), %r12
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x3210
movzwl 0x14(%rsp), %r13d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x46cc
movq %rax, %r15
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x89bd
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x89bd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r13d, %esi
callq 0x46cc
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x89bd
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
je 0x8b7e
movq %r14, %rdi
callq 0x31b0
jmp 0x8ac8
cmpq $0x2, %rbx
jb 0x8ac8
decq %rbx
movzwl %dx, %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x46cc
movq %rax, %r12
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x89bd
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x89bd
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl %r15d, %esi
callq 0x46cc
movq %rax, %r13
movq %r14, %rdi
callq 0x31a0
testl %eax, %eax
jne 0x89bd
movq %r14, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x89bd
leaq 0x4f748(%rip), %rax     # 0x58180
testb $0x2, 0x3(%rax)
je 0x8a54
leaq 0x38daa(%rip), %rdi     # 0x417ef
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
testq %r12, %r12
je 0x8aaf
movq %r12, %xmm1
movq 0x38a7a(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x38a7e(%rip), %xmm3    # 0x414f0
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 0x38d57(%rip), %rdi     # 0x417fd
movb $0x1, %al
callq 0x3120
jmp 0x8abd
leaq 0x38d44(%rip), %rdi     # 0x417fa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
decq %rbx
jne 0x89db
movl %ebp, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x17530
leaq 0x4f69c(%rip), %rcx     # 0x58180
xorl %eax, %eax
testb $0x2, 0x3(%rcx)
je 0x8b00
leaq 0x38cfc(%rip), %rdi     # 0x417ef
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x3120
movl %eax, 0x8(%rsp)
testq %r13, %r13
je 0x8b5f
movq %r13, %xmm1
movq 0x389ca(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x389ce(%rip), %xmm3    # 0x414f0
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 0x40682(%rip), %rdi     # 0x491d8
movb $0x1, %al
callq 0x3120
jmp 0x8b6d
leaq 0x390bd(%rip), %rdi     # 0x41c23
xorl %eax, %eax
callq 0x3120
movl %eax, %ebp
addl 0x8(%rsp), %ebp
movl %r15d, %edx
movq %r12, %rcx
jmp 0x87dd
leaq 0x4f5fb(%rip), %rax     # 0x58180
testb $0x2, 0x3(%rax)
jne 0x8be9
testq %r15, %r15
je 0x8bff
movq %r15, %xmm1
movq 0x38943(%rip), %xmm2    # 0x414e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x38947(%rip), %xmm3    # 0x414f0
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 0x38c2d(%rip), %rdi     # 0x4180a
movq %rbx, %rsi
movb $0x1, %al
callq 0x3120
jmp 0x8c10
leaq 0x38bff(%rip), %rdi     # 0x417ef
movq %r15, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x3120
jmp 0x8c10
leaq 0x38bfb(%rip), %rdi     # 0x41801
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
leaq 0x4f567(%rip), %rax     # 0x58180
testb $0x3, 0x2(%rax)
je 0x8ac8
leaq 0x38b33(%rip), %rdi     # 0x4175d
movq %r12, %rsi
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
jmp 0x8ac8