	.file	"198385.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mkstemp failed"
.LC1:
	.string	"PASS"
	.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
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3184
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 6365935029581801840
	movabs	rdx, 24866934413088856
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -40044[rbp], -1
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	cmp	eax, -1
	jne	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L2:
	mov	DWORD PTR -40040[rbp], 0
	jmp	.L3
.L6:
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -40036[rbp], eax
	cmp	DWORD PTR -40036[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 23
	je	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	je	.L5
.L4:
	mov	eax, DWORD PTR -40036[rbp]
	mov	DWORD PTR -40044[rbp], eax
	add	DWORD PTR -40040[rbp], 1
.L3:
	lea	rax, -40032[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	nitems@PLT
	cmp	DWORD PTR -40040[rbp], eax
	jb	.L6
.L5:
	mov	DWORD PTR -40040[rbp], 0
	jmp	.L7
.L8:
	lea	rdx, -40032[rbp]
	mov	eax, DWORD PTR -40040[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -40036[rbp], eax
	add	DWORD PTR -40040[rbp], 1
.L7:
	cmp	DWORD PTR -40040[rbp], 999
	jbe	.L8
	mov	eax, DWORD PTR -40044[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -40040[rbp], 0
	jmp	.L9
.L10:
	lea	rdx, -40032[rbp]
	mov	eax, DWORD PTR -40040[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -40036[rbp], eax
	add	DWORD PTR -40040[rbp], 1
.L9:
	cmp	DWORD PTR -40040[rbp], 999
	jbe	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"198385.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"mkstemp failed\000"
	.align	2
.LC2:
	.ascii	"PASS\000"
	.align	2
.LC0:
	.ascii	"pipe.XXXXXXXXXX\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #39936
	sub	sp, sp, #100
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L12+4
	sub	ip, fp, #32
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-3168]
	sub	r3, fp, #32
	mov	r0, r3
	bl	mkstemp
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r1, .L12+8
	mov	r0, #1
	bl	err
.L2:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3164]
	b	.L3
.L6:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-3160]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	cmn	r3, #1
	bne	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #23
	beq	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #24
	beq	.L5
.L4:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	str	r3, [r2, #-3168]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	add	r3, r3, #1
	str	r3, [r2, #-3164]
.L3:
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #84
	mov	r0, r3
	bl	nitems
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	cmp	r3, r2
	bcc	.L6
.L5:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3164]
	b	.L7
.L8:
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #84
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3164]
	lsl	r2, r2, #2
	add	r3, r3, r2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	pipe
	str	r0, [r4, #-3160]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	add	r3, r3, #1
	str	r3, [r2, #-3164]
.L7:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	cmp	r3, #1000
	bcc	.L8
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3168]
	bl	close
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3164]
	b	.L9
.L10:
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #84
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3164]
	lsl	r2, r2, #2
	add	r3, r3, r2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	pipe
	str	r0, [r4, #-3160]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	add	r3, r3, #1
	str	r3, [r2, #-3164]
.L9:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	cmp	r3, #1000
	bcc	.L10
	ldr	r0, .L12+12
	bl	puts
	sub	r3, fp, #32
	mov	r0, r3
	bl	unlink
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
