// File: /workspace/github_c_makefile_star2_O2/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 0x163f
movq 0x29f6(%rip), %r15      # 0x3fd8
movq (%r15), %rsi
leaq 0xc54(%rip), %rdi       # 0x2240
callq 0x10b0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1d8d
movq (%r15), %rsi
leaq 0xbb7(%rip), %rdi       # 0x21bd
callq 0x10b0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1d8d
movq (%r15), %rsi
leaq 0xbb9(%rip), %rdi       # 0x21d9
callq 0x10b0
movq (%rbx), %rdi
movq (%r15), %rsi
callq 0x1d8d
movq (%r15), %rsi
leaq 0xc0f(%rip), %rdi       # 0x2249
callq 0x10b0
movq %rbx, 0x18(%rsp)
leaq 0x2ad5(%rip), %rbp      # 0x4120
leaq 0x2ad6(%rip), %r12      # 0x4128
leaq 0x20(%rsp), %rbx
movq %r14, 0x10(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jle 0x1810
movq 0x2aa6(%rip), %rdi      # 0x4120
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x168d
movb $0x0, -0x1(%rdi,%rax)
movq 0x2a93(%rip), %rdi      # 0x4120
movq %rbx, %rsi
callq 0x1cd5
testq %rax, %rax
je 0x1810
andq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1d31
testl %eax, %eax
jne 0x165c
movq %rbx, %r14
movq %r12, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1030
testq %rax, %rax
je 0x181f
movq 0x8(%rsp), %r15
movq 0x2a2c(%rip), %r12      # 0x4108
xorl %ecx, %ecx
cmpq %r12, %r15
setge %cl
movq %rcx, %xmm0
addq %rcx, 0x2a28(%rip)      # 0x4118
shufpd $0x2, 0x917(%rip), %xmm0 # xmm0 = xmm0[0],mem[1]
movq 0x18(%rsp), %rcx
movdqu 0x8(%rcx), %xmm1
paddq %xmm0, %xmm1
movdqu %xmm1, 0x8(%rcx)
movq 0x28c5(%rip), %rcx      # 0x3fd8
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 0xb24(%rip), %rsi       # 0x225e
xorl %eax, %eax
callq 0x1120
cmpq %r12, %r15
jl 0x175c
movq 0x288b(%rip), %rax      # 0x3fd8
movq (%rax), %rsi
leaq 0xa85(%rip), %rdi       # 0x21dc
callq 0x10b0
movq 0x30(%rsp), %rax
cmpb $0x0, (%rax)
je 0x17bb
movq 0x286b(%rip), %r13      # 0x3fd8
movq (%r13), %rsi
leaq 0xb05(%rip), %rdi       # 0x227d
callq 0x10b0
movq 0x30(%rsp), %rdi
movq (%r13), %rsi
callq 0x1d8d
movq (%r13), %rsi
leaq 0xa43(%rip), %rdi       # 0x21d9
callq 0x10b0
movq 0x28(%rsp), %rdi
movq (%r13), %rsi
callq 0x1d8d
movq (%r13), %rsi
leaq 0xad3(%rip), %rdi       # 0x2287
callq 0x10b0
jmp 0x17cf
movq 0x28(%rsp), %rdi
movq 0x2811(%rip), %rax      # 0x3fd8
movq (%rax), %rsi
callq 0x1d8d
cmpq %r12, %r15
jl 0x17ea
movq 0x27fd(%rip), %rax      # 0x3fd8
movq (%rax), %rsi
leaq 0xa05(%rip), %rdi       # 0x21ea
callq 0x10b0
movq 0x27e7(%rip), %rax      # 0x3fd8
movq (%rax), %rsi
leaq 0x920(%rip), %rdi       # 0x211b
callq 0x10b0
movq %rbx, %r12
movq %r14, %rbx
movq 0x10(%rsp), %r14
jmp 0x165c
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa2e(%rip), %rsi       # 0x2254
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x1170