	.file	"108526.c"
	.intel_syntax noprefix
	.text
	.local	threads_started_barrier
	.comm	threads_started_barrier,32,32
	.type	thread_function, @function
thread_function:
.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
	lea	rdi, threads_started_barrier[rip]
	call	pthread_barrier_wait@PLT
.L2:
	mov	edi, 1
	call	usleep@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	thread_function, .-thread_function
	.type	all_started, @function
all_started:
.LFB7:
	.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
.LFE7:
	.size	all_started, .-all_started
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 3
	mov	esi, 0
	lea	rdi, threads_started_barrier[rip]
	call	pthread_barrier_init@PLT
	mov	QWORD PTR -40[rbp], 1
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, 1
	lea	rdx, -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thread_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -44[rbp], eax
	add	QWORD PTR -40[rbp], 1
.L5:
	cmp	QWORD PTR -40[rbp], 2
	jle	.L6
	lea	rdi, threads_started_barrier[rip]
	call	pthread_barrier_wait@PLT
	call	all_started
	mov	edi, 180
	call	sleep@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"108526.c"
	.text
	.local	threads_started_barrier
	.comm	threads_started_barrier,20,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_function, %function
thread_function:
	@ 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, .L3
	bl	pthread_barrier_wait
.L2:
	mov	r0, #1
	bl	usleep
	b	.L2
.L4:
	.align	2
.L3:
	.word	threads_started_barrier
	.size	thread_function, .-thread_function
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	all_started, %function
all_started:
	@ 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	all_started, .-all_started
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #3
	mov	r1, #0
	ldr	r0, .L10+4
	bl	pthread_barrier_init
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	sub	r2, fp, #16
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L10+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L8
	ldr	r0, .L10+4
	bl	pthread_barrier_wait
	bl	all_started
	mov	r0, #180
	bl	sleep
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	threads_started_barrier
	.word	thread_function
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
