	.file	"555895.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
	.type	rcsid, @object
	.size	rcsid, 10
rcsid:
	.string	"$FreeBSD$"
.LC0:
	.string	"mktemp"
.LC1:
	.string	"dqt:u"
.LC2:
	.string	"tmp"
.LC3:
	.string	"TMPDIR"
.LC4:
	.string	"/tmp/"
.LC5:
	.string	"%s%s.XXXXXXXX"
.LC6:
	.string	"%s/%s.XXXXXXXX"
.LC7:
	.string	"cannot generate template"
.LC8:
	.string	"mkdtemp failed on %s"
.LC9:
	.string	"mkstemp failed on %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -60[rbp], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L2
.L8:
	cmp	DWORD PTR -40[rbp], 117
	je	.L3
	cmp	DWORD PTR -40[rbp], 117
	jg	.L4
	cmp	DWORD PTR -40[rbp], 116
	je	.L5
	cmp	DWORD PTR -40[rbp], 116
	jg	.L4
	cmp	DWORD PTR -40[rbp], 100
	je	.L6
	cmp	DWORD PTR -40[rbp], 113
	je	.L7
	jmp	.L4
.L6:
	add	DWORD PTR -56[rbp], 1
	jmp	.L2
.L7:
	add	DWORD PTR -52[rbp], 1
	jmp	.L2
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -48[rbp], 1
	jmp	.L2
.L3:
	add	DWORD PTR -44[rbp], 1
	jmp	.L2
.L4:
	call	usage
.L2:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L8
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -80[rbp], rax
	cmp	DWORD PTR -48[rbp], 0
	jne	.L9
	cmp	DWORD PTR -68[rbp], 0
	jg	.L9
	mov	DWORD PTR -48[rbp], 1
	lea	rax, .LC2[rip]
	mov	QWORD PTR -24[rbp], rax
.L9:
	cmp	DWORD PTR -48[rbp], 0
	je	.L15
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L11
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	jmp	.L12
.L11:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
.L12:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	jne	.L15
	cmp	DWORD PTR -52[rbp], 0
	je	.L13
	mov	eax, 1
	jmp	.L24
.L13:
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L23:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	add	QWORD PTR -80[rbp], 8
	sub	DWORD PTR -68[rbp], 1
.L16:
	cmp	DWORD PTR -56[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	mkdtemp@PLT
	test	rax, rax
	jne	.L18
	mov	DWORD PTR -60[rbp], 1
	cmp	DWORD PTR -52[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	puts@PLT
	cmp	DWORD PTR -44[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	rmdir@PLT
	jmp	.L19
.L17:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L20
	mov	DWORD PTR -60[rbp], 1
	cmp	DWORD PTR -52[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -44[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	unlink@PLT
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	puts@PLT
.L19:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
.L22:
	mov	QWORD PTR -32[rbp], 0
.L15:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	jne	.L23
	cmp	DWORD PTR -68[rbp], 0
	jg	.L23
	mov	eax, DWORD PTR -60[rbp]
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC10:
	.string	"usage: mktemp [-d] [-q] [-t prefix] [-u] template ...\n"
	.align 8
.LC11:
	.string	"       mktemp [-d] [-q] [-u] -t prefix \n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"555895.c"
	.text
	.section	.rodata
	.align	2
	.type	rcsid, %object
	.size	rcsid, 10
rcsid:
	.ascii	"$FreeBSD$\000"
	.align	2
.LC0:
	.ascii	"mktemp\000"
	.align	2
.LC1:
	.ascii	"dqt:u\000"
	.align	2
.LC2:
	.ascii	"tmp\000"
	.align	2
.LC3:
	.ascii	"TMPDIR\000"
	.align	2
.LC4:
	.ascii	"/tmp/\000"
	.align	2
.LC5:
	.ascii	"%s%s.XXXXXXXX\000"
	.align	2
.LC6:
	.ascii	"%s/%s.XXXXXXXX\000"
	.align	2
.LC7:
	.ascii	"cannot generate template\000"
	.align	2
.LC8:
	.ascii	"mkdtemp failed on %s\000"
	.align	2
.LC9:
	.ascii	"mkstemp failed on %s\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
	ldr	r3, .L27+4
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L9:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #100
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L4
.L8:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L2
.L7:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L2
.L6:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L2
.L4:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L27+12
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getopt
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L27+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bgt	.L10
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L27+20
	str	r3, [fp, #-40]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L27+24
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L12
	sub	r0, fp, #48
	ldr	r3, [fp, #-40]
	ldr	r2, .L27+28
	ldr	r1, .L27+32
	bl	asprintf
	b	.L13
.L12:
	sub	r0, fp, #48
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+36
	bl	asprintf
.L13:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L14
	mov	r3, #1
	b	.L25
.L14:
	ldr	r1, .L27+40
	mov	r0, #1
	bl	errx
.L24:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	str	r3, [fp, #-56]
.L17:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	mkdtemp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L27+44
	bl	warn
	b	.L20
.L19:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	rmdir
	b	.L20
.L18:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	mkstemp
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L21
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L27+48
	bl	warn
	b	.L20
.L21:
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	unlink
.L22:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	puts
.L20:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	free
.L23:
	mov	r3, #0
	str	r3, [fp, #-48]
.L16:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bgt	.L24
	ldr	r3, [fp, #-44]
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	.LC0
	.word	optarg
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
.LC11:
	.ascii	"usage: mktemp [-d] [-q] [-t prefix] [-u] template ."
	.ascii	"..\012\000"
	.align	2
.LC12:
	.ascii	"       mktemp [-d] [-q] [-u] -t prefix \012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L30
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L30+4
	bl	fwrite
	ldr	r3, .L30
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L30+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L31:
	.align	2
.L30:
	.word	stderr
	.word	.LC11
	.word	.LC12
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
