	.file	"100613.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp"
	.align 8
.LC1:
	.string	"[Error] : Unable to create/open the queue"
	.align 8
.LC2:
	.string	"[INFO] : Unable to send a message"
	.align 8
.LC3:
	.string	"[QuID: %i |SendID: %li |Type: %li ]: %s\n"
	.align 8
.LC4:
	.string	"[INFO]: There is no message available at the moment"
	.align 8
.LC5:
	.string	"[INFO] : Unable to remove queue(something went wrong)"
	.align 8
.LC6:
	.string	"[INFO] : Unable to change the permissions of the queue"
	.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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1092[rbp], 1
	jne	.L2
	call	usage
.L2:
	mov	esi, 116
	lea	rdi, .LC0[rip]
	call	ftok@PLT
	mov	DWORD PTR -1076[rbp], eax
	mov	eax, DWORD PTR -1076[rbp]
	mov	edi, eax
	call	open_queue
	mov	DWORD PTR -1072[rbp], eax
	cmp	DWORD PTR -1072[rbp], -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L3:
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	eax, 115
	je	.L4
	cmp	eax, 115
	jg	.L5
	cmp	eax, 114
	je	.L6
	cmp	eax, 114
	jg	.L5
	cmp	eax, 100
	je	.L7
	cmp	eax, 109
	je	.L8
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	mov	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1056[rbp]
	add	rdx, 16
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	send_message
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L17
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L17
.L6:
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read_message
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	je	.L11
	mov	rcx, QWORD PTR -1056[rbp]
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1056[rbp]
	lea	rsi, 16[rax]
	mov	eax, DWORD PTR -1072[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L11:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -1072[rbp]
	mov	edi, eax
	call	remove_queue
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L18
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L18
.L8:
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1072[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	change_queue_mode
	mov	DWORD PTR -1068[rbp], eax
	cmp	DWORD PTR -1068[rbp], -1
	jne	.L19
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L19
.L5:
	call	usage
	jmp	.L10
.L17:
	nop
	jmp	.L10
.L18:
	nop
	jmp	.L10
.L19:
	nop
.L10:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	open_queue
	.type	open_queue, @function
open_queue:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 944
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L21
	mov	eax, -1
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -4[rbp]
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	open_queue, .-open_queue
	.globl	send_message
	.type	send_message, @function
send_message:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -8[rbp], 1024
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L24
	mov	eax, -1
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -4[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	send_message, .-send_message
	.globl	read_message
	.type	read_message, @function
read_message:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -8[rbp], 1024
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, 2048
	mov	edi, eax
	call	msgrcv@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L27
	mov	eax, -1
	jmp	.L28
.L27:
	mov	eax, DWORD PTR -4[rbp]
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_message, .-read_message
	.globl	remove_queue
	.type	remove_queue, @function
remove_queue:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	msgctl@PLT
	cmp	eax, -1
	jne	.L30
	mov	eax, -1
	jmp	.L31
.L30:
	mov	eax, 0
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	remove_queue, .-remove_queue
	.section	.rodata
.LC7:
	.string	"%ho"
	.text
	.globl	change_queue_mode
	.type	change_queue_mode, @function
change_queue_mode:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_queue_ds
	lea	rax, -128[rbp]
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, 1
	mov	edi, eax
	call	msgctl@PLT
	cmp	eax, -1
	jne	.L33
	mov	eax, -1
	jmp	.L35
.L33:
	mov	eax, 0
.L35:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	change_queue_mode, .-change_queue_mode
	.globl	get_queue_ds
	.type	get_queue_ds, @function
get_queue_ds:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 2
	mov	edi, eax
	call	msgctl@PLT
	cmp	eax, -1
	jne	.L38
	mov	eax, -1
	jmp	.L39
.L38:
	mov	eax, 0
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_queue_ds, .-get_queue_ds
	.section	.rodata
	.align 8
.LC8:
	.string	"USAGE:\tdnoyes_msgqueue\t(s)end  <type>  <message>"
.LC9:
	.string	"\t\t\t(r)ecv  <type> "
.LC10:
	.string	"\t\t\t(d)elete"
.LC11:
	.string	"\t\t\t(m)ode  <mode>"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	usage, .-usage
	.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	"100613.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp\000"
	.align	2
.LC1:
	.ascii	"[Error] : Unable to create/open the queue\000"
	.align	2
.LC2:
	.ascii	"[INFO] : Unable to send a message\000"
	.align	2
.LC3:
	.ascii	"[QuID: %i |SendID: %li |Type: %li ]: %s\012\000"
	.align	2
.LC4:
	.ascii	"[INFO]: There is no message available at the moment"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"[INFO] : Unable to remove queue(something went wron"
	.ascii	"g)\000"
	.align	2
.LC6:
	.ascii	"[INFO] : Unable to change the permissions of the qu"
	.ascii	"eue\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1064]
	cmp	r3, #1
	bne	.L2
	bl	usage
.L2:
	mov	r1, #116
	ldr	r0, .L21+4
	bl	ftok
	str	r0, [fp, #-1056]
	ldr	r0, [fp, #-1056]
	bl	open_queue
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L21+8
	bl	puts
.L3:
	ldr	r3, [fp, #-1068]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r3, #100
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L7
	.word	.L5
.L5:
	ldr	r3, [fp, #-1068]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1048]
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1068]
	add	r3, r3, #12
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, [fp, #-1048]
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	send_message
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L21+12
	bl	puts
	b	.L18
.L7:
	ldr	r3, [fp, #-1068]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	str	r0, [fp, #-1048]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, [fp, #-1048]
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	read_message
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	beq	.L12
	ldr	r2, [fp, #-1036]
	ldr	r1, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-1052]
	ldr	r0, .L21+16
	bl	printf
	b	.L11
.L12:
	ldr	r0, .L21+20
	bl	puts
	b	.L11
.L9:
	ldr	r0, [fp, #-1052]
	bl	remove_queue
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L21+24
	bl	puts
	b	.L19
.L8:
	ldr	r3, [fp, #-1068]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-1052]
	bl	change_queue_mode
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L21+28
	bl	puts
	b	.L20
.L4:
	bl	usage
	b	.L11
.L18:
	nop
	b	.L11
.L19:
	nop
	b	.L11
.L20:
	nop
.L11:
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	open_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_queue, %function
open_queue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #944
	ldr	r0, [fp, #-16]
	bl	msgget
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L24
	mvn	r3, #0
	b	.L25
.L24:
	ldr	r3, [fp, #-8]
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	open_queue, .-open_queue
	.align	2
	.global	send_message
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_message, %function
send_message:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #1024
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	msgsnd
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L27
	mvn	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-8]
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	send_message, .-send_message
	.align	2
	.global	read_message
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_message, %function
read_message:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #1024
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r3, #2048
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	msgrcv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L30
	mvn	r3, #0
	b	.L31
.L30:
	ldr	r3, [fp, #-8]
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_message, .-read_message
	.align	2
	.global	remove_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_queue, %function
remove_queue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	msgctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	mvn	r3, #0
	b	.L34
.L33:
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	remove_queue, .-remove_queue
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%ho\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	change_queue_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_queue_mode, %function
change_queue_mode:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	get_queue_ds
	sub	r3, fp, #96
	add	r3, r3, #20
	mov	r2, r3
	ldr	r1, .L40+4
	ldr	r0, [fp, #-108]
	bl	__isoc99_sscanf
	sub	r3, fp, #96
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-104]
	bl	msgctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	mvn	r3, #0
	b	.L38
.L36:
	mov	r3, #0
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC9
	.word	.LC8
	.size	change_queue_mode, .-change_queue_mode
	.align	2
	.global	get_queue_ds
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_queue_ds, %function
get_queue_ds:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	msgctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L43
	mvn	r3, #0
	b	.L44
.L43:
	mov	r3, #0
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_queue_ds, .-get_queue_ds
	.section	.rodata
	.align	2
.LC10:
	.ascii	"USAGE:\011dnoyes_msgqueue\011(s)end  <type>  <messa"
	.ascii	"ge>\000"
	.align	2
.LC11:
	.ascii	"\011\011\011(r)ecv  <type> \000"
	.align	2
.LC12:
	.ascii	"\011\011\011(d)elete\000"
	.align	2
.LC13:
	.ascii	"\011\011\011(m)ode  <mode>\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L46
	bl	puts
	ldr	r0, .L46+4
	bl	puts
	ldr	r0, .L46+8
	bl	puts
	ldr	r0, .L46+12
	bl	puts
	mov	r0, #0
	bl	exit
.L47:
	.align	2
.L46:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
