	.file	"562706.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"create mqueue."
.LC1:
	.string	"e"
.LC2:
	.string	"usage: mqcreate [-e] <name>"
.LC3:
	.string	"mq_open() error"
	.align 8
.LC4:
	.string	"max #msgs = %ld,max #bytes/msg = %ld,#currently on queue = %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 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 -92[rbp], 66
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	cmp	DWORD PTR -88[rbp], 101
	jne	.L2
	or	DWORD PTR -92[rbp], 128
	nop
.L2:
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L3
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR optind[rip]
	cmp	edx, eax
	je	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR -92[rbp]
	mov	ecx, 0
	mov	edx, 420
	mov	rdi, rax
	mov	eax, 0
	call	mq_open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	mq_getattr@PLT
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	mq_close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"562706.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"create mqueue.\000"
	.align	2
.LC1:
	.ascii	"e\000"
	.align	2
.LC2:
	.ascii	"usage: mqcreate [-e] <name>\000"
	.align	2
.LC3:
	.ascii	"mq_open() error\000"
	.align	2
.LC4:
	.ascii	"max #msgs = %ld,max #bytes/msg = %ld,#currently on "
	.ascii	"queue = %ld\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #66
	str	r3, [fp, #-52]
	ldr	r0, .L7+4
	bl	puts
	b	.L2
.L3:
	ldr	r3, [fp, #-48]
	cmp	r3, #101
	bne	.L2
	ldr	r3, [fp, #-52]
	orr	r3, r3, #128
	str	r3, [fp, #-52]
	nop
.L2:
	ldr	r2, .L7+8
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getopt
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L3
	ldr	r3, [fp, #-56]
	sub	r2, r3, #1
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r0, .L7+16
	bl	perror
	mov	r0, #0
	bl	exit
.L4:
	ldr	r3, .L7+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #420
	ldr	r1, [fp, #-52]
	bl	mq_open
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+20
	bl	perror
	mvn	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	mq_getattr
	ldr	r1, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r0, .L7+24
	bl	printf
	ldr	r0, [fp, #-44]
	bl	mq_close
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
