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

    if(count)
    {
        num = (long)read_ulong(inptr,byteorder,offset);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        denom = (long)read_ulong(inptr,byteorder,HERE);
        if(feof(inptr) || ferror(inptr))
        {
            clearerr(inptr);
            setcharsprinted(chpr);
            return;
        }
        if(PRINT_RAW_VALUES)
            chpr += printf("%ld/%ld = ",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 = (long)read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            denom = (long)read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_RAW_VALUES)
                chpr += printf("%ld/%ld = ",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 = (long)read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            denom = (long)read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_RAW_VALUES)
                chpr += printf("%ld/%ld = ",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 = (long)read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            denom = (long)read_ulong(inptr,byteorder,HERE);
            if(feof(inptr) || ferror(inptr))
            {
                clearerr(inptr);
                setcharsprinted(chpr);
                return;
            }
            if(PRINT_RAW_VALUES)
                chpr += printf("%ld/%ld = ",num,denom);
            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 0xacc4
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 0xabf1
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xac07
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
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 0xac39
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xac4f
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
leaq 0x6c52a(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xac81
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x59b60(%rip), %rdi     # 0x647d4
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xac9e
leaq 0x59f5f(%rip), %rdi     # 0x64bee
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xacc2
cvtsi2sdq -0x30(%rbp), %xmm0
cvtsi2sdq -0x38(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq 0x60d05(%rip), %rdi     # 0x6b9ba
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xacc4
leaq 0x6c4b5(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x8000000, %rax        # imm = 0x8000000
cmpq $0x0, %rax
je 0xae0b
movl $0x1, -0x24(%rbp)
movslq -0x24(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0xae06
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 0xad25
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xad3b
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
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 0xad6d
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xad83
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
leaq 0x6c3f6(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xadb5
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x59a2c(%rip), %rdi     # 0x647d4
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xadd2
leaq 0x599f7(%rip), %rdi     # 0x647ba
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xadf6
cvtsi2sdq -0x30(%rbp), %xmm0
cvtsi2sdq -0x38(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq 0x599d4(%rip), %rdi     # 0x647bd
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xadf8
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xace5
jmp 0xb0da
cmpq $0x5, -0x10(%rbp)
jbe 0xae1d
movl $0x3, %eax
movq %rax, -0x48(%rbp)
jmp 0xae25
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 0xaf52
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 0xae71
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xae87
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
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 0xaeb9
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xaecf
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
leaq 0x6c2aa(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xaf01
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x598e0(%rip), %rdi     # 0x647d4
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xaf1e
leaq 0x598ab(%rip), %rdi     # 0x647ba
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xaf42
cvtsi2sdq -0x30(%rbp), %xmm0
cvtsi2sdq -0x38(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq 0x59888(%rip), %rdi     # 0x647bd
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xaf44
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xae33
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpq %rcx, %rax
jbe 0xb0d8
leaq 0x597a1(%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 0xafcf
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xafe5
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
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 0xb017
movq -0x8(%rbp), %rdi
callq 0x30a0
cmpl $0x0, %eax
je 0xb02d
movq -0x8(%rbp), %rdi
callq 0x31a0
movl -0x3c(%rbp), %edi
callq 0x1ff00
jmp 0xb0e2
leaq 0x6c14c(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x2000000, %rax        # imm = 0x2000000
cmpq $0x0, %rax
je 0xb05f
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
leaq 0x59782(%rip), %rdi     # 0x647d4
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xb080
movq -0x10(%rbp), %rsi
leaq 0x59750(%rip), %rdi     # 0x647c1
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xb0a8
cvtsi2sdq -0x30(%rbp), %xmm0
cvtsi2sdq -0x38(%rbp), %xmm1
divsd %xmm1, %xmm0
movq -0x10(%rbp), %rsi
leaq 0x5972f(%rip), %rdi     # 0x647ca
movb $0x1, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq 0x6c0d1(%rip), %rax     # 0x77180
movq (%rax), %rax
andq $0x30000, %rax          # imm = 0x30000
cmpq $0x0, %rax
je 0xb0d6
movq -0x20(%rbp), %rsi
leaq 0x59654(%rip), %rdi     # 0x6471d
movb $0x0, %al
callq 0x3110
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0xb0d8
jmp 0xb0da
movl -0x3c(%rbp), %edi
callq 0x1ff00
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)