// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/tests/onlinequantile/main.c
// Function: parse_line
static int
parse_line(FILE * fp, char * instr, double * val)
{
	char line[LINELEN];

	/* Repeat until we have a non-comment, non-blank line. */
	do {
		if (fgets(line, LINELEN, fp) == NULL) {
			/* Handle error or EOF. */
			if (ferror(fp)) {
				warnp("fgets");
				goto err0;
			}
			goto eof;
		}

		/* If we have a newline, remove it. */
		if (line[strlen(line) - 1] == '\n')
			line[strlen(line) - 1] = '\0';
	} while ((line[0] == '#') || (line[0] == '\0'));

	/* Sanity-check the format.  Multiple tabs characters are ok. */
	if (line[1] != '\t') {
		warn0("Unrecognized character in line: %s", line);
		goto err0;
	}

	/* Get instruction and value from the line. */
	*instr = line[0];
	if (PARSENUM(val, &line[2])) {
		warnp("parsenum");
		goto err0;
	}

	/* Success! */
	return (0);

eof:
	/* End of file! */
	return (1);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
leaq -0x70(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl $0x50, %esi
callq 0x10f0
cmpq $0x0, %rax
jne 0x15ee
movq -0x10(%rbp), %rdi
callq 0x1080
cmpl $0x0, %eax
je 0x15e9
jmp 0x15af
callq 0x1070
cmpl $0x0, (%rax)
je 0x15d4
leaq 0x2b64(%rip), %rdi      # 0x4124
movb $0x0, %al
callq 0x1b60
callq 0x1070
movl $0x0, (%rax)
jmp 0x15e2
leaq 0x2b49(%rip), %rdi      # 0x4124
movb $0x0, %al
callq 0x1db0
jmp 0x15e4
jmp 0x17f1
jmp 0x17e8
leaq -0x70(%rbp), %rdi
callq 0x10c0
subq $0x1, %rax
movsbl -0x70(%rbp,%rax), %eax
cmpl $0xa, %eax
jne 0x1617
leaq -0x70(%rbp), %rdi
callq 0x10c0
subq $0x1, %rax
movb $0x0, -0x70(%rbp,%rax)
jmp 0x1619
movsbl -0x70(%rbp), %ecx
movb $0x1, %al
cmpl $0x23, %ecx
movb %al, -0x71(%rbp)
je 0x1634
movsbl -0x70(%rbp), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
testb $0x1, %al
jne 0x1587
movsbl -0x6f(%rbp), %eax
cmpl $0x9, %eax
je 0x166c
jmp 0x164a
leaq -0x70(%rbp), %rsi
leaq 0x2ad5(%rip), %rdi      # 0x412a
movb $0x0, %al
callq 0x1db0
callq 0x1070
movl $0x0, (%rax)
jmp 0x17f1
movb -0x70(%rbp), %cl
movq -0x18(%rbp), %rax
movb %cl, (%rax)
callq 0x1070
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movsd 0x2984(%rip), %xmm0     # 0x4010
movsd %xmm0, (%rax)
movq -0x20(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x2968(%rip), %xmm1     # 0x4008
divsd %xmm1, %xmm0
movsd %xmm0, (%rax)
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x16dd
leaq -0x70(%rbp), %rdi
addq $0x2, %rdi
movsd 0x2967(%rip), %xmm0     # 0x4028
movsd 0x2967(%rip), %xmm1     # 0x4030
xorl %esi, %esi
callq 0x1930
movq -0x20(%rbp), %rax
movsd %xmm0, (%rax)
jmp 0x179c
movq -0x20(%rbp), %rax
movsd 0x292f(%rip), %xmm0     # 0x4018
movsd %xmm0, (%rax)
xorl %eax, %eax
testb $0x1, %al
jne 0x16f5
jmp 0x1769
leaq -0x6e(%rbp), %rdi
movq -0x20(%rbp), %rax
movsd (%rax), %xmm0
movsd 0x2917(%rip), %xmm2     # 0x4020
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rax
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
andq %rdx, %rax
orq %rax, %rcx
xorl %r9d, %r9d
movl %r9d, %esi
movq %rcx, %rdx
movl %r9d, %r8d
callq 0x19e0
movq %rax, %xmm0
movaps 0x28fc(%rip), %xmm1     # 0x4040
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x2900(%rip), %xmm1     # 0x4050
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x20(%rbp), %rax
movsd %xmm0, (%rax)
jmp 0x179a
movq 0x4888(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
leaq 0x29d3(%rip), %rsi      # 0x414d
leaq 0x291e(%rip), %rdx      # 0x409f
leaq 0x2a33(%rip), %rcx      # 0x41bb
movl $0x28, %r8d
movb $0x0, %al
callq 0x1100
callq 0x1060
jmp 0x179c
callq 0x1070
cmpl $0x0, (%rax)
je 0x17df
jmp 0x17a8
callq 0x1070
cmpl $0x0, (%rax)
je 0x17cd
leaq 0x2a09(%rip), %rdi      # 0x41c2
movb $0x0, %al
callq 0x1b60
callq 0x1070
movl $0x0, (%rax)
jmp 0x17db
leaq 0x29ee(%rip), %rdi      # 0x41c2
movb $0x0, %al
callq 0x1db0
jmp 0x17dd
jmp 0x17f1
movl $0x0, -0x4(%rbp)
jmp 0x17f8
movl $0x1, -0x4(%rbp)
jmp 0x17f8
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)