// File: /workspace/github_c_makefile_star2_O1/kisom[P]rmtmp/rmtmp.c
// Function: main
int
main(int argc, char *argv[])
{
	char	*tmpdir = NULL;
	int	 opt;

	if (argc == 1) {
		fprintf(stderr, "no prefix given\n");
		return EXIT_FAILURE;
	}

	while ((opt = getopt(argc, (char *const *) argv, "d:hvV")) != -1) {
		switch (opt) {
		case 'd':
			tmpdir = optarg;
			break;
		case 'h':
			usage();
			/* NOT REACHED */
			break;
		case 'v':
			verbose = 1;
			break;
		case 'V':
			version();
			exit(EX_USAGE);
		default:
			/* NOT REACHED */
			fprintf(stderr, "invalid argument!\n");
			return EXIT_FAILURE;
		}
	}

	argc -= optind;
	argv += optind;

	if (argc > 1)
		fprintf(stderr, "warning: multiple prefixes selected, "
		    "but only the first will be used.\n");

	if (NULL == tmpdir) {
		if ((NULL == (tmpdir = getenv("TMPDIR"))) || (*tmpdir == '\0'))
			tmpdir = (char *)TMP_DIR;
	}

	if (remove_tmp(tmpdir, argv[0]) != 0) {
		fprintf(stderr, "failed to remove some files.\n");
		return EXIT_FAILURE;
	}
	return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
cmpl $0x1, %edi
je 0x401949
movq %rsi, %r14
movl %edi, %ebp
xorl %ebx, %ebx
leaq 0x988b5(%rip), %r15     # 0x49a015
movq $0x4d1240, %r12         # imm = 0x4D1240
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x450a40
cmpl $0x76, %eax
jne 0x401782
movb $0x1, 0xcab70(%rip)     # 0x4cc2f0
jmp 0x401767
cmpl $0x63, %eax
jle 0x401796
cmpl $0x64, %eax
jne 0x401961
movq (%r12), %rbx
jmp 0x401767
cmpl $-0x1, %eax
jne 0x4019b5
movq $0x4cb080, %rax         # imm = 0x4CB080
movslq (%rax), %r15
subl %r15d, %ebp
cmpl $0x2, %ebp
jge 0x401950
testq %rbx, %rbx
jne 0x4017da
leaq 0x988b4(%rip), %rdi     # 0x49a075
callq 0x40a9f0
testq %rax, %rax
je 0x4017d3
movq %rax, %rbx
cmpb $0x0, (%rax)
jne 0x4017da
leaq 0x988a2(%rip), %rbx     # 0x49a07c
movq (%r14,%r15,8), %r12
movl $0x400, %esi            # imm = 0x400
movq %r12, %rdi
callq 0x401050
movq %rax, %r13
movq %rbx, %rdi
callq 0x44efc0
testq %rax, %rax
je 0x4019d8
movq %rax, %r15
movq %rax, %rdi
callq 0x44f220
testq %rax, %rax
je 0x4018ee
movq %rax, %rbp
movq $0x0, 0x8(%rsp)
xorl %r14d, %r14d
cmpb $0x8, 0x12(%rbp)
jne 0x40183e
addq $0x13, %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x401080
testl %eax, %eax
je 0x401853
movq %r15, %rdi
callq 0x44f220
movq %rax, %rbp
testq %rax, %rax
jne 0x401822
jmp 0x4018fa
movl $0x400, %esi            # imm = 0x400
leaq 0x10(%rsp), %rdi
leaq 0x98886(%rip), %rdx     # 0x49a0ea
movq %rbx, %rcx
movq %rbp, %r8
movq %rdi, %rbp
xorl %eax, %eax
callq 0x40b940
incq %r14
movq %rbp, %rdi
callq 0x451610
testl %eax, %eax
je 0x401896
leaq 0x98866(%rip), %rdi     # 0x49a0f0
movq %rbp, %rsi
xorl %eax, %eax
callq 0x452f00
jmp 0x40183e
movq 0x8(%rsp), %rbp
incq %rbp
movq %rbp, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
mulq %rcx
cmpb $0x1, 0xcaa37(%rip)     # 0x4cc2f0
jne 0x4018e4
testq %rbp, %rbp
je 0x4018e4
shrq $0x4, %rdx
imulq $0x3e8, %rdx, %rax      # imm = 0x3E8
movq %rbp, %rcx
subq %rax, %rcx
jne 0x4018e4
leaq 0x98820(%rip), %rdi     # 0x49a0fa
movq %rbp, %rsi
xorl %eax, %eax
callq 0x40b870
movq %rbp, 0x8(%rsp)
jmp 0x40183e
movq $0x0, 0x8(%rsp)
xorl %r14d, %r14d
movq %r15, %rdi
callq 0x44f1f0
cmpl $-0x1, %eax
jne 0x401918
leaq 0x987ff(%rip), %rdi     # 0x49a10d
movq %rbx, %rsi
xorl %eax, %eax
callq 0x452f00
leaq 0x987db(%rip), %rdi     # 0x49a0fa
xorl %ebx, %ebx
movq 0x8(%rsp), %r15
movq %r15, %rsi
xorl %eax, %eax
callq 0x40b870
cmpq %r15, %r14
jne 0x40195a
movl %ebx, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x40115a
jmp 0x4019bf
callq 0x401100
jmp 0x4017b5
callq 0x40111c
jmp 0x4019bf
cmpl $0x68, %eax
jne 0x4019ba
callq 0x4019ee
movq $0x4cb088, %rax         # imm = 0x4CB088
movq (%rax), %rsi
leaq 0x98723(%rip), %rdi     # 0x49a09f
xorl %eax, %eax
callq 0x40b870
leaq 0x98795(%rip), %rdi     # 0x49a11f
callq 0x412690
leaq 0x987b9(%rip), %rdi     # 0x49a14f
callq 0x412690
leaq 0x987d4(%rip), %rdi     # 0x49a176
callq 0x412690
leaq 0x987da(%rip), %rdi     # 0x49a188
callq 0x412690
jmp 0x4019ce
cmpl $0x56, %eax
je 0x4019c9
callq 0x40113e
movl $0x1, %ebx
jmp 0x401935
callq 0x4019ee
movl $0x40, %edi
callq 0x40ad40
leaq 0x986fa(%rip), %rsi     # 0x49a0d9
movl $0x47, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x453190