// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $-0x1f4, -0x30(%rbp)    # imm = 0xFE0C
movq $0x9c4, -0x38(%rbp)     # imm = 0x9C4
movq $0x0, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x7e19(%rip)      # 0x9170
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x13dc
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x5c8b(%rip), %rsi      # 0x7004
callq 0x1110
cmpl $0x0, %eax
jne 0x139f
leaq 0x5e3c(%rip), %rdi      # 0x71c6
leaq 0x7d8f(%rip), %rsi      # 0x9120
movb $0x0, %al
callq 0x10d0
xorl %edi, %edi
callq 0x11f0
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x5c5c(%rip), %rsi      # 0x700e
callq 0x1110
cmpl $0x0, %eax
jne 0x13cd
movq 0x7bfd(%rip), %rax      # 0x8fc0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1aa0
jmp 0x13cf
jmp 0x13d1
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x135e
movl $0x0, -0x1c(%rbp)
movq $0x0, -0x28(%rbp)
movl -0x8(%rbp), %edi
movq -0x10(%rbp), %rsi
leaq 0x5c1c(%rip), %rdx      # 0x7015
callq 0x11d0
movl %eax, %ecx
movl %ecx, -0x18(%rbp)
movb $0x1, %al
cmpl $0x63, %ecx
movb %al, -0x105(%rbp)
je 0x141d
cmpl $0x76, -0x18(%rbp)
sete %al
movb %al, -0x105(%rbp)
movb -0x105(%rbp), %al
testb $0x1, %al
jne 0x1429
jmp 0x1448
cmpl $0x76, -0x18(%rbp)
jne 0x1438
movl $0x1, -0x1c(%rbp)
jmp 0x1446
movq 0x7b91(%rip), %rax      # 0x8fd0
movq (%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x13eb
cmpl $-0x1, -0x18(%rbp)
je 0x1454
cmpl $-0x1, -0x18(%rbp)
jne 0x148a
movq 0x7b6d(%rip), %rax      # 0x8fc8
movl (%rax), %eax
movl -0x8(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x149e
movq -0x10(%rbp), %rax
movq 0x7b56(%rip), %rcx      # 0x8fc8
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x5bbe(%rip), %rsi      # 0x703e
callq 0x1110
cmpl $0x0, %eax
jne 0x149e
movq 0x7b67(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
movl $0x1, %esi
callq 0x1aa0
cmpl $0x0, -0x1c(%rbp)
je 0x1579
cmpq $0x0, -0x28(%rbp)
je 0x155a
movq -0x28(%rbp), %rdi
leaq 0x5b5f(%rip), %rsi      # 0x701d
leaq -0xf8(%rbp), %rdx
leaq -0xf9(%rbp), %rcx
movb $0x0, %al
callq 0x1170
cmpl $0x1, %eax
jne 0x14e5
movq -0xf8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x1558
movq -0x28(%rbp), %rdi
leaq 0x5b29(%rip), %rsi      # 0x7019
leaq -0xf0(%rbp), %rdx
leaq -0xf8(%rbp), %rcx
leaq -0xf9(%rbp), %r8
movb $0x0, %al
callq 0x1170
cmpl $0x2, %eax
jne 0x1529
movq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x1556
movq 0x7ac8(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
movq 0x7c36(%rip), %rdx      # 0x9170
movq -0x28(%rbp), %rcx
leaq 0x5ade(%rip), %rsi      # 0x7023
movb $0x0, %al
callq 0x1120
movl $0x1, %edi
callq 0x11f0
jmp 0x1558
jmp 0x155a
callq 0x1ae0
movq -0x30(%rbp), %rdi
callq 0x1b60
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1b60
movq %rax, -0x48(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x1140
movq $0x0, 0x7beb(%rip) # 0x9178
movq 0x7a34(%rip), %rax      # 0x8fc8
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x15e0
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x10a0
cmpq 0x7bbf(%rip), %rax      # 0x9178
jbe 0x15d3
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x10a0
movq %rax, 0x7ba5(%rip)      # 0x9178
jmp 0x15d5
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1599
movl $0x0, -0x14(%rbp)
movq 0x79f2(%rip), %rax      # 0x8fe0
movq (%rax), %rax
movslq -0x14(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x1609
jmp 0x15fe
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x15e7
movl -0x14(%rbp), %eax
addl $0x2, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x1150
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x1643
movq 0x7b4b(%rip), %rdi      # 0x9178
addq $0x4, %rdi
callq 0x1150
movq -0x50(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x1659
movq 0x7b26(%rip), %rdi      # 0x9170
callq 0x11c0
movl $0x1, %edi
callq 0x11f0
movl $0x0, -0x104(%rbp)
movq -0x50(%rbp), %rax
movl -0x104(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x104(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x59b6(%rip), %rsi      # 0x703c
callq 0x1080
movl $0x0, -0x100(%rbp)
movq 0x7944(%rip), %rax      # 0x8fe0
movq (%rax), %rax
movslq -0x100(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x171f
movq 0x792c(%rip), %rax      # 0x8fe0
movq (%rax), %rax
movslq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x5973(%rip), %rsi      # 0x703c
movl $0x3, %edx
callq 0x1070
cmpl $0x0, %eax
je 0x1709
movq 0x7901(%rip), %rax      # 0x8fe0
movq (%rax), %rax
movslq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x50(%rbp), %rax
movl -0x104(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x104(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x170b
movl -0x100(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x100(%rbp)
jmp 0x1695
movq -0x50(%rbp), %rax
movslq -0x104(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
movq -0x50(%rbp), %rcx
movq 0x78a3(%rip), %rax      # 0x8fe0
movq %rcx, (%rax)
movq 0x7881(%rip), %rax      # 0x8fc8
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x1a37
movq -0x50(%rbp), %rax
movq (%rax), %rdi
addq $0x3, %rdi
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x1080
cmpl $0x0, -0x1c(%rbp)
jne 0x1796
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x58(%rbp), %rsi
xorl %edx, %edx
callq 0x1cf0
jmp 0x1a29
movl $0x0, 0x7de0(%rip)      # 0x9580
movq 0x7de1(%rip), %rax      # 0x9588
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rsi
movl $0x1, %edx
callq 0x1cf0
movq -0x60(%rbp), %rax
addq $0x15180, %rax          # imm = 0x15180
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rsi
movl $0x1, %edx
callq 0x1cf0
movq -0x60(%rbp), %rax
cmpq -0x40(%rbp), %rax
jge 0x17ff
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x3fd0
movq %rax, -0xe0(%rbp)
cmpq $0x0, -0xe0(%rbp)
je 0x1851
movq -0xe0(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
movl $0x38, %edx
callq 0x1130
leaq -0xa0(%rbp), %rdi
callq 0x1e20
movq %rax, %rsi
leaq 0x7939(%rip), %rdi      # 0x9180
movl $0x3ff, %edx            # imm = 0x3FF
callq 0x1060
jmp 0x1853
movq -0x60(%rbp), %rax
cmpq -0x48(%rbp), %rax
jge 0x1871
movq -0x60(%rbp), %rax
movq -0x48(%rbp), %rcx
subq $0xa8c0, %rcx           # imm = 0xA8C0
cmpq %rcx, %rax
jl 0x1876
jmp 0x19ce
movq -0x60(%rbp), %rax
addq $0xa8c0, %rax           # imm = 0xA8C0
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3fd0
movq %rax, -0xe8(%rbp)
cmpq $0x0, -0xe8(%rbp)
je 0x18b6
movq -0xe8(%rbp), %rsi
leaq -0xd8(%rbp), %rdi
movl $0x38, %edx
callq 0x1130
cmpq $0x0, -0xe0(%rbp)
je 0x18ca
cmpq $0x0, -0xe8(%rbp)
jne 0x18df
movq -0xe0(%rbp), %rax
cmpq -0xe8(%rbp), %rax
jne 0x192a
jmp 0x199b
leaq -0xd8(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x1e90
movq -0x68(%rbp), %rcx
subq -0x60(%rbp), %rcx
cmpq %rcx, %rax
jne 0x192a
movl -0xb8(%rbp), %eax
cmpl -0x80(%rbp), %eax
jne 0x192a
leaq -0xd8(%rbp), %rdi
callq 0x1e20
movq %rax, %rdi
leaq 0x7860(%rip), %rsi      # 0x9180
callq 0x1110
cmpl $0x0, %eax
je 0x199b
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x2020
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3fd0
movq %rax, -0xe8(%rbp)
cmpq $0x0, -0xe8(%rbp)
je 0x1999
movq -0xe8(%rbp), %rsi
leaq -0xd8(%rbp), %rdi
movl $0x38, %edx
callq 0x1130
leaq -0xd8(%rbp), %rdi
callq 0x1e20
movq %rax, %rsi
leaq 0x77f1(%rip), %rdi      # 0x9180
movl $0x3ff, %edx            # imm = 0x3FF
callq 0x1060
jmp 0x199b
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
movl $0x38, %edx
callq 0x1130
movq -0xe8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x1853
movq 0x7bbb(%rip), %rax      # 0x9590
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
subq $0x15180, %rax          # imm = 0x15180
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rsi
movl $0x1, %edx
callq 0x1cf0
movq -0x60(%rbp), %rax
addq $0x15180, %rax          # imm = 0x15180
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rsi
movl $0x1, %edx
callq 0x1cf0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x174c
movq 0x7582(%rip), %rax      # 0x8fc0
movq (%rax), %rdi
callq 0x1160
cmpl $0x0, %eax
jne 0x1a5f
movq 0x756e(%rip), %rax      # 0x8fc0
movq (%rax), %rdi
callq 0x1090
cmpl $0x0, %eax
je 0x1a94
movq 0x7592(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
movq 0x7700(%rip), %rdx      # 0x9170
leaq 0x55c9(%rip), %rsi      # 0x7040
movb $0x0, %al
callq 0x1120
leaq 0x55c0(%rip), %rdi      # 0x7045
callq 0x11c0
movl $0x1, %edi
callq 0x11f0
xorl %edi, %edi
callq 0x11f0
nopl (%rax,%rax)