	.file	"125673.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Thread READER starting..."
.LC1:
	.string	"/test_queue"
.LC2:
	.string	"Received: %s\n"
.LC3:
	.string	"Failed to load queue!"
	.text
	.globl	readQueue
	.type	readQueue, @function
readQueue:
.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, 1136
	mov	QWORD PTR -1128[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -1112[rbp], 0
	mov	QWORD PTR -1104[rbp], 0
	mov	QWORD PTR -1096[rbp], 10
	mov	QWORD PTR -1088[rbp], 1024
	mov	QWORD PTR -1080[rbp], 0
	lea	rax, -1104[rbp]
	mov	rcx, rax
	mov	edx, 448
	mov	esi, 64
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -1116[rbp], eax
	cmp	DWORD PTR -1116[rbp], 0
	js	.L2
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1116[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	mq_receive@PLT
	mov	QWORD PTR -1112[rbp], rax
	cmp	QWORD PTR -1112[rbp], 0
	js	.L3
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1112[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -1116[rbp]
	mov	edi, eax
	call	mq_close@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	readQueue, .-readQueue
	.section	.rodata
.LC4:
	.string	"Thread WRITER starting..."
	.text
	.globl	writeToQueue
	.type	writeToQueue, @function
writeToQueue:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	movabs	rax, 2334956331019232596
	movabs	rdx, 435761280369
	mov	QWORD PTR -1040[rbp], rax
	mov	QWORD PTR -1032[rbp], rdx
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	ecx, 0
	mov	edx, 448
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -1044[rbp], eax
	cmp	DWORD PTR -1044[rbp], 0
	js	.L6
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	mq_send@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -1044[rbp]
	mov	edi, eax
	call	mq_close@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	writeToQueue, .-writeToQueue
	.section	.rodata
	.align 8
.LC5:
	.string	"ERROR; return code from pthread_create() is %d\n"
	.align 8
.LC6:
	.string	"ERROR; return code from pthread_join() is %d\n"
	.align 8
.LC7:
	.string	"Main: program completed. Exiting."
	.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rsi, -64[rbp]
	lea	rax, -80[rbp]
	mov	ecx, 0
	lea	rdx, readQueue[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	lea	rax, -64[rbp]
	lea	rdx, -80[rbp]
	lea	rdi, 8[rdx]
	mov	ecx, 0
	lea	rdx, writeToQueue[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L12
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	mq_unlink@PLT
	mov	edi, 0
	call	pthread_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	"125673.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread READER starting...\000"
	.align	2
.LC1:
	.ascii	"/test_queue\000"
	.align	2
.LC2:
	.ascii	"Received: %s\012\000"
	.align	2
.LC3:
	.ascii	"Failed to load queue!\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	readQueue, %function
readQueue:
	@ args = 0, pretend = 0, frame = 1080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	sub	sp, sp, #8
	str	r0, [fp, #-1080]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L5+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1072]
	mov	r3, #0
	str	r3, [fp, #-1064]
	mov	r3, #10
	str	r3, [fp, #-1060]
	mov	r3, #1024
	str	r3, [fp, #-1056]
	mov	r3, #0
	str	r3, [fp, #-1052]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #448
	mov	r1, #64
	ldr	r0, .L5+8
	bl	mq_open
	str	r0, [fp, #-1068]
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	blt	.L2
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1068]
	bl	mq_receive
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	blt	.L3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1072]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L5+12
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L5+16
	bl	printf
.L3:
	ldr	r0, [fp, #-1068]
	bl	mq_close
	mov	r0, #0
	bl	pthread_exit
.L6:
	.align	2
.L5:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	readQueue, .-readQueue
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Thread WRITER starting...\000"
	.align	2
.LC6:
	.ascii	"Testing queue\000"
	.space	1010
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	writeToQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeToQueue, %function
writeToQueue:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	puts
	ldr	r3, .L11+8
	sub	ip, fp, #1024
	sub	ip, ip, #4
	sub	ip, ip, #4
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #1016
	sub	r3, r3, #2
	ldr	r2, .L11+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	mov	r2, #448
	mov	r1, #1
	ldr	r0, .L11+16
	bl	mq_open
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	blt	.L8
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1036]
	bl	mq_send
	b	.L9
.L8:
	ldr	r0, .L11+20
	bl	printf
.L9:
	ldr	r0, [fp, #-1036]
	bl	mq_close
	mov	r0, #0
	bl	pthread_exit
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.word	1010
	.word	.LC1
	.word	.LC3
	.size	writeToQueue, .-writeToQueue
	.section	.rodata
	.align	2
.LC8:
	.ascii	"ERROR; return code from pthread_create() is %d\012\000"
	.align	2
.LC9:
	.ascii	"ERROR; return code from pthread_join() is %d\012\000"
	.align	2
.LC10:
	.ascii	"Main: program completed. Exiting.\000"
	.align	2
.LC11:
	.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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r1, fp, #44
	sub	r0, fp, #52
	mov	r3, #0
	ldr	r2, .L19+4
	bl	pthread_create
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L14
	ldr	r1, [fp, #-60]
	ldr	r0, .L19+8
	bl	printf
.L14:
	sub	r1, fp, #44
	sub	r3, fp, #52
	add	r0, r3, #4
	mov	r3, #0
	ldr	r2, .L19+12
	bl	pthread_create
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L15
	ldr	r1, [fp, #-60]
	ldr	r0, .L19+8
	bl	printf
.L15:
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	ldr	r3, [fp, #-52]
	sub	r2, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L16
	ldr	r1, [fp, #-60]
	ldr	r0, .L19+16
	bl	printf
.L16:
	ldr	r3, [fp, #-48]
	sub	r2, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L17
	ldr	r1, [fp, #-60]
	ldr	r0, .L19+16
	bl	printf
.L17:
	ldr	r0, .L19+20
	bl	puts
	ldr	r0, .L19+24
	bl	mq_unlink
	mov	r0, #0
	bl	pthread_exit
.L20:
	.align	2
.L19:
	.word	.LC11
	.word	readQueue
	.word	.LC8
	.word	writeToQueue
	.word	.LC9
	.word	.LC10
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
