	.file	"244784.c"
	.intel_syntax noprefix
	.text
	.type	_thread_dummy, @function
_thread_dummy:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
.L2:
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	_thread_dummy, .-_thread_dummy
	.type	test0, @function
test0:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test0, .-test0
	.type	test1, @function
test1:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8216[rbp], 0
	lea	rax, -8216[rbp]
	mov	ecx, 0
	lea	rdx, _thread_dummy[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 8192
	call	tls_create@PLT
	lea	rax, -8208[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_read@PLT
	lea	rax, -8208[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	mov	eax, 0
	call	tls_destroy@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test1, .-test1
	.type	test2, @function
test2:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, _thread_dummy[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -16[rbp], 16843009
	mov	DWORD PTR -12[rbp], 0
	mov	edi, 8192
	call	tls_create@PLT
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_read@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	movzx	eax, BYTE PTR -12[rbp+rax]
	cmp	al, 1
	je	.L10
	mov	eax, 0
	jmp	.L13
.L10:
	add	DWORD PTR -28[rbp], 1
.L9:
	cmp	DWORD PTR -28[rbp], 3
	jle	.L12
	mov	eax, 1
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test2, .-test2
	.type	_thread_create, @function
_thread_create:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 33686018
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 8192
	call	tls_create@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sem_post@PLT
.L16:
	jmp	.L16
	.cfi_endproc
.LFE10:
	.size	_thread_create, .-_thread_create
	.type	test3, @function
test3:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	lea	rax, -48[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	lea	rdx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	lea	rdx, _thread_create[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	tls_clone@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_read@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	movzx	eax, BYTE PTR -12[rbp+rax]
	cmp	al, 2
	je	.L20
	mov	eax, 0
	jmp	.L23
.L20:
	add	DWORD PTR -60[rbp], 1
.L19:
	cmp	DWORD PTR -60[rbp], 3
	jle	.L22
	mov	eax, 1
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	test3, .-test3
	.type	_thread_create2, @function
_thread_create2:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 33686018
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 8192
	call	tls_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 32
	mov	rdi, rax
	call	sem_wait@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sem_post@PLT
.L26:
	jmp	.L26
	.cfi_endproc
.LFE12:
	.size	_thread_create2, .-_thread_create2
	.type	test4, @function
test4:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -16[rbp], 16843009
	mov	DWORD PTR -12[rbp], 0
	lea	rax, -80[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	lea	rax, -80[rbp]
	add	rax, 32
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	lea	rdx, -80[rbp]
	lea	rax, -88[rbp]
	mov	rcx, rdx
	lea	rdx, _thread_create2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	tls_clone@PLT
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	lea	rax, -80[rbp]
	add	rax, 32
	mov	rdi, rax
	call	sem_post@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_read@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L29
.L32:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -12[rbp+rax]
	cmp	al, 1
	je	.L30
	mov	eax, 0
	jmp	.L33
.L30:
	add	DWORD PTR -92[rbp], 1
.L29:
	cmp	DWORD PTR -92[rbp], 3
	jle	.L32
	mov	eax, 1
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	test4, .-test4
	.type	_thread_destroy, @function
_thread_destroy:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 33686018
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 8192
	call	tls_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 32
	mov	rdi, rax
	call	sem_wait@PLT
	mov	eax, 0
	call	tls_destroy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sem_post@PLT
.L36:
	jmp	.L36
	.cfi_endproc
.LFE14:
	.size	_thread_destroy, .-_thread_destroy
	.type	test5, @function
test5:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -16[rbp], 16843009
	mov	DWORD PTR -12[rbp], 0
	lea	rax, -80[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	lea	rax, -80[rbp]
	add	rax, 32
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	lea	rdx, -80[rbp]
	lea	rax, -88[rbp]
	mov	rcx, rdx
	lea	rdx, _thread_destroy[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	tls_clone@PLT
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	lea	rax, -80[rbp]
	add	rax, 32
	mov	rdi, rax
	call	sem_post@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_read@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	movzx	eax, BYTE PTR -12[rbp+rax]
	cmp	al, 1
	je	.L40
	mov	eax, 0
	jmp	.L43
.L40:
	add	DWORD PTR -92[rbp], 1
.L39:
	cmp	DWORD PTR -92[rbp], 3
	jle	.L42
	mov	eax, 1
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	test5, .-test5
	.type	_thread_clone_timed, @function
_thread_clone_timed:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 33686018
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 4194304
	call	tls_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sem_post@PLT
.L46:
	jmp	.L46
	.cfi_endproc
.LFE16:
	.size	_thread_clone_timed, .-_thread_clone_timed
	.globl	test6
	.type	test6, @function
test6:
.LFB17:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -12[rbp], 16843009
	lea	rax, -48[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	sem_init@PLT
	lea	rdx, -48[rbp]
	lea	rax, -80[rbp]
	mov	rcx, rdx
	lea	rdx, _thread_clone_timed[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	call	clock@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	tls_clone@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	call	clock@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, QWORD PTR -72[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	comisd	xmm0, QWORD PTR -56[rbp]
	jbe	.L55
	mov	eax, 1
	jmp	.L52
.L55:
	mov	eax, 0
.L52:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	test6, .-test6
	.globl	_thread_create_dummy
	.type	_thread_create_dummy, @function
_thread_create_dummy:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 8
	call	tls_create@PLT
	mov	eax, 0
	call	tls_destroy@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE18:
	.size	_thread_create_dummy, .-_thread_create_dummy
	.globl	test7
	.type	test7, @function
test7:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -12[rbp], 16843009
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, _thread_create_dummy[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	test	eax, eax
	jne	.L58
	mov	eax, 0
	jmp	.L61
.L58:
	mov	edi, 2
	call	tls_create@PLT
	lea	rax, -12[rbp]
	mov	rdx, rax
	mov	esi, 4
	mov	edi, 0
	call	tls_write@PLT
	test	eax, eax
	jne	.L60
	mov	eax, 0
	jmp	.L61
.L60:
	mov	eax, 1
.L61:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	test7, .-test7
	.section	.data.rel.local,"aw"
	.align 32
	.type	test_arr, @object
	.size	test_arr, 64
test_arr:
	.quad	test0
	.quad	test1
	.quad	test2
	.quad	test3
	.quad	test4
	.quad	test5
	.quad	test6
	.quad	test7
	.section	.rodata
.LC2:
	.string	"/dev/null"
.LC3:
	.string	"test %i : PASS\n"
.LC4:
	.string	"test %i : FAIL\n"
.LC5:
	.string	"total score was %i / %i\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -32[rbp], eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	WORD PTR -20[rbp], 64
	mov	DWORD PTR -36[rbp], 0
	jmp	.L64
.L69:
	mov	DWORD PTR -44[rbp], 0
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L65
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, test_arr[rip]
	mov	rax, QWORD PTR [rdx+rax]
	call	rax
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, -44[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 0
	call	exit@PLT
.L65:
	lea	rax, -24[rbp]
	mov	edx, 2000
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	test	eax, eax
	je	.L66
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -44[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
.L66:
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L67
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L68
.L67:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L68:
	add	DWORD PTR -36[rbp], 1
.L64:
	cmp	DWORD PTR -36[rbp], 7
	jle	.L69
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 8
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 8
.LC1:
	.long	1202590843
	.long	1065646817
	.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	"244784.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_thread_dummy, %function
_thread_dummy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
.L2:
	b	.L2
	.size	_thread_dummy, .-_thread_dummy
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test0, %function
test0:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	test0, .-test0
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 8200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8192
	sub	sp, sp, #8
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-8]
	sub	r0, fp, #8192
	sub	r0, r0, #4
	sub	r0, r0, #8
	mov	r3, #0
	ldr	r2, .L8+4
	mov	r1, #0
	bl	pthread_create
	mov	r0, #8192
	bl	tls_create
	sub	r3, fp, #8192
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_read
	sub	r3, fp, #8192
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	bl	tls_destroy
	mov	r3, #1
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	_thread_dummy
	.size	test1, .-test1
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2, %function
test2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r0, fp, #24
	mov	r3, #0
	ldr	r2, .L17+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, .L17+8
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #8192
	bl	tls_create
	sub	r3, fp, #16
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_read
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L14:
	sub	r2, fp, #12
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L12
	mov	r3, #0
	b	.L15
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L14
	mov	r3, #1
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	_thread_dummy
	.word	16843009
	.size	test2, .-test2
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_thread_create, %function
_thread_create:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L22+4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r0, #8192
	bl	tls_create
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	ldr	r0, [fp, #-16]
	bl	sem_post
.L20:
	b	.L20
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	33686018
	.size	_thread_create, .-_thread_create
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test3, %function
test3:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #28
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	sub	r3, fp, #28
	sub	r0, fp, #36
	ldr	r2, .L31+4
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #28
	mov	r0, r3
	bl	sem_wait
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	tls_clone
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_read
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L25
.L28:
	sub	r2, fp, #12
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L26
	mov	r3, #0
	b	.L29
.L26:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L25:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L28
	mov	r3, #1
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC3
	.word	_thread_create
	.size	test3, .-test3
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_thread_create2, %function
_thread_create2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L36+4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r0, #8192
	bl	tls_create
	ldr	r0, [fp, #-16]
	bl	sem_post
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r0, r3
	bl	sem_wait
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	ldr	r0, [fp, #-16]
	bl	sem_post
.L34:
	b	.L34
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	33686018
	.size	_thread_create2, .-_thread_create2
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test4, %function
test4:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, .L45+4
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	sub	r3, fp, #48
	add	r3, r3, #16
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	sub	r3, fp, #48
	sub	r0, fp, #56
	ldr	r2, .L45+8
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #48
	mov	r0, r3
	bl	sem_wait
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	tls_clone
	sub	r3, fp, #16
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	sub	r3, fp, #48
	add	r3, r3, #16
	mov	r0, r3
	bl	sem_post
	sub	r3, fp, #48
	mov	r0, r3
	bl	sem_wait
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_read
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L39
.L42:
	sub	r2, fp, #12
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L40
	mov	r3, #0
	b	.L43
.L40:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L39:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L42
	mov	r3, #1
.L43:
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC5
	.word	16843009
	.word	_thread_create2
	.size	test4, .-test4
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_thread_destroy, %function
_thread_destroy:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L50+4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r0, #8192
	bl	tls_create
	ldr	r0, [fp, #-16]
	bl	sem_post
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r0, r3
	bl	sem_wait
	bl	tls_destroy
	ldr	r0, [fp, #-16]
	bl	sem_post
.L48:
	b	.L48
.L51:
	.align	2
.L50:
	.word	.LC6
	.word	33686018
	.size	_thread_destroy, .-_thread_destroy
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test5, %function
test5:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, .L59+4
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	sub	r3, fp, #48
	add	r3, r3, #16
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	sub	r3, fp, #48
	sub	r0, fp, #56
	ldr	r2, .L59+8
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #48
	mov	r0, r3
	bl	sem_wait
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	tls_clone
	sub	r3, fp, #16
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	sub	r3, fp, #48
	add	r3, r3, #16
	mov	r0, r3
	bl	sem_post
	sub	r3, fp, #48
	mov	r0, r3
	bl	sem_wait
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_read
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L53
.L56:
	sub	r2, fp, #12
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L54
	mov	r3, #0
	b	.L57
.L54:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L53:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L56
	mov	r3, #1
.L57:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC7
	.word	16843009
	.word	_thread_destroy
	.size	test5, .-test5
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_thread_clone_timed, %function
_thread_clone_timed:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L64+4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r0, #4194304
	bl	tls_create
	ldr	r0, [fp, #-16]
	bl	sem_post
.L62:
	b	.L62
.L65:
	.align	2
.L64:
	.word	.LC8
	.word	33686018
	.size	_thread_clone_timed, .-_thread_clone_timed
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test6
	.syntax unified
	.arm
	.fpu softvfp
	.type	test6, %function
test6:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, .L74+4
	str	r3, [fp, #-12]
	sub	r3, fp, #28
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	sem_init
	sub	r3, fp, #28
	sub	r0, fp, #48
	ldr	r2, .L74+8
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #28
	mov	r0, r3
	bl	sem_wait
	bl	clock
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	tls_clone
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	bl	clock
	str	r0, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L74+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, .L74+16
	ldr	r3, .L74+20
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	mov	r3, #1
	b	.L70
.L73:
	mov	r3, #0
.L70:
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC9
	.word	16843009
	.word	_thread_clone_timed
	.word	1093567616
	.word	1202590843
	.word	1065646817
	.size	test6, .-test6
	.align	2
	.global	_thread_create_dummy
	.syntax unified
	.arm
	.fpu softvfp
	.type	_thread_create_dummy, %function
_thread_create_dummy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r0, #8
	bl	tls_create
	bl	tls_destroy
	mov	r0, #0
	bl	pthread_exit
	.size	_thread_create_dummy, .-_thread_create_dummy
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test7
	.syntax unified
	.arm
	.fpu softvfp
	.type	test7, %function
test7:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L83+4
	str	r3, [fp, #-12]
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L83+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	mov	r3, #0
	b	.L81
.L78:
	mov	r0, #2
	bl	tls_create
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	mov	r0, #0
	bl	tls_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	mov	r3, #0
	b	.L81
.L80:
	mov	r3, #1
.L81:
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC10
	.word	16843009
	.word	_thread_create_dummy
	.size	test7, .-test7
	.data
	.align	2
	.type	test_arr, %object
	.size	test_arr, 32
test_arr:
	.word	test0
	.word	test1
	.word	test2
	.word	test3
	.word	test4
	.word	test5
	.word	test6
	.word	test7
	.section	.rodata
	.align	2
.LC11:
	.ascii	"/dev/null\000"
	.align	2
.LC12:
	.ascii	"test %i : PASS\012\000"
	.align	2
.LC13:
	.ascii	"test %i : FAIL\012\000"
	.align	2
.LC14:
	.ascii	"total score was %i / %i\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L94
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r1, #1
	ldr	r0, .L94+4
	bl	open
	str	r0, [fp, #-32]
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	mov	r3, #64
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L86
.L91:
	mov	r3, #0
	str	r3, [fp, #-44]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L87
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	dup2
	mov	r1, #2
	ldr	r0, [fp, #-32]
	bl	dup2
	ldr	r2, .L94+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	blx	r3
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-12]
	sub	r1, fp, #44
	mov	r2, #4
	mov	r0, r3
	bl	write
	mov	r0, #0
	bl	exit
.L87:
	sub	r3, fp, #24
	mov	r2, #2000
	mov	r1, #1
	mov	r0, r3
	bl	poll
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-16]
	sub	r1, fp, #44
	mov	r2, #4
	mov	r0, r3
	bl	read
.L88:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r1, #9
	ldr	r0, [fp, #-28]
	bl	kill
	sub	r3, fp, #48
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	waitpid
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L89
	ldr	r1, [fp, #-36]
	ldr	r0, .L94+12
	bl	printf
	b	.L90
.L89:
	ldr	r1, [fp, #-36]
	ldr	r0, .L94+16
	bl	printf
.L90:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L86:
	ldr	r3, [fp, #-36]
	cmp	r3, #7
	ble	.L91
	mov	r2, #8
	ldr	r1, [fp, #-40]
	ldr	r0, .L94+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L94
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L93
	bl	__stack_chk_fail
.L93:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L95:
	.align	2
.L94:
	.word	.LC15
	.word	.LC11
	.word	test_arr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
