	.file	"1002273.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"msgget"
.LC1:
	.string	"Open queue %d\n"
	.align 8
.LC2:
	.string	"Enter some message to the queue:"
.LC3:
	.string	"no message"
.LC4:
	.string	"message posted"
.LC5:
	.string	"quit"
	.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 950
	mov	edi, 1234
	call	msgget@PLT
	mov	DWORD PTR -532[rbp], eax
	cmp	DWORD PTR -532[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -532[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -528[rbp]
	lea	rcx, 8[rdx]
	mov	rdx, rax
	mov	esi, 512
	mov	rdi, rcx
	call	fgets@PLT
	test	rax, rax
	jne	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	call	getpid@PLT
	cdqe
	mov	QWORD PTR -528[rbp], rax
	lea	rax, -528[rbp]
	add	rax, 8
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -532[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -528[rbp]
	add	rax, 8
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L10
	jmp	.L7
.L10:
	nop
	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	"1002273.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"msgget\000"
	.align	2
.LC1:
	.ascii	"Open queue %d\012\000"
	.align	2
.LC2:
	.ascii	"Enter some message to the queue:\000"
	.align	2
.LC3:
	.ascii	"no message\000"
	.align	2
.LC4:
	.ascii	"message posted\000"
	.align	2
.LC5:
	.ascii	"quit\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	msgget
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L11+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, [fp, #-528]
	ldr	r0, .L11+16
	bl	printf
.L7:
	ldr	r0, .L11+20
	bl	printf
	ldr	r3, .L11+24
	ldr	r2, [r3]
	sub	r3, fp, #524
	add	r3, r3, #4
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L11+28
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	bl	getpid
	mov	r3, r0
	str	r3, [fp, #-524]
	sub	r3, fp, #524
	add	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #524
	mov	r3, #0
	ldr	r0, [fp, #-528]
	bl	msgsnd
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L11+32
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #524
	add	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L11+36
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	b	.L7
.L10:
	nop
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	950
	.word	1234
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
