	.file	"115764438.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"."
.LC1:
	.string	"Key generated = %08X\n"
.LC2:
	.string	"Error creating message queue"
.LC3:
	.string	"MQ Sample"
.LC4:
	.string	"Message Queue created"
	.align 8
.LC5:
	.string	"Failed to obtain message queue information"
.LC6:
	.string	"MQ Information:"
.LC7:
	.string	"Owner UID: %d\n"
.LC8:
	.string	"Owner GID: %d\n"
.LC9:
	.string	"# of bytes on queue: %d\n"
.LC10:
	.string	"# of messages on queue: %d\n"
.LC11:
	.string	"MQ Sample msgsend"
.LC12:
	.string	"Message sent"
.LC13:
	.string	"MQ Sample msgrcv"
.LC14:
	.string	"Message received: %s\n"
.LC15:
	.string	"Message Queue deleted"
	.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	DWORD PTR -264[rbp], eax
	mov	esi, 1234
	lea	rdi, .LC0[rip]
	call	ftok@PLT
	mov	DWORD PTR -260[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, 1023
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	jns	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -248[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, 2
	mov	edi, eax
	call	msgctl@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], -1
	jne	.L4
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	mov	QWORD PTR -240[rbp], rax
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	mov	QWORD PTR -232[rbp], rax
	lea	rax, -240[rbp]
	add	rax, 16
	mov	edx, 90
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -240[rbp]
	add	rax, 16
	movabs	rcx, 2334956331019232596
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 543516788
	mov	WORD PTR 12[rax], 20813
	mov	BYTE PTR 14[rax], 0
	lea	rsi, -240[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	ecx, 0
	mov	edx, 112
	mov	edi, eax
	call	msgsnd@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], -1
	jne	.L5
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -264[rbp]
	movsx	rdx, eax
	lea	rsi, -128[rbp]
	mov	eax, DWORD PTR -256[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 112
	mov	edi, eax
	call	msgrcv@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], -1
	jne	.L6
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rax, -128[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -256[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	msgctl@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"115764438.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"Key generated = %08X\012\000"
	.align	2
.LC2:
	.ascii	"Error creating message queue\000"
	.align	2
.LC3:
	.ascii	"MQ Sample\000"
	.align	2
.LC4:
	.ascii	"Message Queue created\000"
	.align	2
.LC5:
	.ascii	"Failed to obtain message queue information\000"
	.align	2
.LC6:
	.ascii	"MQ Information:\000"
	.align	2
.LC7:
	.ascii	"Owner UID: %d\012\000"
	.align	2
.LC8:
	.ascii	"Owner GID: %d\012\000"
	.align	2
.LC9:
	.ascii	"# of bytes on queue: %d\012\000"
	.align	2
.LC10:
	.ascii	"# of messages on queue: %d\012\000"
	.align	2
.LC11:
	.ascii	"Testing the MQ\000"
	.align	2
.LC12:
	.ascii	"MQ Sample msgsend\000"
	.align	2
.LC13:
	.ascii	"Message sent\000"
	.align	2
.LC14:
	.ascii	"MQ Sample msgrcv\000"
	.align	2
.LC15:
	.ascii	"Message received: %s\012\000"
	.align	2
.LC16:
	.ascii	"Message Queue deleted\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	str	r0, [fp, #-228]
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	ftok
	str	r0, [fp, #-224]
	ldr	r1, [fp, #-224]
	ldr	r0, .L9+12
	bl	printf
	ldr	r1, .L9+16
	ldr	r0, [fp, #-224]
	bl	msgget
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9+20
	bl	puts
	ldr	r0, .L9+24
	bl	perror
	mov	r3, #1
	b	.L7
.L2:
	ldr	r0, .L9+28
	bl	puts
	ldr	r2, [fp, #-216]
	mov	r1, #2
	ldr	r0, [fp, #-220]
	bl	msgctl
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L9+32
	bl	puts
	ldr	r0, .L9+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L9+36
	bl	puts
	ldr	r3, [fp, #-216]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L9+40
	bl	printf
	ldr	r3, [fp, #-216]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L9+44
	bl	printf
	ldr	r3, [fp, #-216]
	ldr	r3, [r3, #60]
	mov	r1, r3
	ldr	r0, .L9+48
	bl	printf
	ldr	r3, [fp, #-216]
	ldr	r3, [r3, #64]
	mov	r1, r3
	ldr	r0, .L9+52
	bl	printf
	ldr	r3, [fp, #-216]
	ldr	r3, [r3, #68]
	mov	r1, r3
	ldr	r0, .L9+48
	bl	printf
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-204]
	sub	r3, fp, #208
	add	r3, r3, #8
	mov	r2, #90
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #208
	add	r3, r3, #8
	ldr	r2, .L9+56
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r1, fp, #208
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-220]
	bl	msgsnd
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L9+60
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r0, .L9+64
	bl	puts
	sub	r1, fp, #108
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-228]
	mov	r2, #100
	ldr	r0, [fp, #-220]
	bl	msgrcv
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L9+68
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #108
	add	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L9+72
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-220]
	bl	msgctl
	ldr	r0, .L9+76
	bl	puts
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC17
	.word	1234
	.word	.LC0
	.word	.LC1
	.word	1023
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
