	.file	"70450679.c"
	.intel_syntax noprefix
	.text
	.globl	child1
	.type	child1, @function
child1:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_barrier_wait@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	child1, .-child1
	.globl	sleep1
	.type	sleep1, @function
sleep1:
.LFB7:
	.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, 10
	call	sleep@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_barrier_wait@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sleep1, .-sleep1
	.globl	exit1
	.type	exit1, @function
exit1:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	exit1, .-exit1
	.section	.rodata
	.align 8
.LC0:
	.string	"\ninitialise a barrier with zero count\n"
.LC1:
	.string	"\ninitialise a barrier twice\n"
	.align 8
.LC2:
	.string	"\ninitialise a barrier which has threads waiting on it\n"
	.align 8
.LC3:
	.string	"\ndestroy a barrier that has waiting threads\n"
	.align 8
.LC4:
	.string	"\ndestroy a barrier that was never initialised\n"
.LC5:
	.string	"the_stack_data/70450679.c"
.LC6:
	.string	"bar5"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	pthread_barrier_init@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	pthread_barrier_init@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	pthread_barrier_init@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	pthread_barrier_init@PLT
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -72[rbp]
	mov	rcx, rdx
	lea	rdx, sleep1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -88[rbp]
	mov	rcx, rdx
	lea	rdx, child1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	pthread_barrier_init@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	pthread_barrier_init@PLT
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	lea	rdx, sleep1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -80[rbp]
	mov	rcx, rdx
	lea	rdx, child1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_barrier_destroy@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	lea	rax, -56[rbp]
	mov	ecx, 0
	lea	rdx, exit1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 94
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 32
	mov	esi, 1
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_barrier_destroy@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"70450679.c"
	.text
	.align	2
	.global	child1
	.syntax unified
	.arm
	.fpu softvfp
	.type	child1, %function
child1:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	pthread_barrier_wait
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	child1, .-child1
	.align	2
	.global	sleep1
	.syntax unified
	.arm
	.fpu softvfp
	.type	sleep1, %function
sleep1:
	@ 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, #10
	bl	sleep
	ldr	r0, [fp, #-8]
	bl	pthread_barrier_wait
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sleep1, .-sleep1
	.align	2
	.global	exit1
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit1, %function
exit1:
	@ 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, #1
	bl	sleep
	mov	r0, #0
	bl	exit
	.size	exit1, .-exit1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012initialise a barrier with zero count\012\000"
	.align	2
.LC1:
	.ascii	"\012initialise a barrier twice\012\000"
	.align	2
.LC2:
	.ascii	"\012initialise a barrier which has threads waiting "
	.ascii	"on it\012\000"
	.align	2
.LC3:
	.ascii	"\012destroy a barrier that has waiting threads\012\000"
	.align	2
.LC4:
	.ascii	"\012destroy a barrier that was never initialised\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"the_stack_data/70450679.c\000"
	.align	2
.LC6:
	.ascii	"bar5\000"
	.align	2
.LC7:
	.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, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	pthread_barrier_init
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L9+12
	bl	fwrite
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	pthread_barrier_init
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	pthread_barrier_init
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L9+16
	bl	fwrite
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	pthread_barrier_init
	sub	r0, fp, #40
	ldr	r3, [fp, #-20]
	ldr	r2, .L9+20
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #48
	ldr	r3, [fp, #-20]
	ldr	r2, .L9+24
	mov	r1, #0
	bl	pthread_create
	mov	r0, #1
	bl	sleep
	mov	r2, #3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	pthread_barrier_init
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L9+28
	bl	fwrite
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	pthread_barrier_init
	sub	r0, fp, #36
	ldr	r3, [fp, #-16]
	ldr	r2, .L9+20
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #44
	ldr	r3, [fp, #-16]
	ldr	r2, .L9+24
	mov	r1, #0
	bl	pthread_create
	mov	r0, #1
	bl	sleep
	ldr	r0, [fp, #-16]
	bl	pthread_barrier_destroy
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L9+32
	bl	fwrite
	sub	r0, fp, #32
	mov	r3, #0
	ldr	r2, .L9+36
	mov	r1, #0
	bl	pthread_create
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L9+40
	mov	r2, #94
	ldr	r1, .L9+44
	ldr	r0, .L9+48
	bl	__assert_fail
.L7:
	mov	r2, #20
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	memset
	ldr	r0, [fp, #-12]
	bl	pthread_barrier_destroy
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	.LC7
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	sleep1
	.word	child1
	.word	.LC3
	.word	.LC4
	.word	exit1
	.word	__PRETTY_FUNCTION__.6915
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6915, %object
	.size	__PRETTY_FUNCTION__.6915, 5
__PRETTY_FUNCTION__.6915:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
