	.file	"800093.c"
	.intel_syntax noprefix
	.text
	.globl	TRUE
	.data
	.align 4
	.type	TRUE, @object
	.size	TRUE, 4
TRUE:
	.long	1
	.globl	FALSE
	.bss
	.align 4
	.type	FALSE, @object
	.size	FALSE, 4
FALSE:
	.zero	4
	.globl	shared_array
	.align 8
	.type	shared_array, @object
	.size	shared_array, 8
shared_array:
	.zero	8
	.globl	shared_array_len
	.align 8
	.type	shared_array_len, @object
	.size	shared_array_len, 8
shared_array_len:
	.zero	8
	.globl	alloc_barrier
	.align 32
	.type	alloc_barrier, @object
	.size	alloc_barrier, 32
alloc_barrier:
	.zero	32
	.globl	fill_barrier
	.align 32
	.type	fill_barrier, @object
	.size	fill_barrier, 32
fill_barrier:
	.zero	32
	.globl	done_barrier
	.align 32
	.type	done_barrier, @object
	.size	done_barrier, 32
done_barrier:
	.zero	32
	.text
	.globl	alloc_thread_body
	.type	alloc_thread_body, @function
alloc_thread_body:
.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	QWORD PTR shared_array_len[rip], 20
	mov	rax, QWORD PTR shared_array_len[rip]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR shared_array[rip], rax
	lea	rdi, alloc_barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alloc_thread_body, .-alloc_thread_body
	.globl	filler_thread_body
	.type	filler_thread_body, @function
