// File: /workspace/github_c_makefile_star2_O0/dxwc[P]sfeed/sfeed_gph.c
// Function: printfeed
static void
printfeed(FILE *fpitems, FILE *fpin, struct feed *f)
{
	char *fields[FieldLast];
	ssize_t linelen;
	unsigned int isnew;
	struct tm *tm;
	time_t parsedtime;

	if (f->name[0])
		fprintf(fpitems, "t%s\n\n", f->name);

	while ((linelen = getline(&line, &linesize, fpin)) > 0) {
		if (line[linelen - 1] == '\n')
			line[--linelen] = '\0';
		if (!parseline(line, fields))
			break;

		parsedtime = 0;
		if (strtotime(fields[FieldUnixTimestamp], &parsedtime))
			continue;
		if (!(tm = localtime(&parsedtime)))
			err(1, "localtime");

		isnew = (parsedtime >= comparetime) ? 1 : 0;
		totalnew += isnew;
		f->totalnew += isnew;
		f->total++;

		if (fields[FieldLink][0]) {
			fputs("[h|", fpitems);
			fprintf(fpitems, "%04d-%02d-%02d %02d:%02d ",
			        tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
			        tm->tm_hour, tm->tm_min);
			gphlink(fpitems, fields[FieldTitle], strlen(fields[FieldTitle]));
			fputs("|URL:", fpitems);
			gphlink(fpitems, fields[FieldLink], strlen(fields[FieldLink]));
			fputs("|server|port]\n", fpitems);
		} else {
			fprintf(fpitems, "%04d-%02d-%02d %02d:%02d %s\n",
			        tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
			        tm->tm_hour, tm->tm_min, fields[FieldTitle]);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0x184c
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
leaq 0x183a(%rip), %rsi      # 0x307f
movb $0x0, %al
callq 0x1140
jmp 0x184e
movq -0x10(%rbp), %rdx
leaq 0x38d7(%rip), %rdi      # 0x5130
leaq 0x38d8(%rip), %rsi      # 0x5138
callq 0x11c0
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
jle 0x1a92
movq 0x38b6(%rip), %rax      # 0x5130
movq -0x68(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x18a6
movq 0x389e(%rip), %rax      # 0x5130
movq -0x68(%rbp), %rcx
movq %rcx, %rdx
addq $-0x1, %rdx
movq %rdx, -0x68(%rbp)
movb $0x0, -0x1(%rax,%rcx)
movq 0x3883(%rip), %rdi      # 0x5130
leaq -0x60(%rbp), %rsi
callq 0x23f0
cmpq $0x0, %rax
jne 0x18c1
jmp 0x1a92
movq $0x0, -0x80(%rbp)
movq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x24d0
cmpl $0x0, %eax
je 0x18e0
jmp 0x184e
leaq -0x80(%rbp), %rdi
callq 0x1040
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
jne 0x1906
movl $0x1, %edi
leaq 0x1786(%rip), %rsi      # 0x3085
movb $0x0, %al
callq 0x1190
movq -0x80(%rbp), %rdx
movq 0x3817(%rip), %rsi      # 0x5128
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovgel %ecx, %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
addq 0x3815(%rip), %rax      # 0x5140
movq %rax, 0x380e(%rip)      # 0x5140
movl -0x6c(%rbp), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x50(%rbp), %rax
cmpb $0x0, (%rax)
je 0x1a3f
movq -0x8(%rbp), %rsi
leaq 0x1724(%rip), %rdi      # 0x308f
callq 0x10d0
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rax
movl 0x14(%rax), %edx
addl $0x76c, %edx            # imm = 0x76C
movq -0x78(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movq -0x78(%rbp), %rax
movl 0xc(%rax), %r8d
movq -0x78(%rbp), %rax
movl 0x8(%rax), %r9d
movq -0x78(%rbp), %rax
movl 0x4(%rax), %eax
leaq 0x16ea(%rip), %rsi      # 0x3093
movl %eax, (%rsp)
movb $0x0, %al
callq 0x1140
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x58(%rbp), %rdi
callq 0x1090
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %rax, %rdx
callq 0x12f0
movq -0x8(%rbp), %rsi
leaq 0x16ba(%rip), %rdi      # 0x30ad
callq 0x10d0
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x50(%rbp), %rdi
callq 0x1090
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rax, %rdx
callq 0x12f0
movq -0x8(%rbp), %rsi
leaq 0x1638(%rip), %rdi      # 0x3070
callq 0x10d0
jmp 0x1a8d
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rax
movl 0x14(%rax), %edx
addl $0x76c, %edx            # imm = 0x76C
movq -0x78(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movq -0x78(%rbp), %rax
movl 0xc(%rax), %r8d
movq -0x78(%rbp), %rax
movl 0x8(%rax), %r9d
movq -0x78(%rbp), %rax
movl 0x4(%rax), %r10d
movq -0x58(%rbp), %rax
leaq 0x1636(%rip), %rsi      # 0x30b3
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0x1140
jmp 0x184e
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax,%rax)