// File: /workspace/github_c_makefile_star2_O1/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 0x1680
movq 0x39b5(%rip), %r15      # 0x4fd8
movq (%r15), %rsi
leaq 0x1bf7(%rip), %rdi      # 0x3224
callq 0x10c0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1e83
movq (%r15), %rsi
leaq 0x1b5a(%rip), %rdi      # 0x31a1
callq 0x10c0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1e83
movq (%r15), %rsi
leaq 0x1b5c(%rip), %rdi      # 0x31bd
callq 0x10c0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1e83
movq (%r15), %rsi
leaq 0x1bb2(%rip), %rdi      # 0x322d
callq 0x10c0
movq %rbx, 0x18(%rsp)
leaq 0x3a9c(%rip), %rdi      # 0x5128
leaq 0x3a9d(%rip), %rsi      # 0x5130
movq %r14, %rdx
callq 0x11b0
testq %rax, %rax
jle 0x185e
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %rbp
leaq 0x3a73(%rip), %rbx      # 0x5128
leaq 0x3a74(%rip), %r15      # 0x5130
movq 0x3a65(%rip), %rcx      # 0x5128
cmpb $0xa, -0x1(%rcx,%rax)
jne 0x16cf
movb $0x0, -0x1(%rcx,%rax)
movq 0x3a52(%rip), %rdi      # 0x5128
movq %r12, %rsi
callq 0x1d9b
testq %rax, %rax
je 0x185e
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x1e20
testl %eax, %eax
jne 0x1847
movq %r14, %r15
movq %rbp, %rbx
movq %rbp, %rdi
callq 0x1030
testq %rax, %rax
je 0x186d
movq 0x10(%rsp), %r13
movq 0x39e8(%rip), %rbp      # 0x5110
xorl %ecx, %ecx
cmpq %rbp, %r13
setge %cl
addq %rcx, 0x39e9(%rip)      # 0x5120
movq 0x18(%rsp), %rdx
addq %rcx, 0x8(%rdx)
incq 0x10(%rdx)
movq 0x388d(%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 0x1ad0(%rip), %rsi      # 0x3242
xorl %eax, %eax
callq 0x1130
cmpq %rbp, %r13
jl 0x1794
movq 0x3853(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
leaq 0x1a31(%rip), %rdi      # 0x31c0
callq 0x10c0
movq 0x30(%rsp), %rax
cmpb $0x0, (%rax)
je 0x17ee
movq 0x3833(%rip), %r14      # 0x4fd8
movq (%r14), %rsi
leaq 0x1ab2(%rip), %rdi      # 0x3261
callq 0x10c0
movq 0x30(%rsp), %rdi
movq (%r14), %rsi
callq 0x1e83
movq (%r14), %rsi
leaq 0x19f2(%rip), %rdi      # 0x31bd
callq 0x10c0
movq 0x28(%rsp), %rdi
movq (%r14), %rsi
callq 0x1e83
movq (%r14), %rsi
leaq 0x1a84(%rip), %rdi      # 0x326b
callq 0x10c0
jmp 0x1802
movq 0x28(%rsp), %rdi
movq 0x37de(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
callq 0x1e83
cmpq %rbp, %r13
jl 0x181d
movq 0x37ca(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
leaq 0x19b6(%rip), %rdi      # 0x31ce
callq 0x10c0
movq 0x37b4(%rip), %rax      # 0x4fd8
movq (%rax), %rsi
leaq 0x18d1(%rip), %rdi      # 0x30ff
callq 0x10c0
movq %rbx, %rbp
leaq 0x38eb(%rip), %rbx      # 0x5128
movq %r15, %r14
leaq 0x38e9(%rip), %r15      # 0x5130
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x11b0
testq %rax, %rax
jg 0x16bc
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19c4(%rip), %rsi      # 0x3238
movl $0x1, %edi
xorl %eax, %eax
callq 0x1180