// File: /workspace/github_c_makefile_star2_O0/dxwc[P]sfeed/sfeed_mbox.c
// Function: main
int
main(int argc, char *argv[])
{
	struct tm tm;
	time_t t;
	FILE *fp;
	char *name;
	int i;

	if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
		err(1, "pledge");

	if (!(user = getenv("USER")))
		user = "you";
	if (gethostname(host, sizeof(host)) == -1)
		err(1, "gethostname");
	if ((t = time(NULL)) == -1)
		err(1, "time");
	if (!gmtime_r(&t, &tm))
		errx(1, "gmtime_r: can't get current time");
	if (!strftime(mtimebuf, sizeof(mtimebuf), "%a %b %d %H:%M:%S %Y", &tm))
		errx(1, "strftime: can't format current time");

	if (argc == 1) {
		printfeed(stdin, "");
	} else {
		for (i = 1; i < argc; i++) {
			if (!(fp = fopen(argv[i], "r")))
				err(1, "fopen: %s", argv[i]);
			name = ((name = strrchr(argv[i], '/'))) ? name + 1 : argv[i];
			printfeed(fp, name);
			if (ferror(fp))
				err(1, "ferror: %s", argv[i]);
			fclose(fp);
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x1cd7(%rip), %rdi      # 0x3004
callq 0x1030
movq %rax, 0x3df7(%rip)      # 0x5130
cmpq $0x0, %rax
jne 0x134d
leaq 0x1cc3(%rip), %rax      # 0x3009
movq %rax, 0x3de3(%rip)      # 0x5130
leaq 0x3dec(%rip), %rdi      # 0x5140
movl $0x100, %esi            # imm = 0x100
callq 0x11e0
cmpl $-0x1, %eax
jne 0x1376
movl $0x1, %edi
leaq 0x1c9e(%rip), %rsi      # 0x300d
movb $0x0, %al
callq 0x1190
xorl %eax, %eax
movl %eax, %edi
callq 0x1170
movq %rax, -0x50(%rbp)
cmpq $-0x1, %rax
jne 0x139c
movl $0x1, %edi
leaq 0x1cd9(%rip), %rsi      # 0x306e
movb $0x0, %al
callq 0x1190
leaq -0x50(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x10e0
cmpq $0x0, %rax
jne 0x13c2
movl $0x1, %edi
leaq 0x1c5e(%rip), %rsi      # 0x3019
movb $0x0, %al
callq 0x1090
leaq 0x3e77(%rip), %rdi      # 0x5240
movl $0x20, %esi
leaq 0x1c65(%rip), %rdx      # 0x303a
leaq -0x48(%rbp), %rcx
callq 0x11a0
cmpq $0x0, %rax
jne 0x13f7
movl $0x1, %edi
leaq 0x1c5f(%rip), %rsi      # 0x304f
movb $0x0, %al
callq 0x1090
cmpl $0x1, -0x8(%rbp)
jne 0x1418
movq 0x3bdc(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x1da4(%rip), %rsi      # 0x31b2
callq 0x1510
jmp 0x1505
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x1503
movq -0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1c35(%rip), %rsi      # 0x3073
callq 0x11b0
movq %rax, -0x58(%rbp)
cmpq $0x0, %rax
jne 0x146c
movq -0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movl $0x1, %edi
leaq 0x1c10(%rip), %rsi      # 0x3075
movb $0x0, %al
callq 0x1190
movq -0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x2f, %esi
callq 0x10d0
movq %rax, -0x60(%rbp)
cmpq $0x0, %rax
je 0x149a
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x14aa
movq -0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x1510
movq -0x58(%rbp), %rdi
callq 0x1060
cmpl $0x0, %eax
je 0x14ec
movq -0x10(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movl $0x1, %edi
leaq 0x1b9a(%rip), %rsi      # 0x307f
movb $0x0, %al
callq 0x1190
movq -0x58(%rbp), %rdi
callq 0x1070
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x141f
jmp 0x1505
xorl %eax, %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)