// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0x1843
movq -0x8(%rbp), %rsi
leaq 0x1cd8(%rip), %rdi      # 0x34b6
callq 0x10c0
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
callq 0x24f0
movq -0x8(%rbp), %rsi
leaq 0x1cc1(%rip), %rdi      # 0x34bf
callq 0x10c0
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
callq 0x24f0
movq -0x8(%rbp), %rsi
leaq 0x1a74(%rip), %rdi      # 0x3292
callq 0x10c0
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rsi
callq 0x24f0
movq -0x8(%rbp), %rsi
leaq 0x1c8e(%rip), %rdi      # 0x34cc
callq 0x10c0
jmp 0x1845
movq -0x10(%rbp), %rdx
leaq 0x38d8(%rip), %rdi      # 0x5128
leaq 0x38d9(%rip), %rsi      # 0x5130
callq 0x11b0
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
jle 0x1a30
movq 0x38b7(%rip), %rax      # 0x5128
movq -0x68(%rbp), %rcx
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
jne 0x189d
movq 0x389f(%rip), %rax      # 0x5128
movq -0x68(%rbp), %rcx
movq %rcx, %rdx
addq $-0x1, %rdx
movq %rdx, -0x68(%rbp)
movb $0x0, -0x1(%rax,%rcx)
movq 0x3884(%rip), %rdi      # 0x5128
leaq -0x60(%rbp), %rsi
callq 0x2390
cmpq $0x0, %rax
jne 0x18b8
jmp 0x1a30
movq $0x0, -0x80(%rbp)
movq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2470
cmpl $0x0, %eax
je 0x18d7
jmp 0x1845
leaq -0x80(%rbp), %rdi
callq 0x1030
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
jne 0x18fd
movl $0x1, %edi
leaq 0x1be1(%rip), %rsi      # 0x34d7
movb $0x0, %al
callq 0x1180
movq -0x80(%rbp), %rdx
movq 0x3810(%rip), %rsi      # 0x5118
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovgel %ecx, %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
addq 0x37fe(%rip), %rax      # 0x5120
movq %rax, 0x37f7(%rip)      # 0x5120
movl -0x6c(%rbp), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rax
movl 0x14(%rax), %edx
addl $0x76c, %edx            # imm = 0x76C
movq -0x78(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movq -0x78(%rbp), %rax
movl 0xc(%rax), %r8d
movq -0x78(%rbp), %rax
movl 0x8(%rax), %r9d
movq -0x78(%rbp), %rax
movl 0x4(%rax), %eax
leaq 0x1b5e(%rip), %rsi      # 0x34e1
movl %eax, (%rsp)
movb $0x0, %al
callq 0x1130
cmpl $0x0, -0x6c(%rbp)
je 0x19a3
movq -0x8(%rbp), %rsi
leaq 0x18f7(%rip), %rdi      # 0x3295
callq 0x10c0
movq -0x50(%rbp), %rax
cmpb $0x0, (%rax)
je 0x19f8
movq -0x8(%rbp), %rsi
leaq 0x1b49(%rip), %rdi      # 0x3500
callq 0x10c0
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x24f0
movq -0x8(%rbp), %rsi
leaq 0x18be(%rip), %rdi      # 0x3292
callq 0x10c0
movq -0x58(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x24f0
movq -0x8(%rbp), %rsi
leaq 0x1b19(%rip), %rdi      # 0x350a
callq 0x10c0
jmp 0x1a05
movq -0x58(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x24f0
cmpl $0x0, -0x6c(%rbp)
je 0x1a1b
movq -0x8(%rbp), %rsi
leaq 0x188d(%rip), %rdi      # 0x32a3
callq 0x10c0
movq -0x8(%rbp), %rsi
leaq 0x1a43(%rip), %rdi      # 0x3469
callq 0x10c0
jmp 0x1845
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)