// File: /workspace/github_c_makefile_star2_O1/lyda[P]tz/zdump.c
// Function: main
int
main(argc, argv)
int	argc;
char *	argv[];
{
	register int		i;
	register int		c;
	register int		vflag;
	register char *		cutarg;
	register long		cutloyear = ZDUMP_LO_YEAR;
	register long		cuthiyear = ZDUMP_HI_YEAR;
	register time_t		cutlotime;
	register time_t		cuthitime;
	register char **	fakeenv;
	time_t			now;
	time_t			t;
	time_t			newt;
	struct tm		tm;
	struct tm		newtm;
	register struct tm *	tmp;
	register struct tm *	newtmp;

	INITIALIZE(cutlotime);
	INITIALIZE(cuthitime);
#if HAVE_GETTEXT
	(void) setlocale(LC_ALL, "");
#ifdef TZ_DOMAINDIR
	(void) bindtextdomain(TZ_DOMAIN, TZ_DOMAINDIR);
#endif /* defined TEXTDOMAINDIR */
	(void) textdomain(TZ_DOMAIN);
#endif /* HAVE_GETTEXT */
	progname = argv[0];
	for (i = 1; i < argc; ++i)
		if (strcmp(argv[i], "--version") == 0) {
			(void) printf("%s\n", elsieid);
			exit(EXIT_SUCCESS);
		} else if (strcmp(argv[i], "--help") == 0) {
			usage(stdout, EXIT_SUCCESS);
		}
	vflag = 0;
	cutarg = NULL;
	while ((c = getopt(argc, argv, "c:v")) == 'c' || c == 'v')
		if (c == 'v')
			vflag = 1;
		else	cutarg = optarg;
	if ((c != EOF && c != -1) ||
		(optind == argc - 1 && strcmp(argv[optind], "=") == 0)) {
			usage(stderr, EXIT_FAILURE);
	}
	if (vflag) {
		if (cutarg != NULL) {
			long	lo;
			long	hi;
			char	dummy;

			if (sscanf(cutarg, "%ld%c", &hi, &dummy) == 1) {
				cuthiyear = hi;
			} else if (sscanf(cutarg, "%ld,%ld%c",
				&lo, &hi, &dummy) == 2) {
					cutloyear = lo;
					cuthiyear = hi;
			} else {
(void) fprintf(stderr, _("%s: wild -c argument %s\n"),
					progname, cutarg);
				exit(EXIT_FAILURE);
			}
		}
		setabsolutes();
		cutlotime = yeartot(cutloyear);
		cuthitime = yeartot(cuthiyear);
	}
	(void) time(&now);
	longest = 0;
	for (i = optind; i < argc; ++i)
		if (strlen(argv[i]) > longest)
			longest = strlen(argv[i]);
	{
		register int	from;
		register int	to;

		for (i = 0; environ[i] != NULL; ++i)
			continue;
		fakeenv = (char **) malloc((size_t) ((i + 2) *
			sizeof *fakeenv));
		if (fakeenv == NULL ||
			(fakeenv[0] = (char *) malloc(longest + 4)) == NULL) {
					(void) perror(progname);
					exit(EXIT_FAILURE);
		}
		to = 0;
		(void) strcpy(fakeenv[to++], "TZ=");
		for (from = 0; environ[from] != NULL; ++from)
			if (strncmp(environ[from], "TZ=", 3) != 0)
				fakeenv[to++] = environ[from];
		fakeenv[to] = NULL;
		environ = fakeenv;
	}
	for (i = optind; i < argc; ++i) {
		static char	buf[MAX_STRING_LENGTH];

		(void) strcpy(&fakeenv[0][3], argv[i]);
		if (!vflag) {
			show(argv[i], now, FALSE);
			continue;
		}
		warned = FALSE;
		t = absolute_min_time;
		show(argv[i], t, TRUE);
		t += SECSPERHOUR * HOURSPERDAY;
		show(argv[i], t, TRUE);
		if (t < cutlotime)
			t = cutlotime;
		tmp = my_localtime(&t);
		if (tmp != NULL) {
			tm = *tmp;
			(void) strncpy(buf, abbr(&tm), (sizeof buf) - 1);
		}
		for ( ; ; ) {
			if (t >= cuthitime || t >= cuthitime - SECSPERHOUR * 12)
				break;
			newt = t + SECSPERHOUR * 12;
			newtmp = localtime(&newt);
			if (newtmp != NULL)
				newtm = *newtmp;
			if ((tmp == NULL || newtmp == NULL) ? (tmp != newtmp) :
				(delta(&newtm, &tm) != (newt - t) ||
				newtm.tm_isdst != tm.tm_isdst ||
				strcmp(abbr(&newtm), buf) != 0)) {
					newt = hunt(argv[i], t, newt);
					newtmp = localtime(&newt);
					if (newtmp != NULL) {
						newtm = *newtmp;
						(void) strncpy(buf,
							abbr(&newtm),
							(sizeof buf) - 1);
					}
			}
			t = newt;
			tm = newtm;
			tmp = newtmp;
		}
		t = absolute_max_time;
		t -= SECSPERHOUR * HOURSPERDAY;
		show(argv[i], t, TRUE);
		t += SECSPERHOUR * HOURSPERDAY;
		show(argv[i], t, TRUE);
	}
	if (fflush(stdout) || ferror(stdout)) {
		(void) fprintf(stderr, "%s: ", progname);
		(void) perror(_("Error writing to standard output"));
		exit(EXIT_FAILURE);
	}
	exit(EXIT_SUCCESS);
	/* If exit fails to exit... */
	return EXIT_FAILURE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
movq %rsi, 0x18(%rsp)
movq (%rsi), %rbx
movq %rbx, 0x5dc4(%rip)      # 0x8180
movq %rdi, 0x30(%rsp)
cmpl $0x1, %edi
jle 0x2415
movl 0x30(%rsp), %r13d
movl $0x1, %ebp
leaq 0x3c2d(%rip), %r14      # 0x6004
leaq 0x3c30(%rip), %r15      # 0x600e
movq 0x18(%rsp), %rax
movq (%rax,%rbp,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2150
testl %eax, %eax
je 0x2c7a
movq %r12, %rdi
movq %r15, %rsi
callq 0x2150
testl %eax, %eax
je 0x2c88
incq %rbp
cmpq %rbp, %r13
jne 0x23de
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %ebx, %ebx
leaq 0x3bf1(%rip), %r14      # 0x6015
movq 0x5ba5(%rip), %r15      # 0x7fd0
movq 0x18(%rsp), %rbp
movq 0x30(%rsp), %r12
movl %r12d, %edi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2200
cmpl $0x63, %eax
jne 0x244d
movq (%r15), %rbx
jmp 0x2435
cmpl $0x76, %eax
jne 0x245c
movl $0x0, 0xc(%rsp)
jmp 0x2435
cmpl $-0x1, %eax
jne 0x2489
movq 0x5b60(%rip), %r15      # 0x7fc8
movslq (%r15), %rax
leal -0x1(%r12), %ecx
cmpl %ecx, %eax
jne 0x24b0
movq (%rbp,%rax,8), %rdi
leaq 0x3bbe(%rip), %rsi      # 0x603e
callq 0x2150
testl %eax, %eax
jne 0x24b0
movq 0x5b68(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq 0x5ce6(%rip), %rcx      # 0x8180
leaq 0x3bc5(%rip), %rsi      # 0x6066
movq %rcx, %rdx
xorl %eax, %eax
callq 0x2160
jmp 0x261f
testb $0x1, 0xc(%rsp)
je 0x24ce
movq $0x0, 0x40(%rsp)
movq $0x0, 0x20(%rsp)
jmp 0x2575
testq %rbx, %rbx
jne 0x24e1
movl $0x9c4, %ebx            # imm = 0x9C4
movq $-0x1f4, %rdi           # imm = 0xFE0C
jmp 0x2550
leaq 0x3b35(%rip), %rsi      # 0x601d
leaq 0x90(%rsp), %rdx
leaq 0xe0(%rsp), %rcx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq $-0x1f4, %rdi           # imm = 0xFE0C
cmpl $0x1, %eax
je 0x2548
leaq 0x3b04(%rip), %rsi      # 0x6019
leaq 0x160(%rsp), %rdx
leaq 0x90(%rsp), %rcx
leaq 0xe0(%rsp), %r8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
cmpl $0x2, %eax
jne 0x2c5a
movq 0x160(%rsp), %rdi
movq 0x90(%rsp), %rbx
movb $0x1, %al
movb %al, 0x6048(%rip)       # 0x85a0
movb %al, 0x603a(%rip)       # 0x8598
callq 0x2ca8
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
callq 0x2ca8
movq %rax, 0x20(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x2170
movq $0x0, 0x5bfb(%rip) # 0x8188
movslq (%r15), %rax
movq %rax, %r14
cmpl %r12d, %eax
jge 0x25c2
movslq %r12d, %rbx
xorl %r12d, %r12d
movq %r14, %r15
movq (%rbp,%r15,8), %rdi
callq 0x20c0
cmpq %r12, %rax
jbe 0x25ba
movq %rax, 0x5bd1(%rip)      # 0x8188
movq %rax, %r12
incq %r15
cmpq %r15, %rbx
jne 0x25a1
movq 0x5a17(%rip), %r12      # 0x7fe0
movq (%r12), %r13
movl $0x8, %edi
cmpq $0x0, -0x8(%r13,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x25d2
movabsq $0x7fffffff8, %rax      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x2180
testq %rax, %rax
je 0x2613
movq %rax, %rbx
movq %r14, %r15
movq 0x5b86(%rip), %rdi      # 0x8188
addq $0x4, %rdi
callq 0x2180
movq %rax, (%rbx)
testq %rax, %rax
jne 0x2629
movq 0x5b66(%rip), %rdi      # 0x8180
callq 0x21f0
movl $0x1, %edi
callq 0x2220
movq %rbx, 0x48(%rsp)
movl $0x3d5a54, (%rax)       # imm = 0x3D5A54
movq (%r13), %rbx
movl $0x1, %eax
testq %rbx, %rbx
je 0x268c
addq $0x8, %r13
movl $0x1, %ebp
leaq 0x39ea(%rip), %r15      # 0x603c
movl $0x3, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2080
testl %eax, %eax
je 0x2674
movslq %ebp, %rax
incl %ebp
movq 0x48(%rsp), %rcx
movq %rbx, (%rcx,%rax,8)
movq (%r13), %rbx
addq $0x8, %r13
testq %rbx, %rbx
jne 0x2652
movslq %ebp, %rax
movq 0x18(%rsp), %rbp
movq %r14, %r15
movq 0x48(%rsp), %rbx
movq $0x0, (%rbx,%rax,8)
movq %rbx, (%r12)
cmpl 0x30(%rsp), %r15d
jge 0x2c09
movabsq $0x7ffffffffffeae7f, %rax # imm = 0x7FFFFFFFFFFEAE7F
movq 0x20(%rsp), %rdx
leaq -0xa8c0(%rdx), %rcx
cmpq %rcx, %rdx
cmovlq %rdx, %rcx
movq %rcx, 0x20(%rsp)
addq $0x15181, %rax          # imm = 0x15181
movq %rax, 0xd0(%rsp)
movl $0x15180, %r14d         # imm = 0x15180
leaq 0x38(%rsp), %r12
movq (%rbx), %rdi
addq $0x3, %rdi
movq (%rbp,%r15,8), %rsi
callq 0x2090
testb $0x1, 0xc(%rsp)
je 0x2714
movq (%rbp,%r15,8), %rdi
movq 0xd8(%rsp), %rsi
xorl %edx, %edx
callq 0x2dcc
jmp 0x2bfb
movb $0x0, 0x5e75(%rip)      # 0x8590
cmpb $0x0, 0x5e76(%rip)      # 0x8598
movl $0x0, %esi
cmovneq 0xd0(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rbp,%r15,8), %rdi
movl $0x1, %edx
callq 0x2dcc
movq (%rsp), %rsi
addq %r14, %rsi
movq %rsi, (%rsp)
movq (%rbp,%r15,8), %rdi
movl $0x1, %edx
callq 0x2dcc
movq 0x40(%rsp), %rax
cmpq %rax, (%rsp)
jge 0x2771
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
callq 0x437f
movq %rax, %r14
testq %rax, %rax
je 0x27f1
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movaps %xmm2, 0x140(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0x150(%rsp)
movaps %xmm1, 0x130(%rsp)
movaps %xmm0, 0x120(%rsp)
movl 0x140(%rsp), %eax
leaq 0x5de0(%rip), %rsi      # 0x85a1
cmpq $0x1, %rax
ja 0x27e0
leaq 0x5992(%rip), %rcx      # 0x8160
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x5dc5(%rip), %rax      # 0x85a1
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x59a4(%rip), %rdi      # 0x8190
callq 0x2070
movq (%rsp), %rax
cmpq 0x20(%rsp), %rax
jge 0x2ba7
addq $0xa8c0, %rax           # imm = 0xA8C0
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x437f
movq %rax, %rbx
testq %rax, %rax
je 0x2843
movq 0x30(%rbx), %rax
movq %rax, 0x80(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0x70(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
testq %rbx, %rbx
setne %al
testq %r14, %r14
setne %cl
testb %al, %cl
jne 0x285d
cmpq %rbx, %r14
jne 0x28c3
jmp 0x2b5f
leaq 0x50(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x303f
movq 0x10(%rsp), %rcx
subq (%rsp), %rcx
cmpq %rcx, %rax
jne 0x28c3
movl 0x70(%rsp), %eax
cmpl 0x140(%rsp), %eax
jne 0x28c3
leaq 0x5d10(%rip), %rdi      # 0x85a1
cmpl $0x1, %eax
ja 0x28af
leaq 0x58c3(%rip), %rcx      # 0x8160
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
leaq 0x5cf6(%rip), %rax      # 0x85a1
cmoveq %rax, %rdi
leaq 0x58da(%rip), %rsi      # 0x8190
callq 0x2150
testl %eax, %eax
je 0x2b5f
movq %r15, %r13
movq (%rbp,%r15,8), %rbp
movq (%rsp), %rax
movq 0x10(%rsp), %r14
movq %rax, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x437f
movq %rax, %r15
testq %rax, %rax
je 0x295c
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movaps %xmm2, 0xb0(%rsp)
movq 0x30(%r15), %rax
movq %rax, 0xc0(%rsp)
movaps %xmm1, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movl 0xb0(%rsp), %eax
leaq 0x5c76(%rip), %rsi      # 0x85a1
cmpq $0x1, %rax
ja 0x294a
leaq 0x5828(%rip), %rcx      # 0x8160
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x5c5b(%rip), %rax      # 0x85a1
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x160(%rsp), %rdi
callq 0x2070
movq 0x28(%rsp), %rsi
movq %r14, %rax
subq %rsi, %rax
cmpq $0x2, %rax
jl 0x2ab6
shrq %rax
addq %rsi, %rax
xorl %ecx, %ecx
cmpq %r14, %rax
setge %cl
subq %rcx, %rax
movq %rax, 0x38(%rsp)
movq %r12, %rdi
callq 0x437f
movq %rax, %rbx
testq %rax, %rax
je 0x29c6
movq 0x30(%rbx), %rax
movq %rax, 0x110(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0x100(%rsp)
movaps %xmm1, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
testq %rbx, %rbx
setne %al
testq %r15, %r15
setne %cl
testb %al, %cl
jne 0x2a2e
cmpq %rbx, %r15
jne 0x2a9c
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movaps 0xe0(%rsp), %xmm0
movaps 0xf0(%rsp), %xmm1
movaps 0x100(%rsp), %xmm2
movaps %xmm0, 0x90(%rsp)
movaps %xmm1, 0xa0(%rsp)
movaps %xmm2, 0xb0(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq %rbx, %r15
jmp 0x2aa1
leaq 0xe0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x303f
movq 0x38(%rsp), %rcx
subq 0x28(%rsp), %rcx
cmpq %rcx, %rax
jne 0x2a9c
movl 0x100(%rsp), %eax
cmpl 0xb0(%rsp), %eax
jne 0x2a9c
leaq 0x5b38(%rip), %rdi      # 0x85a1
cmpl $0x1, %eax
ja 0x2a87
leaq 0x56eb(%rip), %rcx      # 0x8160
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
leaq 0x5b1e(%rip), %rax      # 0x85a1
cmoveq %rax, %rdi
leaq 0x160(%rsp), %rsi
callq 0x2150
testl %eax, %eax
je 0x29df
movq 0x38(%rsp), %r14
movq 0x28(%rsp), %rsi
movq %r14, %rax
subq %rsi, %rax
cmpq $0x1, %rax
jg 0x2971
movq %rbp, %rdi
movl $0x1, %edx
callq 0x2dcc
movq %rbp, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x2dcc
movq %r14, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x437f
testq %rax, %rax
je 0x2b55
movq %rax, %rbx
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movaps %xmm2, 0x70(%rsp)
movq 0x30(%rax), %rax
movq %rax, 0x80(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movl 0x70(%rsp), %eax
leaq 0x5a86(%rip), %rsi      # 0x85a1
cmpq $0x1, %rax
movq 0x18(%rsp), %rbp
movq %r13, %r15
ja 0x2b42
leaq 0x5630(%rip), %rcx      # 0x8160
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x5a63(%rip), %rax      # 0x85a1
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x5642(%rip), %rdi      # 0x8190
callq 0x2070
jmp 0x2b5f
xorl %ebx, %ebx
movq 0x18(%rsp), %rbp
movq %r13, %r15
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movaps 0x50(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movaps 0x70(%rsp), %xmm2
movaps %xmm0, 0x120(%rsp)
movaps %xmm1, 0x130(%rsp)
movaps %xmm2, 0x140(%rsp)
movq 0x80(%rsp), %rcx
movq %rcx, 0x150(%rsp)
movq %rbx, %r14
jmp 0x27f5
cmpb $0x0, 0x59f2(%rip)      # 0x85a0
movq $-0x15180, %rsi         # imm = 0xFFFEAE80
movabsq $0x7ffffffffffeae7f, %rax # imm = 0x7FFFFFFFFFFEAE7F
cmovneq %rax, %rsi
movq %rsi, (%rsp)
movq (%rbp,%r15,8), %rdi
movl $0x1, %edx
callq 0x2dcc
movq (%rsp), %rsi
movl $0x15180, %r14d         # imm = 0x15180
addq %r14, %rsi
movq %rsi, (%rsp)
movq (%rbp,%r15,8), %rdi
movl $0x1, %edx
callq 0x2dcc
movq 0x48(%rsp), %rbx
incq %r15
cmpl 0x30(%rsp), %r15d
jne 0x26e3
movq 0x53b0(%rip), %rbx      # 0x7fc0
movq (%rbx), %rdi
callq 0x2190
testl %eax, %eax
jne 0x2c2f
movq (%rbx), %rdi
callq 0x20b0
testl %eax, %eax
jne 0x2c2f
xorl %edi, %edi
callq 0x2220
movq 0x53c2(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq 0x5540(%rip), %rdx      # 0x8180
leaq 0x33f9(%rip), %rsi      # 0x6040
xorl %eax, %eax
callq 0x2160
leaq 0x33f0(%rip), %rdi      # 0x6045
jmp 0x261a
movq 0x5397(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq 0x5515(%rip), %rdx      # 0x8180
leaq 0x33b1(%rip), %rsi      # 0x6023
movq %rbx, %rcx
jmp 0x24a4
leaq 0x54af(%rip), %rdi      # 0x8130
callq 0x20a0
jmp 0x2c28
movq 0x5331(%rip), %rax      # 0x7fc0
movq (%rax), %rdi
leaq 0x33cd(%rip), %rsi      # 0x6066
movq %rbx, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2160
jmp 0x2c28