filler_thread_body:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	lea	rdi, alloc_barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	BYTE PTR -21[rbp], 97
	mov	QWORD PTR -16[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	je	.L4
	mov	BYTE PTR -21[rbp], 90
	mov	QWORD PTR -16[rbp], 0
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L8:
	cmp	DWORD PTR -20[rbp], 0
	je	.L6
	movzx	eax, BYTE PTR -21[rbp]
	mov	edx, eax
	sub	edx, 1
	mov	BYTE PTR -21[rbp], dl
	jmp	.L7
.L6:
	movzx	eax, BYTE PTR -21[rbp]
	mov	edx, eax
	add	edx, 1
	mov	BYTE PTR -21[rbp], dl
.L7:
	mov	rcx, QWORD PTR shared_array[rip]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -8[rbp], 2
.L5:
	mov	rax, QWORD PTR shared_array_len[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L8
	mov	rdx, QWORD PTR shared_array[rip]
	mov	rax, QWORD PTR shared_array_len[rip]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rdi, fill_barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	filler_thread_body, .-filler_thread_body
	.section	.rodata
.LC0:
	.string	">> %s\n"
	.text
	.globl	printer_thread_body
	.type	printer_thread_body, @function
printer_thread_body:
.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
	lea	rdi, fill_barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	rax, QWORD PTR shared_array[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, done_barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printer_thread_body, .-printer_thread_body
	.globl	dealloc_thread_body
	.type	dealloc_thread_body, @function
dealloc_thread_body:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, done_barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	rax, QWORD PTR shared_array[rip]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, alloc_barrier[rip]
	call	pthread_barrier_destroy@PLT
	lea	rdi, fill_barrier[rip]
	call	pthread_barrier_destroy@PLT
	lea	rdi, done_barrier[rip]
	call	pthread_barrier_destroy@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dealloc_thread_body, .-dealloc_thread_body
	.section	.rodata
.LC1:
	.string	"A pthread error happened."
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR shared_array[rip], 0
	mov	edx, 3
	mov	esi, 0
	lea	rdi, alloc_barrier[rip]
	call	pthread_barrier_init@PLT
	mov	edx, 3
	mov	esi, 0
	lea	rdi, fill_barrier[rip]
	call	pthread_barrier_init@PLT
	mov	edx, 2
	mov	esi, 0
	lea	rdi, done_barrier[rip]
	call	pthread_barrier_init@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L15
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rsi, -64[rbp]
	lea	rax, -104[rbp]
	mov	ecx, 0
	lea	rdx, alloc_thread_body[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L16
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rsi, -64[rbp]
	lea	rax, -96[rbp]
	lea	rcx, TRUE[rip]
	lea	rdx, filler_thread_body[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L17
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rsi, -64[rbp]
	lea	rax, -88[rbp]
	lea	rcx, FALSE[rip]
	lea	rdx, filler_thread_body[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L18
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rsi, -64[rbp]
	lea	rax, -80[rbp]
	mov	ecx, 0
	lea	rdx, printer_thread_body[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L19
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	lea	rsi, -64[rbp]
	lea	rax, -72[rbp]
	mov	ecx, 0
	lea	rdx, dealloc_thread_body[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L20
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE10:
	.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	"800093.c"
	.text
	.global	TRUE
	.data
	.align	2
	.type	TRUE, %object
	.size	TRUE, 4
TRUE:
	.word	1
	.global	FALSE
	.bss
	.align	2
	.type	FALSE, %object
	.size	FALSE, 4
FALSE:
	.space	4
	.comm	shared_array,4,4
	.comm	shared_array_len,4,4
	.comm	alloc_barrier,20,4
	.comm	fill_barrier,20,4
	.comm	done_barrier,20,4
	.text
	.align	2
	.global	alloc_thread_body
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_thread_body, %function
alloc_thread_body:
	@ 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	r3, .L3
	mov	r2, #20
	str	r2, [r3]
	ldr	r3, .L3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L3+4
	str	r2, [r3]
	ldr	r0, .L3+8
	bl	pthread_barrier_wait
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	shared_array_len
	.word	shared_array
	.word	alloc_barrier
	.size	alloc_thread_body, .-alloc_thread_body
	.align	2
	.global	filler_thread_body
	.syntax unified
	.arm
	.fpu softvfp
	.type	filler_thread_body, %function
filler_thread_body:
	@ 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	r0, .L12
	bl	pthread_barrier_wait
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #97
	strb	r3, [fp, #-17]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	mov	r3, #90
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L7
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r2, r3, #1
	strb	r2, [fp, #-17]
	b	.L9
.L8:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	add	r2, r3, #1
	strb	r2, [fp, #-17]
.L9:
	ldr	r2, .L12+4
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	strb	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-12]
.L7:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L10
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L12+12
	bl	pthread_barrier_wait
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	alloc_barrier
	.word	shared_array
	.word	shared_array_len
	.word	fill_barrier
	.size	filler_thread_body, .-filler_thread_body
	.section	.rodata
	.align	2
.LC0:
	.ascii	">> %s\012\000"
	.text
	.align	2
	.global	printer_thread_body
	.syntax unified
	.arm
	.fpu softvfp
	.type	printer_thread_body, %function
printer_thread_body:
	@ 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
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+8
	bl	printf
	ldr	r0, .L16+12
	bl	pthread_barrier_wait
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	fill_barrier
	.word	shared_array
	.word	.LC0
	.word	done_barrier
	.size	printer_thread_body, .-printer_thread_body
	.align	2
	.global	dealloc_thread_body
	.syntax unified
	.arm
	.fpu softvfp
	.type	dealloc_thread_body, %function
dealloc_thread_body:
	@ 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, .L20
	bl	pthread_barrier_wait
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, .L20+8
	bl	pthread_barrier_destroy
	ldr	r0, .L20+12
	bl	pthread_barrier_destroy
	ldr	r0, .L20
	bl	pthread_barrier_destroy
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	done_barrier
	.word	shared_array
	.word	alloc_barrier
	.word	fill_barrier
	.size	dealloc_thread_body, .-dealloc_thread_body
	.section	.rodata
	.align	2
.LC1:
	.ascii	"A pthread error happened.\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L30+4
	mov	r2, #0
	str	r2, [r3]
	mov	r2, #3
	mov	r1, #0
	ldr	r0, .L30+8
	bl	pthread_barrier_init
	mov	r2, #3
	mov	r1, #0
	ldr	r0, .L30+12
	bl	pthread_barrier_init
	mov	r2, #2
	mov	r1, #0
	ldr	r0, .L30+16
	bl	pthread_barrier_init
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #1
	bl	exit
.L23:
	sub	r1, fp, #44
	sub	r0, fp, #68
	mov	r3, #0
	ldr	r2, .L30+24
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #1
	bl	exit
.L24:
	sub	r1, fp, #44
	sub	r0, fp, #64
	ldr	r3, .L30+28
	ldr	r2, .L30+32
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #1
	bl	exit
.L25:
	sub	r1, fp, #44
	sub	r0, fp, #60
	ldr	r3, .L30+36
	ldr	r2, .L30+32
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #1
	bl	exit
.L26:
	sub	r1, fp, #44
	sub	r0, fp, #56
	mov	r3, #0
	ldr	r2, .L30+40
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #1
	bl	exit
.L27:
	sub	r1, fp, #44
	sub	r0, fp, #52
	mov	r3, #0
	ldr	r2, .L30+44
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L30+20
	bl	puts
	mov	r0, #1
	bl	exit
.L28:
	mov	r0, #0
	bl	pthread_exit
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	shared_array
	.word	alloc_barrier
	.word	fill_barrier
	.word	done_barrier
	.word	.LC1
	.word	alloc_thread_body
	.word	TRUE
	.word	filler_thread_body
	.word	FALSE
	.word	printer_thread_body
	.word	dealloc_thread_body
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
