	.file	"121958.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/test.msg"
.LC1:
	.string	"ftok error"
	.align 8
.LC2:
	.string	"Message Queue - Server key is: %d.\n"
.LC3:
	.string	"msgget error"
.LC4:
	.string	"the msqid: %d\n"
.LC5:
	.string	"the pid: %d\n"
	.align 8
.LC6:
	.string	"Server - receive msg.mtext: %s.\n"
	.align 8
.LC7:
	.string	"Server - receive msg.mtype: %s.\n"
.LC8:
	.string	"hello, this is server[%d]"
	.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 122
	lea	rdi, .LC0[rip]
	call	ftok@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -280[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	esi, 1023
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	r8d, 0
	mov	ecx, 888
	mov	edx, 256
	mov	edi, eax
	call	msgrcv@PLT
	lea	rax, -272[rbp]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -272[rbp], 999
	mov	eax, 0
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -272[rbp]
	add	rax, 8
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	msgsnd@PLT
	jmp	.L4
	.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	"121958.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/test.msg\000"
	.align	2
.LC1:
	.ascii	"ftok error\000"
	.align	2
.LC2:
	.ascii	"Message Queue - Server key is: %d.\012\000"
	.align	2
.LC3:
	.ascii	"msgget error\000"
	.align	2
.LC4:
	.ascii	"the msqid: %d\012\000"
	.align	2
.LC5:
	.ascii	"the pid: %d\012\000"
	.align	2
.LC6:
	.ascii	"Server - receive msg.mtext: %s.\012\000"
	.align	2
.LC7:
	.ascii	"Server - receive msg.mtype: %s.\012\000"
	.align	2
.LC8:
	.ascii	"hello, this is server[%d]\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #122
	ldr	r0, .L6+4
	bl	ftok
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, [fp, #-276]
	ldr	r0, .L6+12
	bl	printf
	ldr	r1, .L6+16
	ldr	r0, [fp, #-276]
	bl	msgget
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L6+20
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r1, [fp, #-272]
	ldr	r0, .L6+24
	bl	printf
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+28
	bl	printf
.L4:
	sub	r1, fp, #268
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #888
	mov	r2, #256
	ldr	r0, [fp, #-272]
	bl	msgrcv
	sub	r3, fp, #268
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L6+32
	bl	printf
	ldr	r3, [fp, #-268]
	mov	r1, r3
	ldr	r0, .L6+36
	bl	printf
	ldr	r3, .L6+40
	str	r3, [fp, #-268]
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #268
	add	r3, r3, #4
	ldr	r1, .L6+44
	mov	r0, r3
	bl	sprintf
	sub	r1, fp, #268
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-272]
	bl	msgsnd
	b	.L4
.L7:
	.align	2
.L6:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1023
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	999
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
