	.file	"371817.c"
	.intel_syntax noprefix
	.text
	.globl	barrier
	.bss
	.align 32
	.type	barrier, @object
	.size	barrier, 32
barrier:
	.zero	32
	.globl	second_child
	.align 4
	.type	second_child, @object
	.size	second_child, 4
second_child:
	.zero	4
	.text
	.globl	breakpoint_function
	.type	breakpoint_function, @function
breakpoint_function:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	breakpoint_function, .-breakpoint_function
	.globl	child_function_0
	.type	child_function_0, @function
child_function_0:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 1
	call	usleep@PLT
	mov	eax, DWORD PTR second_child[rip]
	test	eax, eax
	je	.L4
	jmp	.L3
.L4:
	call	breakpoint_function
.L3:
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L5
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	child_function_0, .-child_function_0
	.globl	child_function_1
	.type	child_function_1, @function
child_function_1:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 1
	call	usleep@PLT
	mov	eax, DWORD PTR second_child[rip]
	test	eax, eax
	jne	.L8
	jmp	.L7
.L8:
	call	breakpoint_function
.L7:
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L9
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	child_function_1, .-child_function_1
	.type	wait_threads, @function
wait_threads:
.LFB9:
	.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
.LFE9:
	.size	wait_threads, .-wait_threads
	.section	.rodata
.LC0:
	.string	"the_stack_data/371817.c"
.LC1:
	.string	"res == 0"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 3
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_barrier_init@PLT
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, child_function_0[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 90
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L13:
	lea	rax, -32[rbp]
	add	rax, 8
	mov	ecx, 0
	lea	rdx, child_function_1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 92
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L14:
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	call	wait_threads
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.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	"371817.c"
	.text
	.comm	barrier,20,4
	.comm	second_child,4,4
	.align	2
	.global	breakpoint_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	breakpoint_function, %function
breakpoint_function:
	@ 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
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	breakpoint_function, .-breakpoint_function
	.align	2
	.global	child_function_0
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_function_0, %function
child_function_0:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r0, .L6
	bl	pthread_barrier_wait
	b	.L3
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #1
	bl	usleep
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	b	.L3
.L4:
	bl	breakpoint_function
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	mov	r0, #0
	bl	pthread_exit
.L7:
	.align	2
.L6:
	.word	barrier
	.word	second_child
	.size	child_function_0, .-child_function_0
	.align	2
	.global	child_function_1
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_function_1, %function
child_function_1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r0, .L12
	bl	pthread_barrier_wait
	b	.L9
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #1
	bl	usleep
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	b	.L9
.L10:
	bl	breakpoint_function
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	mov	r0, #0
	bl	pthread_exit
.L13:
	.align	2
.L12:
	.word	barrier
	.word	second_child
	.size	child_function_1, .-child_function_1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_threads, %function
wait_threads:
	@ 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	wait_threads, .-wait_threads
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/371817.c\000"
	.align	2
.LC1:
	.ascii	"res == 0\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #3
	mov	r1, #0
	ldr	r0, .L20+4
	bl	pthread_barrier_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L20+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L20+12
	mov	r2, #90
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L17:
	sub	r3, fp, #16
	add	r0, r3, #4
	mov	r3, #0
	ldr	r2, .L20+24
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L20+12
	mov	r2, #92
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L18:
	ldr	r0, .L20+4
	bl	pthread_barrier_wait
	bl	wait_threads
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r0, #0
	bl	exit
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	barrier
	.word	child_function_0
	.word	__PRETTY_FUNCTION__.5928
	.word	.LC0
	.word	.LC1
	.word	child_function_1
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5928, %object
	.size	__PRETTY_FUNCTION__.5928, 5
__PRETTY_FUNCTION__.5928:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
