	.file	"70792.c"
	.intel_syntax noprefix
	.text
	.local	main_thread
	.comm	main_thread,8,8
	.globl	barrier
	.bss
	.align 32
	.type	barrier, @object
	.size	barrier, 32
barrier:
	.zero	32
	.text
	.type	thread_a, @function
thread_a:
.LFB0:
	.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
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread_a, .-thread_a
	.section	.rodata
.LC0:
	.string	"the_stack_data/70792.c"
.LC1:
	.string	"i == 0"
	.text
	.type	thread_b, @function
thread_b:
.LFB1:
	.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
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	rax, QWORD PTR main_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 39
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L4:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	thread_b, .-thread_b
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread_a[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 52
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	call	pthread_self@PLT
	mov	QWORD PTR main_thread[rip], rax
	mov	edx, 2
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_barrier_init@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread_b[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 61
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L8:
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 9
__PRETTY_FUNCTION__.1:
	.string	"thread_b"
	.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	"70792.c"
	.text
	.local	main_thread
	.comm	main_thread,4,4
	.comm	barrier,20,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_a, %function
thread_a:
	@ 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]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	thread_a, .-thread_a
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/70792.c\000"
	.align	2
.LC1:
	.ascii	"i == 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_b, %function
thread_b:
	@ 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]
	ldr	r0, .L6
	bl	pthread_barrier_wait
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L6+8
	mov	r2, #39
	ldr	r1, .L6+12
	ldr	r0, .L6+16
	bl	__assert_fail
.L4:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	barrier
	.word	main_thread
	.word	__PRETTY_FUNCTION__.5496
	.word	.LC0
	.word	.LC1
	.size	thread_b, .-thread_b
	.section	.rodata
	.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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L12+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L12+8
	mov	r2, #52
	ldr	r1, .L12+12
	ldr	r0, .L12+16
	bl	__assert_fail
.L9:
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	bl	pthread_self
	mov	r3, r0
	ldr	r2, .L12+20
	str	r3, [r2]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, .L12+24
	bl	pthread_barrier_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L12+28
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L12+8
	mov	r2, #61
	ldr	r1, .L12+12
	ldr	r0, .L12+16
	bl	__assert_fail
.L10:
	ldr	r0, .L12+24
	bl	pthread_barrier_wait
	mov	r0, #0
	bl	pthread_exit
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	thread_a
	.word	__PRETTY_FUNCTION__.5502
	.word	.LC0
	.word	.LC1
	.word	main_thread
	.word	barrier
	.word	thread_b
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5496, %object
	.size	__PRETTY_FUNCTION__.5496, 9
__PRETTY_FUNCTION__.5496:
	.ascii	"thread_b\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5502, %object
	.size	__PRETTY_FUNCTION__.5502, 5
__PRETTY_FUNCTION__.5502:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
