// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x50, %rsp
movw %dx, %ax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x3c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xa6c7
movq -0x8(%rbp), %rdi
movw -0x12(%rbp), %ax
movq -0x20(%rbp), %rdx
movzwl %ax, %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa5c1
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa5d7
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa609
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa61f
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
leaq 0x6cb5a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xa651
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x5a16b(%rip), %rdi     # 0x647af
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xa66e
leaq 0x5a58f(%rip), %rdi     # 0x64bee
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa6c5
movq -0x30(%rbp), %xmm0
movaps 0x59e26(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x59e2a(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x38(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x61302(%rip), %rdi     # 0x6b9ba
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa6c7
leaq 0x6cab2(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x8000000, %rax        # imm = 0x8000000
cmpq $0x0, %rax
je 0xa841
movl $0x1, -0x24(%rbp)
movslq -0x24(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xa83c
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa728
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa73e
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa770
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa786
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
leaq 0x6c9f3(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xa7b8
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x5a004(%rip), %rdi     # 0x647af
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xa7d5
leaq 0x59ff4(%rip), %rdi     # 0x647ba
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa82c
movq -0x30(%rbp), %xmm0
movaps 0x59cbf(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x59cc3(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x38(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x59f9e(%rip), %rdi     # 0x647bd
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa82e
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa6e8
jmp 0xab7a
cmpq $0x5, -0x10(%rbp)
jbe 0xa853
movl $0x3, %eax
movq %rax, -0x48(%rbp)
jmp 0xa85b
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl %eax, -0x28(%rbp)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xa9bb
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa8a7
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa8bd
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xa8ef
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xa905
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
leaq 0x6c874(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xa937
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x59e85(%rip), %rdi     # 0x647af
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xa954
leaq 0x59e75(%rip), %rdi     # 0x647ba
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa9ab
movq -0x30(%rbp), %xmm0
movaps 0x59b40(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x59b44(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x38(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x59e1f(%rip), %rdi     # 0x647bd
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xa9ad
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa869
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpq %rcx, %rax
jbe 0xab78
leaq 0x59d38(%rip), %rdi     # 0x6470b
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
subq %rcx, %rax
shlq $0x3, %rax
addq -0x20(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %edx, %edx
callq 0x3200
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xaa38
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xaa4e
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
movq -0x8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movzwl -0x12(%rbp), %esi
callq 0x4610
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jne 0xaa80
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xaa96
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xab82
leaq 0x6c6e3(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xaaca
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x59cf4(%rip), %rdi     # 0x647af
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xab48
cmpq $0x0, -0x30(%rbp)
jne 0xaaeb
movq -0x10(%rbp), %rsi
leaq 0x59ce5(%rip), %rdi     # 0x647c1
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xab46
movq -0x30(%rbp), %xmm0
movaps 0x599a9(%rip), %xmm3    # 0x644a0
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x599ad(%rip), %xmm2    # 0x644b0
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x38(%rbp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rsi
leaq 0x59c91(%rip), %rdi     # 0x647ca
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xab48
leaq 0x6c631(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xab76
movq -0x20(%rbp), %rsi
leaq 0x59bb4(%rip), %rdi     # 0x6471d
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xab78
jmp 0xab7a
movl -0x3c(%rbp), %edi
callq 0x1ff00
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)