	.file	"212642417.c"
	.intel_syntax noprefix
	.text
	.globl	terminate
	.bss
	.align 4
	.type	terminate, @object
	.size	terminate, 4
terminate:
	.zero	4
	.section	.rodata
.LC0:
	.string	"/q2uque"
.LC1:
	.string	"mq error:\n"
.LC2:
	.string	"bytes_read error\n"
.LC3:
	.string	"/0"
.LC4:
	.string	"Received: %s"
.LC5:
	.string	"exit"
.LC6:
	.string	"s_close error:\n"
	.text
	.globl	receiver
	.type	receiver, @function
receiver:
.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, 1120
	mov	QWORD PTR -1112[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 10
	mov	QWORD PTR -1072[rbp], 1000
	mov	QWORD PTR -1064[rbp], 0
	lea	rax, -1088[rbp]
	mov	rcx, rax
	mov	edx, 420
	mov	esi, 64
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -1104[rbp], eax
	cmp	DWORD PTR -1104[rbp], -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rsi, -1024[rbp]
	mov	eax, DWORD PTR -1104[rbp]
	mov	ecx, 0
	mov	edx, 8192
	mov	edi, eax
	call	mq_receive@PLT
	mov	QWORD PTR -1096[rbp], rax
	cmp	QWORD PTR -1096[rbp], 0
	jns	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdx, -1024[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -1024[rbp]
	mov	edx, 2
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR terminate[rip], 1
	jmp	.L5
.L4:
	lea	rax, -1024[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	lea	rax, -1024[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	mov	DWORD PTR terminate[rip], 1
.L6:
	mov	eax, DWORD PTR terminate[rip]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR -1104[rbp]
	mov	edi, eax
	call	mq_close@PLT
	mov	DWORD PTR -1100[rbp], eax
	cmp	DWORD PTR -1100[rbp], -1
	jne	.L7
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rdi, .LC0[rip]
	call	mq_unlink@PLT
	cmp	eax, -1
	jne	.L8
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	receiver, .-receiver
	.section	.rodata
.LC7:
	.string	"/q2uque2"
.LC8:
	.string	"mq1 error:\n"
.LC9:
	.string	"message:\n"
	.text
	.globl	sender
	.type	sender, @function
sender:
.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, 1040
	mov	QWORD PTR -1032[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	ecx, 0
	mov	edx, 420
	mov	esi, 65
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], -1
	jne	.L11
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	DWORD PTR -1024[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	add	DWORD PTR -1024[rbp], 1
.L12:
	mov	eax, DWORD PTR -1024[rbp]
	cmp	eax, 999
	jbe	.L13
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rsi, -1008[rbp]
	mov	eax, DWORD PTR -1020[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	mq_send@PLT
	mov	DWORD PTR -1016[rbp], eax
	cmp	DWORD PTR -1016[rbp], 0
	jns	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rax, -1008[rbp]
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L15
	mov	DWORD PTR terminate[rip], 1
.L15:
	mov	eax, DWORD PTR terminate[rip]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -1020[rbp]
	mov	edi, eax
	call	mq_close@PLT
	mov	DWORD PTR -1012[rbp], eax
	cmp	DWORD PTR -1012[rbp], -1
	jne	.L16
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rdi, .LC0[rip]
	call	mq_unlink@PLT
	cmp	eax, -1
	jne	.L17
	mov	edi, 0
	call	exit@PLT
.L17:
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	sender, .-sender
	.section	.rodata
.LC10:
	.string	"CREATE ERROR"
.LC11:
	.string	"JOIN ERROR"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	lea	rdx, -36[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, receiver[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L20
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L20:
	lea	rdx, -36[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	lea	rdx, sender[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L22
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L23
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L23:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	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	"212642417.c"
	.text
	.global	terminate
	.bss
	.align	2
	.type	terminate, %object
	.size	terminate, 4
terminate:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/q2uque\000"
	.align	2
.LC1:
	.ascii	"mq error:\012\000"
	.align	2
.LC2:
	.ascii	"bytes_read error\012\000"
	.align	2
.LC3:
	.ascii	"/0\000"
	.align	2
.LC4:
	.ascii	"Received: %s\000"
	.align	2
.LC5:
	.ascii	"exit\000"
	.align	2
.LC6:
	.ascii	"s_close error:\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	receiver
	.syntax unified
	.arm
	.fpu softvfp
	.type	receiver, %function
receiver:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1064]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1044]
	mov	r3, #10
	str	r3, [fp, #-1040]
	mov	r3, #1000
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	mov	r2, #420
	mov	r1, #64
	ldr	r0, .L10+4
	bl	mq_open
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L10+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r1, fp, #1012
	mov	r3, #0
	mov	r2, #8192
	ldr	r0, [fp, #-1056]
	bl	mq_receive
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r2, fp, #1012
	ldr	r3, [fp, #-1052]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1012
	mov	r2, #2
	ldr	r1, .L10+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L10+20
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L4:
	sub	r3, fp, #1012
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
.L5:
	sub	r3, fp, #1012
	mov	r2, #4
	ldr	r1, .L10+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L10+20
	mov	r2, #1
	str	r2, [r3]
.L6:
	ldr	r3, .L10+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-1056]
	bl	mq_close
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+32
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r0, .L10+4
	bl	mq_unlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mov	r0, #0
	bl	exit
.L8:
	mov	r0, #0
	bl	pthread_exit
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	terminate
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	receiver, .-receiver
	.section	.rodata
	.align	2
.LC8:
	.ascii	"/q2uque2\000"
	.align	2
.LC9:
	.ascii	"mq1 error:\012\000"
	.align	2
.LC10:
	.ascii	"message:\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sender
	.syntax unified
	.arm
	.fpu softvfp
	.type	sender, %function
sender:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	sub	sp, sp, #8
	str	r0, [fp, #-1032]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	mov	r2, #420
	mov	r1, #65
	ldr	r0, .L21+4
	bl	mq_open
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L21+8
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	mov	r3, #0
	str	r3, [fp, #-1024]
	b	.L14
.L15:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1024]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1024]
	add	r3, r3, #1
	str	r3, [fp, #-1024]
.L14:
	ldr	r3, [fp, #-1024]
	cmp	r3, #1000
	bcc	.L15
	ldr	r3, .L21+12
	ldr	r2, [r3]
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #1008
	mov	r3, #0
	ldr	r0, [fp, #-1020]
	bl	mq_send
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L21+16
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #1008
	mov	r2, #4
	ldr	r1, .L21+20
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L21+24
	mov	r2, #1
	str	r2, [r3]
.L17:
	ldr	r3, .L21+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-1020]
	bl	mq_close
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L21+28
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r0, .L21+32
	bl	mq_unlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	mov	r0, #0
	bl	exit
.L19:
	mov	r0, #0
	bl	pthread_exit
.L22:
	.align	2
.L21:
	.word	.LC11
	.word	.LC8
	.word	.LC9
	.word	stdin
	.word	.LC10
	.word	.LC5
	.word	terminate
	.word	.LC6
	.word	.LC0
	.size	sender, .-sender
	.section	.rodata
	.align	2
.LC12:
	.ascii	"CREATE ERROR\000"
	.align	2
.LC13:
	.ascii	"JOIN ERROR\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	sub	r0, fp, #16
	ldr	r2, .L30+4
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L30+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L24:
	sub	r3, fp, #24
	sub	r0, fp, #12
	ldr	r2, .L30+12
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L30+8
	bl	puts
	mvn	r0, #0
	bl	exit
.L25:
	ldr	r3, [fp, #-16]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L30+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L26:
	ldr	r3, [fp, #-12]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L30+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L27:
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC14
	.word	receiver
	.word	.LC12
	.word	sender
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
