	.file	"122307.c"
	.intel_syntax noprefix
	.text
	.globl	threads
	.bss
	.align 32
	.type	threads, @object
	.size	threads, 80
threads:
	.zero	80
	.globl	barrier
	.align 32
	.type	barrier, @object
	.size	barrier, 32
barrier:
	.zero	32
	.globl	zero
	.align 4
	.type	zero, @object
	.size	zero, 4
zero:
	.zero	4
	.section	.rodata
.LC0:
	.string	"wait"
	.align 8
.LC1:
	.string	"Unexpected wait status 0x%x from child %d\n"
.LC2:
	.string	"fork"
	.text
	.type	thread_forks, @function
thread_forks:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L8:
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L3
	lea	rcx, -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 127
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L3:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L7
	mov	edi, 0
	call	exit@PLT
.L7:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	add	DWORD PTR -16[rbp], 1
.L2:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L8
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	thread_forks, .-thread_forks
	.globl	break_out
	.bss
	.align 4
	.type	break_out, @object
	.size	break_out, 4
break_out:
	.zero	4
	.text
	.type	thread_breakpoint, @function
thread_breakpoint:
.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
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	jmp	.L11
.L12:
	mov	edi, 1
	call	usleep@PLT
.L11:
	mov	eax, DWORD PTR break_out[rip]
	test	eax, eax
	je	.L12
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_breakpoint, .-thread_breakpoint
	.section	.rodata
.LC3:
	.string	"the_stack_data/122307.c"
.LC4:
	.string	"ret == 0"
	.text
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 180
	call	alarm@PLT
	mov	edx, 11
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_barrier_init@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, threads[rip]
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thread_forks[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 119
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L16:
	add	DWORD PTR -24[rbp], 1
.L15:
	cmp	DWORD PTR -24[rbp], 9
	jle	.L17
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread_breakpoint[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 125
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L18:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, threads[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 131
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L20:
	add	DWORD PTR -24[rbp], 1
.L19:
	cmp	DWORD PTR -24[rbp], 9
	jle	.L21
	mov	DWORD PTR break_out[rip], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	cmp	DWORD PTR -20[rbp], 0
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 136
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L22:
	mov	eax, 0
	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
.LFE8:
	.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	"122307.c"
	.text
	.comm	threads,40,4
	.comm	barrier,20,4
	.comm	zero,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wait\000"
	.align	2
.LC1:
	.ascii	"Unexpected wait status 0x%x from child %d\012\000"
	.align	2
.LC2:
	.ascii	"fork\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_forks, %function
thread_forks:
	@ 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, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	pthread_barrier_wait
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L8:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L3
	sub	r3, fp, #20
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L10+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-20]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	b	.L6
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	mov	r0, #0
	bl	exit
.L7:
	ldr	r0, .L10+16
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L8
	nop
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	barrier
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	thread_forks, .-thread_forks
	.comm	break_out,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_breakpoint, %function
thread_breakpoint:
	@ 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, .L16
	bl	pthread_barrier_wait
	b	.L13
.L14:
	mov	r0, #1
	bl	usleep
.L13:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	barrier
	.word	break_out
	.size	thread_breakpoint, .-thread_breakpoint
	.section	.rodata
	.align	2
.LC4:
	.ascii	"the_stack_data/122307.c\000"
	.align	2
.LC5:
	.ascii	"ret == 0\000"
	.align	2
.LC6:
	.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, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #180
	bl	alarm
	mov	r2, #11
	mov	r1, #0
	ldr	r0, .L29+4
	bl	pthread_barrier_init
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L19
.L21:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L29+8
	add	r0, r3, r2
	mov	r3, #0
	ldr	r2, .L29+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L29+16
	mov	r2, #119
	ldr	r1, .L29+20
	ldr	r0, .L29+24
	bl	__assert_fail
.L20:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L21
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L29+28
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L29+16
	mov	r2, #125
	ldr	r1, .L29+20
	ldr	r0, .L29+24
	bl	__assert_fail
.L22:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L23
.L25:
	ldr	r2, .L29+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L29+16
	mov	r2, #131
	ldr	r1, .L29+20
	ldr	r0, .L29+24
	bl	__assert_fail
.L24:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L25
	ldr	r3, .L29+32
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L29+16
	mov	r2, #136
	ldr	r1, .L29+20
	ldr	r0, .L29+24
	bl	__assert_fail
.L26:
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC6
	.word	barrier
	.word	threads
	.word	thread_forks
	.word	__PRETTY_FUNCTION__.6626
	.word	.LC4
	.word	.LC5
	.word	thread_breakpoint
	.word	break_out
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6626, %object
	.size	__PRETTY_FUNCTION__.6626, 5
__PRETTY_FUNCTION__.6626:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
