	.file	"455869.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ftok error"
	.text
	.globl	testGetQueId
	.type	testGetQueId, @function
testGetQueId:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1024
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L3
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1023
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -8[rbp], eax
.L3:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	testGetQueId, .-testGetQueId
	.section	.rodata
	.align 8
.LC1:
	.string	"sizeof(struct tMsgText) = %ld\n"
.LC2:
	.string	"msgsnd error"
	.text
	.globl	testSendMsg
	.type	testSendMsg, @function
testSendMsg:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	DWORD PTR -60[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], -1
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	mov	BYTE PTR -24[rbp], al
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	msgsnd@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L6:
	mov	eax, 0
	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
.LFE7:
	.size	testSendMsg, .-testSendMsg
	.section	.rodata
.LC3:
	.string	"testRecvMsg"
	.text
	.globl	testRecvMsg
	.type	testRecvMsg, @function
testRecvMsg:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], -1
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, 2048
	mov	rcx, rdx
	mov	edx, 101
	mov	edi, eax
	call	msgrcv@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, 0
	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
.LFE8:
	.size	testRecvMsg, .-testRecvMsg
	.section	.rodata
	.align 8
.LC4:
	.string	"please enter cmd:\n[1]:get que id\n[2]: send msg to que; \n[3]: receive msg;"
.LC5:
	.string	"%d"
.LC6:
	.string	"while %d\n"
.LC7:
	.string	"i=%d,qid=%d\n"
.LC8:
	.string	"send msg to que"
	.align 8
.LC9:
	.string	"que is not exist or create fail!"
.LC10:
	.string	"testSendMsg i=%d\n"
.LC11:
	.string	"recieve msg from que"
.LC12:
	.string	"testRecvMsg,%d,%d\n"
.LC13:
	.string	"testRecvMsg end"
.LC14:
	.string	"wrong cmd"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], -1
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L30:
	mov	DWORD PTR -32[rbp], 0
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	je	.L13
	cmp	eax, 3
	jg	.L14
	cmp	eax, 1
	je	.L15
	cmp	eax, 2
	je	.L16
	jmp	.L14
.L15:
	mov	DWORD PTR -24[rbp], 0
.L20:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1235
	mov	edi, eax
	call	testGetQueId
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -28[rbp], -1
	je	.L32
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	esi, 1
	mov	edi, eax
	call	testSendMsg
	add	DWORD PTR -24[rbp], 1
	jmp	.L20
.L32:
	nop
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1235
	mov	edi, eax
	call	testGetQueId
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	msgctl@PLT
	add	DWORD PTR -24[rbp], 1
.L21:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L22
	jmp	.L23
.L16:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	cmp	DWORD PTR -28[rbp], -1
	jne	.L24
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	testSendMsg
	add	DWORD PTR -24[rbp], 1
	mov	edi, 10
	call	usleep@PLT
	jmp	.L24
.L13:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	cmp	DWORD PTR -28[rbp], -1
	jne	.L25
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L23
.L25:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L26
.L29:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 1
	jmp	.L27
.L28:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	testRecvMsg
	mov	edi, 500000
	call	usleep@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	add	DWORD PTR -16[rbp], 1
.L27:
	cmp	DWORD PTR -16[rbp], 2
	jle	.L28
	add	DWORD PTR -20[rbp], 1
.L26:
	cmp	DWORD PTR -20[rbp], 2
	jle	.L29
	jmp	.L23
.L14:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	nop
.L23:
	jmp	.L30
	.cfi_endproc
.LFE9:
	.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	"455869.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ftok error\000"
	.text
	.align	2
	.global	testGetQueId
	.syntax unified
	.arm
	.fpu softvfp
	.type	testGetQueId, %function
testGetQueId:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L5
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r1, #1024
	ldr	r0, [fp, #-8]
	bl	msgget
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L3
	ldr	r1, .L5+4
	ldr	r0, [fp, #-8]
	bl	msgget
	str	r0, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	1023
	.size	testGetQueId, .-testGetQueId
	.section	.rodata
	.align	2
.LC1:
	.ascii	"sizeof(struct tMsgText) = %ld\012\000"
	.align	2
.LC2:
	.ascii	"msgsnd error\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testSendMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	testSendMsg, %function
testSendMsg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, .L11+4
	bl	printf
	sub	r1, fp, #16
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-24]
	bl	msgsnd
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11+8
	bl	puts
.L8:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	testSendMsg, .-testSendMsg
	.section	.rodata
	.align	2
.LC4:
	.ascii	"testRecvMsg\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testRecvMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	testRecvMsg, %function
testRecvMsg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, .L16+4
	bl	puts
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	sub	r1, fp, #16
	mov	r3, #2048
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	mov	r2, #101
	ldr	r0, [fp, #-32]
	bl	msgrcv
	str	r0, [fp, #-24]
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	.LC4
	.size	testRecvMsg, .-testRecvMsg
	.section	.rodata
	.align	2
.LC6:
	.ascii	"please enter cmd:\012[1]:get que id\012[2]: send ms"
	.ascii	"g to que; \012[3]: receive msg;\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"while %d\012\000"
	.align	2
.LC9:
	.ascii	"i=%d,qid=%d\012\000"
	.align	2
.LC10:
	.ascii	"send msg to que\000"
	.align	2
.LC11:
	.ascii	"que is not exist or create fail!\000"
	.align	2
.LC12:
	.ascii	"testSendMsg i=%d\012\000"
	.align	2
.LC13:
	.ascii	"recieve msg from que\000"
	.align	2
.LC14:
	.ascii	"testRecvMsg,%d,%d\012\000"
	.align	2
.LC15:
	.ascii	"testRecvMsg end\000"
	.align	2
.LC16:
	.ascii	"wrong cmd\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
.L36:
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, .L39+4
	bl	puts
	ldr	r3, .L39+8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L39+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L39+16
	bl	printf
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L19
	cmp	r3, #3
	bgt	.L20
	cmp	r3, #1
	beq	.L21
	cmp	r3, #2
	beq	.L22
	b	.L20
.L21:
	mov	r3, #0
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1232
	add	r3, r3, #3
	mov	r0, r3
	bl	testGetQueId
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L39+20
	bl	printf
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	beq	.L38
	mov	r2, #1
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	testSendMsg
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L26
.L38:
	nop
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L27
.L28:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1232
	add	r3, r3, #3
	mov	r0, r3
	bl	testGetQueId
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L39+20
	bl	printf
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	msgctl
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L27:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L28
	b	.L29
.L22:
	ldr	r0, .L39+24
	bl	puts
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L39+28
	bl	puts
	b	.L29
.L30:
	ldr	r1, [fp, #-24]
	ldr	r3, .L39+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r0, .L39+36
	bl	printf
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	testSendMsg
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, #10
	bl	usleep
	b	.L30
.L19:
	ldr	r0, .L39+40
	bl	puts
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L39+28
	bl	puts
	b	.L29
.L31:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L32
.L35:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L39+44
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L33
.L34:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L39+44
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	testRecvMsg
	ldr	r0, .L39+48
	bl	usleep
	ldr	r0, .L39+52
	bl	puts
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L33:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L34
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L32:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	ble	.L35
	b	.L29
.L20:
	ldr	r0, .L39+56
	bl	puts
	nop
.L29:
	b	.L36
.L40:
	.align	2
.L39:
	.word	.LC17
	.word	.LC6
	.word	stdin
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	1374389535
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	500000
	.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
