// File: /workspace/github_c_makefile_star2_O2/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 0x16ea
leaq 0x1e3e(%rip), %rdi      # 0x34d2
movq %r15, %rsi
callq 0x10b0
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x1e09
leaq 0x1e2d(%rip), %rdi      # 0x34db
movq %r15, %rsi
callq 0x10b0
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x1e09
leaq 0x1be6(%rip), %rdi      # 0x32ae
movq %r15, %rsi
callq 0x10b0
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x1e09
leaq 0x1e06(%rip), %rdi      # 0x34e8
movq %r15, %rsi
callq 0x10b0
movq %rbx, 0x18(%rsp)
leaq 0x3a22(%rip), %rbp      # 0x5118
leaq 0x3a23(%rip), %r13      # 0x5120
leaq 0x20(%rsp), %rbx
movq %r14, 0x10(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x11a0
testq %rax, %rax
jle 0x188c
movq 0x39f3(%rip), %rdi      # 0x5118
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x1738
movb $0x0, -0x1(%rdi,%rax)
movq 0x39e0(%rip), %rdi      # 0x5118
movq %rbx, %rsi
callq 0x1d51
testq %rax, %rax
je 0x188c
andq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1dad
testl %eax, %eax
jne 0x1707
movq %rbx, %r14
movq %r13, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1030
testq %rax, %rax
je 0x189b
movq 0x8(%rsp), %r12
movq 0x3981(%rip), %r13      # 0x5108
xorl %ecx, %ecx
cmpq %r13, %r12
setge %cl
addq %rcx, 0x397a(%rip)      # 0x5110
movq %rcx, %xmm0
shufpd $0x2, 0x186c(%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 0x1d1f(%rip), %rsi      # 0x34fd
xorl %eax, %eax
callq 0x1120
cmpq %r13, %r12
jl 0x17f9
leaq 0x1ac0(%rip), %rdi      # 0x32b1
movq %r15, %rsi
callq 0x10b0
movq 0x30(%rsp), %rax
cmpb $0x0, (%rax)
je 0x184c
leaq 0x1d12(%rip), %rdi      # 0x351c
movq %r15, %rsi
callq 0x10b0
movq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x1e09
leaq 0x1a88(%rip), %rdi      # 0x32ae
movq %r15, %rsi
callq 0x10b0
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x1e09
leaq 0x1ce4(%rip), %rdi      # 0x3526
movq %r15, %rsi
callq 0x10b0
jmp 0x1859
movq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x1e09
cmpq %r13, %r12
jl 0x186d
leaq 0x1a5a(%rip), %rdi      # 0x32bf
movq %r15, %rsi
callq 0x10b0
leaq 0x1c11(%rip), %rdi      # 0x3485
movq %r15, %rsi
callq 0x10b0
movq %rbx, %r13
movq %r14, %rbx
movq 0x10(%rsp), %r14
jmp 0x1707
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c51(%rip), %rsi      # 0x34f3
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x1170