	.file	"554252.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"invalid parameter()"
.LC1:
	.string	"msgget"
.LC2:
	.string	"msgrcv"
	.align 8
.LC3:
	.string	"No message available for msgrcv()"
.LC4:
	.string	"message received: %s\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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -104[rbp], 1234
	cmp	DWORD PTR -116[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, 950
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L5
	jmp	.L12
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L10
.L12:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	QWORD PTR -96[rbp], rax
.L9:
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	lea	rsi, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	r8d, 2048
	mov	rcx, rdx
	mov	edx, 80
	mov	edi, eax
	call	msgrcv@PLT
	cmp	rax, -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 42
	je	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	mov	eax, 0
	jmp	.L10
.L6:
	lea	rax, -96[rbp]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"554252.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"invalid parameter()\000"
	.align	2
.LC1:
	.ascii	"msgget\000"
	.align	2
.LC2:
	.ascii	"msgrcv\000"
	.align	2
.LC3:
	.ascii	"No message available for msgrcv()\000"
	.align	2
.LC4:
	.ascii	"message received: %s\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-104]
	ldr	r3, .L13+4
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-104]
	ldr	r1, .L13+8
	ldr	r0, [fp, #-100]
	bl	msgget
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L5
	b	.L12
.L2:
	ldr	r0, .L13+12
	bl	puts
	mov	r3, #0
	b	.L10
.L12:
	ldr	r0, .L13+16
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-92]
.L9:
	sub	r1, fp, #92
	mov	r3, #2048
	str	r3, [sp]
	ldr	r3, [fp, #-104]
	mov	r2, #80
	ldr	r0, [fp, #-96]
	bl	msgrcv
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #42
	beq	.L7
	ldr	r0, .L13+20
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r0, .L13+24
	bl	puts
	nop
	mov	r3, #0
	b	.L10
.L6:
	sub	r3, fp, #92
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L13+28
	bl	printf
	b	.L9
.L10:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	1234
	.word	950
	.word	.LC0
	.word	.LC1
	.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
