	.file	"140766656.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp"
.LC1:
	.string	"mq_open1: %s\n"
.LC2:
	.string	"mq_open2: %s\n"
.LC3:
	.string	"mq_getattr: %s\n"
	.align 8
.LC4:
	.string	"flags: %ld, maxmsg: %ld, msgsize: %ld, curmsgs: %ld\n"
.LC5:
	.string	"mq_receive: %s\n"
	.align 8
.LC6:
	.string	"recvive length: %d, prio: %d, recvbuf: %s\n"
	.text
	.globl	sln_ipc_mq_loop
	.type	sln_ipc_mq_loop, @function
sln_ipc_mq_loop:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -136[rbp], 1024
	mov	QWORD PTR -128[rbp], 10
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	lea	rax, -144[rbp]
	mov	rcx, rax
	mov	edx, 420
	mov	esi, 194
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L9
.L2:
	cmp	DWORD PTR -160[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	jne	.L4
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L9
.L4:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	mq_getattr@PLT
	test	eax, eax
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L9
.L5:
	mov	rsi, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L6
	mov	eax, -1
	jmp	.L9
.L6:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	lea	rdx, -164[rbp]
	mov	rsi, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	rcx, rdx
	mov	rdx, rdi
	mov	edi, eax
	call	mq_receive@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jns	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L7:
	mov	edx, DWORD PTR -164[rbp]
	mov	rcx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -156[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	jmp	.L6
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sln_ipc_mq_loop, .-sln_ipc_mq_loop
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	sln_ipc_mq_loop
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"140766656.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp\000"
	.align	2
.LC1:
	.ascii	"mq_open1: %s\012\000"
	.align	2
.LC2:
	.ascii	"mq_open2: %s\012\000"
	.align	2
.LC3:
	.ascii	"mq_getattr: %s\012\000"
	.align	2
.LC4:
	.ascii	"flags: %ld, maxmsg: %ld, msgsize: %ld, curmsgs: %ld"
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"mq_receive: %s\012\000"
	.align	2
.LC6:
	.ascii	"recvive length: %d, prio: %d, recvbuf: %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sln_ipc_mq_loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	sln_ipc_mq_loop, %function
sln_ipc_mq_loop:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1024
	str	r3, [fp, #-76]
	mov	r3, #10
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #80
	mov	r2, #420
	mov	r1, #194
	ldr	r0, .L11+4
	bl	mq_open
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L2
	ldr	r3, .L11+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+12
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L9
.L2:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	bne	.L4
	mov	r1, #2
	ldr	r0, .L11+4
	bl	mq_open
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L11+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L9
.L4:
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	mq_getattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L11+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L9
.L5:
	ldr	r1, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L6
	mvn	r3, #0
	b	.L9
.L6:
	ldr	r3, [fp, #-40]
	mov	r2, r3
	sub	r3, fp, #96
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-92]
	bl	mq_receive
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L11+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L11+28
	mov	r0, r4
	bl	fprintf
	b	.L8
.L7:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #-88]
	ldr	r1, [fp, #-84]
	ldr	r0, .L11+32
	bl	printf
.L8:
	b	.L6
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	sln_ipc_mq_loop, .-sln_ipc_mq_loop
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	bl	sln_ipc_mq_loop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
