// File: /workspace/github_c_makefile_star2_O2/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, %r13
movl %edi, %ebp
movq (%rsi), %rax
movq %rax, 0x6e34(%rip)      # 0x8170
movslq %edi, %rax
movq %rax, 0x30(%rsp)
pushq $0x1
popq %r12
leaq 0x3cb5(%rip), %rbx      # 0x5004
leaq 0x3cb8(%rip), %r14      # 0x500e
cmpq 0x30(%rsp), %r12
jge 0x1398
movq (%r13,%r12,8), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1130
testl %eax, %eax
je 0x1b72
movq %r15, %rdi
movq %r14, %rsi
callq 0x1130
incq %r12
testl %eax, %eax
jne 0x1356
movq 0x6c32(%rip), %rax      # 0x7fc0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1b80
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %ebx, %ebx
leaq 0x3c6e(%rip), %r14      # 0x5015
movq 0x6c22(%rip), %r15      # 0x7fd0
movl %ebp, %edi
movq %r13, %rsi
movq %r14, %rdx
callq 0x11e0
cmpl $0x63, %eax
jne 0x13c5
movq (%r15), %rbx
jmp 0x13ae
cmpl $0x76, %eax
jne 0x13d4
movl $0x0, 0xc(%rsp)
jmp 0x13ae
cmpl $-0x1, %eax
jne 0x13f9
movq 0x6be8(%rip), %r14      # 0x7fc8
movslq (%r14), %rax
decl %ebp
cmpl %ebp, %eax
jne 0x140b
movq (%r13,%rax,8), %rax
cmpb $0x3d, (%rax)
jne 0x140b
cmpb $0x0, 0x1(%rax)
jne 0x140b
movq 0x6bf8(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
pushq $0x1
popq %rsi
callq 0x1b80
testb $0x1, 0xc(%rsp)
je 0x1422
movq $0x0, 0x28(%rsp)
xorl %ebx, %ebx
jmp 0x14ec
testq %rbx, %rbx
jne 0x1435
movl $0x9c4, %ebx            # imm = 0x9C4
movq $-0x1f4, %rdi           # imm = 0xFE0C
jmp 0x14a4
leaq 0x3be1(%rip), %rsi      # 0x501d
leaq 0x90(%rsp), %rdx
leaq 0xe0(%rsp), %rcx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1180
movq $-0x1f4, %rdi           # imm = 0xFE0C
cmpl $0x1, %eax
je 0x149c
leaq 0x3bb0(%rip), %rsi      # 0x5019
leaq 0x160(%rsp), %rdx
leaq 0x90(%rsp), %rcx
leaq 0xe0(%rsp), %r8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1180
cmpl $0x2, %eax
jne 0x1b4b
movq 0x160(%rsp), %rdi
movq 0x90(%rsp), %rbx
pushq $0x1
popq %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jge 0x14bb
movq %rcx, %rax
leaq 0x1(,%rcx,2), %rcx
jmp 0x14a9
movq %rax, 0x70ce(%rip)      # 0x8590
leaq -0x1(%rax), %rcx
cmpq %rcx, %rax
cmovgq %rax, %rcx
notq %rcx
movq %rcx, 0x70b1(%rip)      # 0x8588
callq 0x1ba2
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
callq 0x1ba2
movq %rax, %rbx
pushq $0x1
popq %rbp
leaq 0xd8(%rsp), %rdi
callq 0x1150
andq $0x0, 0x6c74(%rip)      # 0x8178
movslq (%r14), %r15
xorl %r14d, %r14d
movq %r15, 0x18(%rsp)
cmpq 0x30(%rsp), %r15
jge 0x1534
movq (%r13,%r15,8), %rdi
callq 0x10b0
cmpq %r14, %rax
jbe 0x152f
movq %rax, 0x6c4c(%rip)      # 0x8178
movq %rax, %r14
incq %r15
jmp 0x150f
movq 0x6aa5(%rip), %r15      # 0x7fe0
movq (%r15), %r12
pushq $0x8
popq %rdi
cmpq $0x0, -0x8(%r12,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x1541
movabsq $0x7fffffff8, %rax      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x1160
testq %rax, %rax
je 0x1582
addq $0x4, %r14
movq %r14, %rdi
movq %rax, 0x40(%rsp)
callq 0x1160
movq 0x40(%rsp), %rdx
movq %rax, (%rdx)
testq %rax, %rax
jne 0x1596
movq 0x6be7(%rip), %rdi      # 0x8170
callq 0x11d0
pushq $0x1
popq %rdi
callq 0x1200
movl $0x3d5a54, (%rax)       # imm = 0x3D5A54
movq (%r12), %rax
movslq %ebp, %rcx
testq %rax, %rax
je 0x15c6
cmpb $0x54, (%rax)
jne 0x15b9
cmpb $0x5a, 0x1(%rax)
jne 0x15b9
cmpb $0x3d, 0x2(%rax)
je 0x15c0
leal 0x1(%rcx), %ebp
movq %rax, (%rdx,%rcx,8)
addq $0x8, %r12
jmp 0x159c
andq $0x0, (%rdx,%rcx,8)
leaq -0xa8c0(%rbx), %rax
cmpq %rax, %rbx
cmovlq %rbx, %rax
movq %rax, 0xd0(%rsp)
movq %rdx, (%r15)
movq 0x18(%rsp), %rbp
movq %r13, 0x48(%rsp)
cmpq 0x30(%rsp), %rbp
jge 0x1afa
movq (%rdx), %rdi
addq $0x3, %rdi
movq (%r13,%rbp,8), %rsi
callq 0x1080
testb $0x1, 0xc(%rsp)
je 0x1625
movq (%r13,%rbp,8), %rdi
movq 0xd8(%rsp), %rsi
xorl %edx, %edx
jmp 0x1ae8
movb $0x0, 0x6f54(%rip)      # 0x8580
movq 0x6f55(%rip), %rsi      # 0x8588
movq %rsi, (%rsp)
movq (%r13,%rbp,8), %rdi
pushq $0x1
popq %rbx
movl %ebx, %edx
callq 0x1c6e
movq (%rsp), %rsi
movl $0x15180, %eax          # imm = 0x15180
addq %rax, %rsi
movq %rsi, (%rsp)
movq (%r13,%rbp,8), %rdi
movl %ebx, %edx
callq 0x1c6e
movq 0x28(%rsp), %rax
cmpq %rax, (%rsp)
jge 0x1676
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
callq 0x2ed2
movq %rax, %rbx
testq %rax, %rax
je 0x16f3
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0x140(%rsp)
movq 0x30(%rbx), %rax
movq %rax, 0x150(%rsp)
movaps %xmm1, 0x130(%rsp)
movaps %xmm0, 0x120(%rsp)
movl 0x140(%rsp), %eax
leaq 0x6ed5(%rip), %rsi      # 0x8598
cmpq $0x1, %rax
ja 0x16e2
leaq 0x6a80(%rip), %rcx      # 0x8150
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x6eba(%rip), %rax      # 0x8598
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x6a92(%rip), %rdi      # 0x8180
callq 0x1070
movq (%rsp), %rax
movq %rbp, 0x18(%rsp)
cmpq 0xd0(%rsp), %rax
jge 0x1aad
addq $0xa8c0, %rax           # imm = 0xA8C0
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x2ed2
movq %rax, %r14
testq %rax, %rax
je 0x17c9
movq 0x30(%r14), %rax
movq %rax, 0x80(%rsp)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movaps %xmm2, 0x70(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
testq %rbx, %rbx
je 0x17c9
leaq 0x50(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x1ec3
movq 0x10(%rsp), %r15
movq (%rsp), %r12
movq %r15, %rcx
subq %r12, %rcx
cmpq %rcx, %rax
jne 0x17db
movl 0x70(%rsp), %eax
cmpl 0x140(%rsp), %eax
jne 0x17db
leaq 0x6e05(%rip), %rdi      # 0x8598
cmpl $0x1, %eax
ja 0x17b1
leaq 0x69b1(%rip), %rcx      # 0x8150
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
leaq 0x6deb(%rip), %rax      # 0x8598
cmoveq %rax, %rdi
leaq 0x69c8(%rip), %rsi      # 0x8180
callq 0x1130
movq %r14, %rbx
testl %eax, %eax
jne 0x17db
jmp 0x1a68
cmpq %r14, %rbx
je 0x1a68
movq (%rsp), %r12
movq 0x10(%rsp), %r15
movq (%r13,%rbp,8), %rbx
movq %r12, 0x20(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x2ed2
movq %rax, %r14
testq %rax, %rax
je 0x1868
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movaps %xmm2, 0xb0(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0xc0(%rsp)
movaps %xmm1, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movl 0xb0(%rsp), %eax
leaq 0x6d61(%rip), %rsi      # 0x8598
cmpq $0x1, %rax
ja 0x1856
leaq 0x690c(%rip), %rcx      # 0x8150
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x6d46(%rip), %rax      # 0x8598
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x160(%rsp), %rdi
callq 0x1070
movl 0xb0(%rsp), %r12d
movq %r15, %r13
movq %r13, %r15
movq 0x20(%rsp), %rsi
movq %r13, %rax
subq %rsi, %rax
cmpq $0x2, %rax
jl 0x19be
shrq %rax
addq %rsi, %rax
xorl %ecx, %ecx
cmpq %r15, %rax
setge %cl
subq %rcx, %rax
movq %rax, 0x38(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x2ed2
movq %rax, %rbp
testq %rax, %rax
je 0x1963
movq 0x30(%rbp), %rax
movq %rax, 0x110(%rsp)
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movaps %xmm2, 0x100(%rsp)
movaps %xmm1, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
testq %r14, %r14
je 0x1963
leaq 0xe0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x1ec3
movq 0x38(%rsp), %r13
movq %r13, %rcx
subq 0x20(%rsp), %rcx
cmpq %rcx, %rax
jne 0x1873
movl 0x100(%rsp), %eax
cmpl %r12d, %eax
jne 0x1873
leaq 0x6c6a(%rip), %rdi      # 0x8598
cmpl $0x1, %eax
ja 0x194c
leaq 0x6816(%rip), %rcx      # 0x8150
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
leaq 0x6c50(%rip), %rax      # 0x8598
cmoveq %rax, %rdi
leaq 0x160(%rsp), %rsi
callq 0x1130
testl %eax, %eax
jne 0x1873
jmp 0x1971
movq 0x38(%rsp), %r13
cmpq %rbp, %r14
jne 0x1873
movq %r13, 0x20(%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 %rbp, %r14
jmp 0x1868
movq %rbx, %rdi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq 0x1c6e
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x1c6e
movq %r15, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x2ed2
testq %rax, %rax
je 0x1a5c
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 0x6b78(%rip), %rsi      # 0x8598
cmpq $0x1, %rax
movq 0x48(%rsp), %r13
movq 0x18(%rsp), %rbp
ja 0x1a49
leaq 0x6719(%rip), %rcx      # 0x8150
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x6b53(%rip), %rax      # 0x8598
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x672b(%rip), %rdi      # 0x8180
callq 0x1070
jmp 0x1a68
xorl %ebx, %ebx
movq 0x48(%rsp), %r13
movq 0x18(%rsp), %rbp
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)
jmp 0x16fc
movq 0x6adc(%rip), %rsi      # 0x8590
movq $-0x15180, %rax         # imm = 0xFFFEAE80
addq %rax, %rsi
movq %rsi, (%rsp)
movq (%r13,%rbp,8), %rdi
pushq $0x1
popq %rbx
movl %ebx, %edx
callq 0x1c6e
movq (%rsp), %rsi
movl $0x15180, %eax          # imm = 0x15180
addq %rax, %rsi
movq %rsi, (%rsp)
movq (%r13,%rbp,8), %rdi
movl %ebx, %edx
callq 0x1c6e
incq %rbp
movq 0x40(%rsp), %rdx
jmp 0x15ee
movq 0x64bf(%rip), %rbx      # 0x7fc0
movq (%rbx), %rdi
callq 0x1170
testl %eax, %eax
jne 0x1b20
movq (%rbx), %rdi
callq 0x10a0
testl %eax, %eax
jne 0x1b20
xorl %edi, %edi
callq 0x1200
movq 0x64d1(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq 0x663f(%rip), %rdx      # 0x8170
leaq 0x3504(%rip), %rsi      # 0x503c
xorl %eax, %eax
callq 0x1140
leaq 0x34fb(%rip), %rdi      # 0x5041
jmp 0x1589
movq 0x64a6(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movq 0x6614(%rip), %rdx      # 0x8170
leaq 0x34c0(%rip), %rsi      # 0x5023
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1140
jmp 0x158e
leaq 0x65a7(%rip), %rdi      # 0x8120
callq 0x1090
jmp 0x1b19