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

	if (f->name[0]) {
		fputs("<h2 id=\"", stdout);
		xmlencode(f->name, stdout);
		fputs("\"><a href=\"#", stdout);
		xmlencode(f->name, stdout);
		fputs("\">", stdout);
		xmlencode(f->name, stdout);
		fputs("</a></h2>\n", stdout);
	}

	while ((linelen = getline(&line, &linesize, fp)) > 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++;

		fprintf(stdout, "%04d-%02d-%02d&nbsp;%02d:%02d ",
		        tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
		        tm->tm_hour, tm->tm_min);
		if (isnew)
			fputs("<b><u>", stdout);
		if (fields[FieldLink][0]) {
			fputs("<a href=\"", stdout);
			xmlencode(fields[FieldLink], stdout);
			fputs("\">", stdout);
			xmlencode(fields[FieldTitle], stdout);
			fputs("</a>", stdout);
		} else {
			xmlencode(fields[FieldTitle], stdout);
		}
		if (isnew)
			fputs("</u></b>", stdout);
		fputs("\n", stdout);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
cmpb $0x0, (%rax)
je 0x167e
movq 0x39b7(%rip), %r15      # 0x4fd8
movq (%r15), %rsi
leaq 0x1c15(%rip), %rdi      # 0x3240
callq 0x10b0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1ede
movq (%r15), %rsi
leaq 0x1b78(%rip), %rdi      # 0x31bd
callq 0x10b0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1ede
movq (%r15), %rsi
leaq 0x1b7a(%rip), %rdi      # 0x31d9
callq 0x10b0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1ede
movq (%r15), %rsi
leaq 0x1bd0(%rip), %rdi      # 0x3249
callq 0x10b0
movq %rbx, 0x18(%rsp)
leaq 0x3a96(%rip), %rdi      # 0x5120
leaq 0x3a97(%rip), %rsi      # 0x5128
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jle 0x1870
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %rbp
leaq 0x3a6d(%rip), %rbx      # 0x5120
leaq 0x3a6e(%rip), %r15      # 0x5128
movq 0x3a5f(%rip), %rdi      # 0x5120
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x16d4
movb $0x0, -0x1(%rdi,%rax)
movq 0x3a4c(%rip), %rdi      # 0x5120
movq %r12, %rsi
callq 0x1d59
testq %rax, %rax
je 0x1870
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x1e7b
testl %eax, %eax
jne 0x1859
movq %r14, %r15
movq %rbp, %rbx
movq %rbp, %rdi
callq 0x1030
testq %rax, %rax
je 0x187f
movq 0x10(%rsp), %r13
movq 0x39e2(%rip), %rbp      # 0x5108
xorl %ecx, %ecx
cmpq %rbp, %r13
setge %cl
movq %rcx, %xmm0
addq %rcx, 0x39de(%rip)      # 0x5118
shufpd $0x2, 0x18cd(%rip), %xmm0 # xmm0 = xmm0[0],mem[1]
movq 0x18(%rsp), %rcx
movdqu 0x8(%rcx), %xmm1
paddq %xmm0, %xmm1
movdqu %xmm1, 0x8(%rcx)
movq 0x387b(%rip), %rcx      # 0x4fd8
movq (%rcx), %rdi
movl 0x14(%rax), %edx
movl $0x76c, %ecx            # imm = 0x76C
addl %ecx, %edx
movl 0x10(%rax), %ecx
incl %ecx
movl 0xc(%rax), %r8d
movl 0x4(%rax), %esi
movl 0x8(%rax), %r9d
movl %esi, (%rsp)
leaq 0x1ada(%rip), %rsi      # 0x325e
xorl %eax, %eax
callq 0x1120
cmpq %rbp, %r13
jl 0x17a6
movq 0x3841(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
leaq 0x1a3b(%rip), %rdi      # 0x31dc
callq 0x10b0
movq 0x30(%rsp), %rax
cmpb $0x0, (%rax)
je 0x1800
movq 0x3821(%rip), %r14      # 0x4fd8
movq (%r14), %rsi
leaq 0x1abc(%rip), %rdi      # 0x327d
callq 0x10b0
movq 0x30(%rsp), %rdi
movq (%r14), %rsi
callq 0x1ede
movq (%r14), %rsi
leaq 0x19fc(%rip), %rdi      # 0x31d9
callq 0x10b0
movq 0x28(%rsp), %rdi
movq (%r14), %rsi
callq 0x1ede
movq (%r14), %rsi
leaq 0x1a8e(%rip), %rdi      # 0x3287
callq 0x10b0
jmp 0x1814
movq 0x28(%rsp), %rdi
movq 0x37cc(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
callq 0x1ede
cmpq %rbp, %r13
jl 0x182f
movq 0x37b8(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
leaq 0x19c0(%rip), %rdi      # 0x31ea
callq 0x10b0
movq 0x37a2(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
leaq 0x18db(%rip), %rdi      # 0x311b
callq 0x10b0
movq %rbx, %rbp
leaq 0x38d1(%rip), %rbx      # 0x5120
movq %r15, %r14
leaq 0x38cf(%rip), %r15      # 0x5128
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jg 0x16ba
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19ce(%rip), %rsi      # 0x3254
movl $0x1, %edi
xorl %eax, %eax
callq 0x1170
nop