// File: /workspace/github_c_makefile_star2_O3/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 $0x578, %rsp            # imm = 0x578
movq %rsi, 0x30(%rsp)
movq (%rsi), %rbx
movq %rbx, 0x5dd4(%rip)      # 0x7180
movq %rdi, 0x20(%rsp)
cmpl $0x1, %edi
jle 0x1405
movl 0x20(%rsp), %r13d
movl $0x1, %ebp
leaq 0x3c3d(%rip), %r14      # 0x5004
leaq 0x3c40(%rip), %r15      # 0x500e
movq 0x30(%rsp), %rax
movq (%rax,%rbp,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x1140
testl %eax, %eax
je 0x1c71
movq %r12, %rdi
movq %r15, %rsi
callq 0x1140
testl %eax, %eax
je 0x1c7f
incq %rbp
cmpq %rbp, %r13
jne 0x13ce
movb $0x1, %al
movl %eax, 0x14(%rsp)
xorl %r14d, %r14d
leaq 0x3c00(%rip), %rbx      # 0x5015
movq 0x5bb4(%rip), %r15      # 0x6fd0
movq 0x30(%rsp), %r13
movq 0x20(%rsp), %r12
movl %r12d, %edi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x11f0
cmpl $0x63, %eax
jne 0x143e
movq (%r15), %r14
jmp 0x1426
cmpl $0x76, %eax
jne 0x144d
movl $0x0, 0x14(%rsp)
jmp 0x1426
cmpl $-0x1, %eax
jne 0x1475
movq 0x5b6f(%rip), %r15      # 0x6fc8
movslq (%r15), %rax
leal -0x1(%r12), %ecx
cmpl %ecx, %eax
jne 0x149c
movq (%r13,%rax,8), %rax
cmpb $0x3d, (%rax)
jne 0x149c
cmpb $0x0, 0x1(%rax)
jne 0x149c
movq 0x5b7c(%rip), %rax      # 0x6ff8
movq (%rax), %rdi
movq 0x5cfa(%rip), %rcx      # 0x7180
leaq 0x3bd5(%rip), %rsi      # 0x5062
movq %rcx, %rdx
xorl %eax, %eax
callq 0x1150
jmp 0x1605
testb $0x1, 0x14(%rsp)
je 0x14b4
movq $0x0, 0x38(%rsp)
xorl %r14d, %r14d
jmp 0x1559
testq %r14, %r14
jne 0x14c7
movl $0x9c4, %ebx            # imm = 0x9C4
movq $-0x1f4, %rdi           # imm = 0xFE0C
jmp 0x1536
leaq 0x3b4f(%rip), %rsi      # 0x501d
leaq 0xa0(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1190
movq $-0x1f4, %rdi           # imm = 0xFE0C
cmpl $0x1, %eax
je 0x152e
leaq 0x3b1e(%rip), %rsi      # 0x5019
leaq 0x170(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
leaq 0xf0(%rsp), %r8
movq %r14, %rdi
xorl %eax, %eax
callq 0x1190
cmpl $0x2, %eax
jne 0x1c51
movq 0x170(%rsp), %rdi
movq 0xa0(%rsp), %rbx
movb $0x1, %al
movb %al, 0x6062(%rip)       # 0x75a0
movb %al, 0x6054(%rip)       # 0x7598
callq 0x1c9f
movq %rax, 0x38(%rsp)
movq %rbx, %rdi
callq 0x1c9f
movq %rax, %r14
leaq 0xe8(%rsp), %rdi
callq 0x1160
movq $0x0, 0x5c17(%rip) # 0x7188
movslq (%r15), %rbp
movl $0x4, %ebx
cmpl %r12d, %ebp
jge 0x15ad
movslq 0x20(%rsp), %r15
xorl %ebx, %ebx
movq %rbp, %r12
movq (%r13,%r12,8), %rdi
callq 0x10b0
cmpq %rbx, %rax
jbe 0x15a1
movq %rax, 0x5bea(%rip)      # 0x7188
movq %rax, %rbx
incq %r12
cmpq %r12, %r15
jne 0x1588
addq $0x4, %rbx
movq 0x5a2c(%rip), %r15      # 0x6fe0
movq (%r15), %r12
movl $0x8, %edi
cmpq $0x0, -0x8(%r12,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x15bc
movabsq $0x7fffffff8, %rax      # imm = 0x7FFFFFFF8
andq %rax, %rdi
callq 0x1170
testq %rax, %rax
je 0x15f9
movq %rbx, %rdi
movq %rax, 0x48(%rsp)
callq 0x1170
movq 0x48(%rsp), %rsi
movq %rax, (%rsi)
testq %rax, %rax
jne 0x160f
movq 0x5b80(%rip), %rdi      # 0x7180
callq 0x11e0
movl $0x1, %edi
callq 0x1210
movl $0x3d5a54, (%rax)       # imm = 0x3D5A54
movq (%r12), %rax
movl $0x1, %ecx
testq %rax, %rax
je 0x1656
addq $0x8, %r12
movl $0x1, %ecx
cmpb $0x54, (%rax)
jne 0x163d
cmpb $0x5a, 0x1(%rax)
jne 0x163d
cmpb $0x3d, 0x2(%rax)
je 0x1646
movslq %ecx, %rdx
incl %ecx
movq %rax, (%rsi,%rdx,8)
movq (%r12), %rax
addq $0x8, %r12
testq %rax, %rax
jne 0x162c
movslq %ecx, %rcx
movq $0x0, (%rsi,%rcx,8)
movq %rsi, (%r15)
movq 0x20(%rsp), %rbx
cmpl %ebx, %ebp
jge 0x1c00
movabsq $0x7ffffffffffeae7f, %rax # imm = 0x7FFFFFFFFFFEAE7F
leaq -0xa8c0(%r14), %rcx
cmpq %rcx, %r14
cmovlq %r14, %rcx
movq %rcx, 0x58(%rsp)
addq $0x15181, %rax          # imm = 0x15181
movq %rax, 0xe0(%rsp)
movl $0x15180, %r14d         # imm = 0x15180
movq (%rsi), %rdi
addq $0x3, %rdi
movq (%r13,%rbp,8), %rsi
callq 0x1080
testb $0x1, 0x14(%rsp)
je 0x16d0
movq (%r13,%rbp,8), %rdi
movq 0xe8(%rsp), %rsi
xorl %edx, %edx
callq 0x1dc3
jmp 0x1bf0
movb $0x0, 0x5eb9(%rip)      # 0x7590
cmpb $0x0, 0x5eba(%rip)      # 0x7598
movl $0x0, %esi
cmovneq 0xe0(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%r13,%rbp,8), %rdi
movl $0x1, %edx
callq 0x1dc3
movq 0x8(%rsp), %rsi
addq %r14, %rsi
movq %rsi, 0x8(%rsp)
movq (%r13,%rbp,8), %rdi
movl $0x1, %edx
callq 0x1dc3
movq 0x38(%rsp), %rax
cmpq %rax, 0x8(%rsp)
jge 0x1732
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x320c
movq %rax, %r14
testq %rax, %rax
je 0x17b4
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movaps %xmm2, 0x150(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0x160(%rsp)
movaps %xmm1, 0x140(%rsp)
movaps %xmm0, 0x130(%rsp)
movl 0x150(%rsp), %eax
leaq 0x5e1d(%rip), %rsi      # 0x75a1
cmpq $0x1, %rax
ja 0x17a3
leaq 0x59cf(%rip), %rcx      # 0x7160
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x5e02(%rip), %rax      # 0x75a1
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x59e1(%rip), %rdi      # 0x7190
callq 0x1070
movq 0x8(%rsp), %rax
cmpq 0x58(%rsp), %rax
jge 0x1b99
movq %rbp, 0x50(%rsp)
addq $0xa8c0, %rax           # imm = 0xA8C0
movq %rax, 0x18(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x320c
movq %rax, %rbx
testq %rax, %rax
je 0x188c
movq 0x30(%rbx), %rax
movq %rax, 0x90(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0x80(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
testq %r14, %r14
je 0x188c
leaq 0x60(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x1fd8
movq 0x18(%rsp), %r12
movq 0x8(%rsp), %r15
movq %r12, %rcx
subq %r15, %rcx
cmpq %rcx, %rax
jne 0x189f
movl 0x80(%rsp), %eax
cmpl 0x150(%rsp), %eax
jne 0x189f
leaq 0x5d4b(%rip), %rdi      # 0x75a1
cmpl $0x1, %eax
ja 0x1874
leaq 0x58fe(%rip), %rcx      # 0x7160
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
leaq 0x5d31(%rip), %rax      # 0x75a1
cmoveq %rax, %rdi
leaq 0x5915(%rip), %rsi      # 0x7190
callq 0x1140
movq %rbx, %r14
testl %eax, %eax
jne 0x189f
jmp 0x1b4a
cmpq %rbx, %r14
je 0x1b4a
movq 0x8(%rsp), %r15
movq 0x18(%rsp), %r12
movq (%r13,%rbp,8), %r14
movq %r15, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x320c
movq %rax, %r13
testq %rax, %rax
je 0x192d
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movaps %xmm2, 0xc0(%rsp)
movq 0x30(%r13), %rax
movq %rax, 0xd0(%rsp)
movaps %xmm1, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movl 0xc0(%rsp), %eax
leaq 0x5ca5(%rip), %rsi      # 0x75a1
cmpq $0x1, %rax
ja 0x191b
leaq 0x5857(%rip), %rcx      # 0x7160
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x5c8a(%rip), %rax      # 0x75a1
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x170(%rsp), %rdi
callq 0x1070
movq 0x28(%rsp), %r15
movq %r12, %rax
subq %r15, %rax
cmpq $0x2, %rax
jge 0x1946
movq %r12, %rbx
jmp 0x1a93
shrq %rax
addq %r15, %rax
xorl %ecx, %ecx
cmpq %r12, %rax
setge %cl
subq %rcx, %rax
movq %rax, 0x40(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x320c
movq %rax, %rbp
testq %rax, %rax
je 0x1a21
movq 0x30(%rbp), %rax
movq %rax, 0x120(%rsp)
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movaps %xmm2, 0x110(%rsp)
movaps %xmm1, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
testq %r13, %r13
je 0x1a21
leaq 0xf0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x1fd8
movq 0x40(%rsp), %rbx
movq 0x28(%rsp), %r15
movq %rbx, %rcx
subq %r15, %rcx
cmpq %rcx, %rax
jne 0x1a80
movl 0x110(%rsp), %eax
cmpl 0xc0(%rsp), %eax
jne 0x1a80
leaq 0x5bb1(%rip), %rdi      # 0x75a1
cmpl $0x1, %eax
ja 0x1a0e
leaq 0x5764(%rip), %rcx      # 0x7160
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
leaq 0x5b97(%rip), %rax      # 0x75a1
cmoveq %rax, %rdi
leaq 0x170(%rsp), %rsi
callq 0x1140
testl %eax, %eax
jne 0x1a80
jmp 0x1a32
movq 0x40(%rsp), %rbx
cmpq %rbp, %r13
je 0x1a32
movq 0x28(%rsp), %r15
jmp 0x1a80
movq %rbx, 0x28(%rsp)
movaps 0xf0(%rsp), %xmm0
movaps 0x100(%rsp), %xmm1
movaps 0x110(%rsp), %xmm2
movaps %xmm0, 0xa0(%rsp)
movaps %xmm1, 0xb0(%rsp)
movaps %xmm2, 0xc0(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq %rbx, %r15
movq %rbp, %r13
movq %r12, %rbx
movq %rbx, %rax
subq %r15, %rax
movq %rbx, %r12
cmpq $0x1, %rax
jg 0x1946
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x1dc3
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x1dc3
movq %rbx, 0x18(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x320c
testq %rax, %rax
je 0x1b3d
movq %rax, %r14
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movaps %xmm2, 0x80(%rsp)
movq 0x30(%rax), %rax
movq %rax, 0x90(%rsp)
movaps %xmm1, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movl 0x80(%rsp), %eax
leaq 0x5aa0(%rip), %rsi      # 0x75a1
cmpq $0x1, %rax
movq 0x30(%rsp), %r13
movq 0x50(%rsp), %rbp
ja 0x1b2a
leaq 0x5648(%rip), %rcx      # 0x7160
movq (%rcx,%rax,8), %rsi
testq %rsi, %rsi
leaq 0x5a7b(%rip), %rax      # 0x75a1
cmoveq %rax, %rsi
movl $0x3ff, %edx            # imm = 0x3FF
leaq 0x565a(%rip), %rdi      # 0x7190
callq 0x1070
jmp 0x1b4a
xorl %r14d, %r14d
movq 0x30(%rsp), %r13
movq 0x50(%rsp), %rbp
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movaps 0x80(%rsp), %xmm2
movaps %xmm0, 0x130(%rsp)
movaps %xmm1, 0x140(%rsp)
movaps %xmm2, 0x150(%rsp)
movq 0x90(%rsp), %rcx
movq %rcx, 0x160(%rsp)
cmpq 0x58(%rsp), %rax
jl 0x17c9
cmpb $0x0, 0x5a00(%rip)      # 0x75a0
movq $-0x15180, %rsi         # imm = 0xFFFEAE80
movabsq $0x7ffffffffffeae7f, %rax # imm = 0x7FFFFFFFFFFEAE7F
cmovneq %rax, %rsi
movq %rsi, 0x8(%rsp)
movq (%r13,%rbp,8), %rdi
movl $0x1, %edx
callq 0x1dc3
movq 0x8(%rsp), %rsi
movl $0x15180, %r14d         # imm = 0x15180
addq %r14, %rsi
movq %rsi, 0x8(%rsp)
movq (%r13,%rbp,8), %rdi
movl $0x1, %edx
callq 0x1dc3
movq 0x20(%rsp), %rbx
incq %rbp
cmpl %ebx, %ebp
movq 0x48(%rsp), %rsi
jne 0x169f
movq 0x53b9(%rip), %rbx      # 0x6fc0
movq (%rbx), %rdi
callq 0x1180
testl %eax, %eax
jne 0x1c26
movq (%rbx), %rdi
callq 0x10a0
testl %eax, %eax
jne 0x1c26
xorl %edi, %edi
callq 0x1210
movq 0x53cb(%rip), %rax      # 0x6ff8
movq (%rax), %rdi
movq 0x5549(%rip), %rdx      # 0x7180
leaq 0x33fe(%rip), %rsi      # 0x503c
xorl %eax, %eax
callq 0x1150
leaq 0x33f5(%rip), %rdi      # 0x5041
jmp 0x1600
movq 0x53a0(%rip), %rax      # 0x6ff8
movq (%rax), %rdi
movq 0x551e(%rip), %rdx      # 0x7180
leaq 0x33ba(%rip), %rsi      # 0x5023
movq %r14, %rcx
jmp 0x1490
leaq 0x54b8(%rip), %rdi      # 0x7130
callq 0x1090
jmp 0x1c1f
movq 0x533a(%rip), %rax      # 0x6fc0
movq (%rax), %rdi
leaq 0x33d2(%rip), %rsi      # 0x5062
movq %rbx, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1150
jmp 0x1c1f