// File: /workspace/github_c_makefile_star2_O3/dxwc[P]sfeed/sfeed_frames.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;

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

	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++;

		fprintf(fpitems, "%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>", fpitems);
		if (fields[FieldLink][0]) {
			fputs("<a href=\"", fpitems);
			xmlencode(fields[FieldLink], fpitems);
			fputs("\">", fpitems);
			xmlencode(fields[FieldTitle], fpitems);
			fputs("</a>", fpitems);
		} else {
			xmlencode(fields[FieldTitle], fpitems);
		}
		if (isnew)
			fputs("</u></b>", fpitems);
		fputs("\n", fpitems);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %rax
cmpb $0x0, (%rax)
je 0x1735
leaq 0x1df3(%rip), %rdi      # 0x34d2
movq %r15, %rsi
callq 0x10b0
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x1f72
leaq 0x1de2(%rip), %rdi      # 0x34db
movq %r15, %rsi
callq 0x10b0
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x1f72
leaq 0x1b9b(%rip), %rdi      # 0x32ae
movq %r15, %rsi
callq 0x10b0
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x1f72
leaq 0x1dbb(%rip), %rdi      # 0x34e8
movq %r15, %rsi
callq 0x10b0
movq %rbx, 0x18(%rsp)
leaq 0x39d7(%rip), %rdi      # 0x5118
leaq 0x39d8(%rip), %rsi      # 0x5120
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jle 0x1906
leaq 0x20(%rsp), %r12
leaq 0x8(%rsp), %rbp
leaq 0x39ae(%rip), %rbx      # 0x5118
leaq 0x39af(%rip), %r13      # 0x5120
movq %r14, 0x10(%rsp)
movq 0x399b(%rip), %rdi      # 0x5118
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x1790
movb $0x0, -0x1(%rdi,%rax)
movq 0x3988(%rip), %rdi      # 0x5118
movq %r12, %rsi
callq 0x1ded
testq %rax, %rax
je 0x1906
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x1f0f
testl %eax, %eax
jne 0x18ef
movq %rbx, %r14
movq %r12, %r13
movq %rbp, %rbx
movq %rbp, %rdi
callq 0x1030
testq %rax, %rax
je 0x1915
movq 0x8(%rsp), %rbp
movq 0x3923(%rip), %r12      # 0x5108
xorl %ecx, %ecx
cmpq %r12, %rbp
setge %cl
addq %rcx, 0x391c(%rip)      # 0x5110
movq %rcx, %xmm0
shufpd $0x2, 0x180e(%rip), %xmm0 # xmm0 = xmm0[0],mem[1]
movq 0x18(%rsp), %rcx
movdqu 0x8(%rcx), %xmm1
paddq %xmm0, %xmm1
movdqu %xmm1, 0x8(%rcx)
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)
movq %r15, %rdi
leaq 0x1cc1(%rip), %rsi      # 0x34fd
xorl %eax, %eax
callq 0x1120
cmpq %r12, %rbp
jl 0x1857
leaq 0x1a62(%rip), %rdi      # 0x32b1
movq %r15, %rsi
callq 0x10b0
movq 0x30(%rsp), %rax
cmpb $0x0, (%rax)
je 0x18aa
leaq 0x1cb4(%rip), %rdi      # 0x351c
movq %r15, %rsi
callq 0x10b0
movq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x1f72
leaq 0x1a2a(%rip), %rdi      # 0x32ae
movq %r15, %rsi
callq 0x10b0
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x1f72
leaq 0x1c86(%rip), %rdi      # 0x3526
movq %r15, %rsi
callq 0x10b0
jmp 0x18b7
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x1f72
cmpq %r12, %rbp
jl 0x18cb
leaq 0x19fc(%rip), %rdi      # 0x32bf
movq %r15, %rsi
callq 0x10b0
leaq 0x1bb3(%rip), %rdi      # 0x3485
movq %r15, %rsi
callq 0x10b0
movq %r13, %r12
movq %rbx, %rbp
movq %r14, %rbx
movq 0x10(%rsp), %r14
leaq 0x3831(%rip), %r13      # 0x5120
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jg 0x1776
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1bd7(%rip), %rsi      # 0x34f3
movl $0x1, %edi
xorl %eax, %eax
callq 0x1170