	.file	"970526.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/test_queue"
.LC1:
	.string	"SERVER: Received message: %s\n"
.LC2:
	.string	"SERVER: None "
	.text
	.globl	queue_server
	.type	queue_server, @function
queue_server:
.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
	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, 420
	mov	esi, 2112
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -1116[rbp], eax
.L4:
	lea	rax, -1040[rbp]
	mov	edx, 1025
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	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	.L2
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L3:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 725000
	call	usleep@PLT
	jmp	.L4
	.cfi_endproc
.LFE6:
	.size	queue_server, .-queue_server
	.section	.rodata
.LC3:
	.string	"MESSAGE %d"
.LC4:
	.string	"CLIENT: Send message... "
	.text
	.globl	queue_client
	.type	queue_client, @function
queue_client:
.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
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -1044[rbp], eax
	mov	DWORD PTR -1048[rbp], 0
.L7:
	mov	eax, DWORD PTR -1048[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1048[rbp], edx
	lea	rdi, -1040[rbp]
	mov	ecx, eax
	lea	rdx, .LC3[rip]
	mov	esi, 1024
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	mq_send@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 7330000
	call	usleep@PLT
	jmp	.L7
	.cfi_endproc
.LFE7:
	.size	queue_client, .-queue_client
	.section	.rodata
.LC5:
	.string	"Start..."
.LC6:
	.string	"Done..."
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, queue_server[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, queue_client[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"970526.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/test_queue\000"
	.align	2
.LC1:
	.ascii	"SERVER: Received message: %s\012\000"
	.align	2
.LC2:
	.ascii	"SERVER: None \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	queue_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_server, %function
queue_server:
	@ 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, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1068]
	mov	r3, #10
	str	r3, [fp, #-1064]
	mov	r3, #1024
	str	r3, [fp, #-1060]
	mov	r3, #0
	str	r3, [fp, #-1056]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #420
	mov	r1, #2112
	ldr	r0, .L6+4
	bl	mq_open
	str	r0, [fp, #-1076]
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, .L6+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #8
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1076]
	bl	mq_receive
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	blt	.L2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L6+12
	bl	printf
	b	.L3
.L2:
	ldr	r0, .L6+16
	bl	puts
.L3:
	ldr	r3, .L6+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L6+24
	bl	usleep
	b	.L4
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	1025
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	725000
	.size	queue_server, .-queue_server
	.section	.rodata
	.align	2
.LC4:
	.ascii	"MESSAGE %d\000"
	.align	2
.LC5:
	.ascii	"CLIENT: Send message... \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	queue_client
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_client, %function
queue_client:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	ldr	r0, .L11+4
	bl	mq_open
	str	r0, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1040]
.L9:
	ldr	r3, [fp, #-1040]
	add	r2, r3, #1
	str	r2, [fp, #-1040]
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r2, .L11+8
	mov	r1, #1024
	bl	snprintf
	ldr	r0, .L11+12
	bl	puts
	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
	ldr	r3, .L11+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L11+20
	bl	usleep
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	stdout
	.word	7330000
	.size	queue_client, .-queue_client
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Start...\000"
	.align	2
.LC8:
	.ascii	"Done...\000"
	.align	2
.LC9:
	.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
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	puts
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L16+8
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L16+12
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L16+16
	bl	puts
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC9
	.word	.LC7
	.word	queue_server
	.word	queue_client
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
