	.file	"619496.c"
	.intel_syntax noprefix
	.text
	.globl	data
	.data
	.align 4
	.type	data, @object
	.size	data, 4
data:
	.long	4660
	.globl	qid_server
	.bss
	.align 4
	.type	qid_server, @object
	.size	qid_server, 4
qid_server:
	.zero	4
	.globl	qid_client
	.align 4
	.type	qid_client, @object
	.size	qid_client, 4
qid_client:
	.zero	4
	.section	.rodata
.LC0:
	.string	"pthread_create: task1"
.LC1:
	.string	"pthread_create: task2"
.LC2:
	.string	"pthread task  id: %d\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
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	server_init
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, task1[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, task2[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, 0
	call	pthread_self@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	pthread_join@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"pthread task1 id: %d\n"
	.text
	.globl	task1
	.type	task1, @function
task1:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	call	pthread_self@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	server
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	task1, .-task1
	.section	.rodata
.LC4:
	.string	"pthread task2: %d\n"
	.align 8
.LC5:
	.string	"RD addr 0x%.4x, value 0x%.4x.\n"
	.text
	.globl	task2
	.type	task2, @function
task2:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 32
	mov	eax, 0
	call	pthread_self@PLT
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ssctest_msg_read
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L7
	.cfi_endproc
.LFE8:
	.size	task2, .-task2
	.section	.rodata
.LC6:
	.string	"/etc/passwd"
.LC7:
	.string	"crest key_server"
.LC8:
	.string	"crest key_client"
.LC9:
	.string	"msgget:create"
.LC10:
	.string	"create server queue id = %d\n"
.LC11:
	.string	"msgget:open"
.LC12:
	.string	"opened server queue id = %d\n"
.LC13:
	.string	"create client queue id = %d\n"
.LC14:
	.string	"opened client queue id = %d\n"
	.text
	.globl	server_init
	.type	server_init, @function
server_init:
.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 -32[rbp], 577
	mov	esi, 0
	lea	rdi, .LC6[rip]
	call	ftok@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L10
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	ftok@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L11
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 950
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR qid_server[rip], eax
	mov	eax, DWORD PTR qid_server[rip]
	test	eax, eax
	jns	.L12
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR qid_server[rip]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 0
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR qid_server[rip], eax
	mov	eax, DWORD PTR qid_server[rip]
	test	eax, eax
	jns	.L13
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR qid_server[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 950
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR qid_client[rip], eax
	mov	eax, DWORD PTR qid_client[rip]
	test	eax, eax
	jns	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR qid_client[rip]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 0
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR qid_client[rip], eax
	mov	eax, DWORD PTR qid_client[rip]
	test	eax, eax
	jns	.L15
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR qid_client[rip]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	server_init, .-server_init
	.section	.rodata
.LC15:
	.string	"msgsnd"
.LC16:
	.string	"msgrcv"
	.text
	.globl	server
	.type	server, @function
server:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L26:
	mov	eax, DWORD PTR qid_server[rip]
	lea	rsi, -32[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 16
	mov	edi, eax
	call	msgrcv@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jle	.L18
	movzx	eax, BYTE PTR -24[rbp]
	movzx	eax, al
	cmp	eax, 1
	je	.L19
	cmp	eax, 2
	je	.L20
	jmp	.L25
.L19:
	mov	eax, DWORD PTR data[rip]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR qid_client[rip]
	lea	rsi, -32[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	test	eax, eax
	jns	.L28
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR data[rip], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR qid_client[rip]
	lea	rsi, -32[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	test	eax, eax
	jns	.L29
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	nop
	jmp	.L25
.L29:
	nop
.L25:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L26
	.cfi_endproc
.LFE10:
	.size	server, .-server
	.globl	ssctest_msg_read
	.type	ssctest_msg_read, @function
ssctest_msg_read:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	getpid@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	mov	BYTE PTR -40[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -52[rbp], 16
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR qid_server[rip]
	lea	rsi, -48[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	test	eax, eax
	jns	.L31
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	call	getpid@PLT
	movsx	rdx, eax
	mov	eax, DWORD PTR qid_client[rip]
	lea	rsi, -48[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 16
	mov	edi, eax
	call	msgrcv@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jle	.L32
	mov	rbx, QWORD PTR -48[rbp]
	call	getpid@PLT
	cdqe
	cmp	rbx, rax
	jne	.L31
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	nop
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	jmp	.L36
.L32:
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	call	__stack_chk_fail@PLT
.L35:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ssctest_msg_read, .-ssctest_msg_read
	.globl	ssctest_msg_write
	.type	ssctest_msg_write, @function
ssctest_msg_write:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	getpid@PLT
	cdqe
	mov	QWORD PTR -48[rbp], rax
	mov	BYTE PTR -40[rbp], 2
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -52[rbp], 16
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR qid_server[rip]
	lea	rsi, -48[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	test	eax, eax
	jns	.L38
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	mov	eax, DWORD PTR qid_client[rip]
	lea	rsi, -48[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 16
	mov	edi, eax
	call	msgrcv@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jle	.L39
	mov	rbx, QWORD PTR -48[rbp]
	call	getpid@PLT
	cdqe
	cmp	rbx, rax
	jne	.L38
	jmp	.L43
.L39:
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ssctest_msg_write, .-ssctest_msg_write
	.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	"619496.c"
	.text
	.global	data
	.data
	.align	2
	.type	data, %object
	.size	data, 4
data:
	.word	4660
	.comm	qid_server,4,4
	.comm	qid_client,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pthread_create: task1\000"
	.align	2
.LC1:
	.ascii	"pthread_create: task2\000"
	.align	2
.LC2:
	.ascii	"pthread task  id: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	server_init
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L5+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L5+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L5+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L5+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L5+20
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC3
	.word	task1
	.word	.LC0
	.word	task2
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"pthread task1 id: %d\012\000"
	.text
	.align	2
	.global	task1
	.syntax unified
	.arm
	.fpu softvfp
	.type	task1, %function
task1:
	@ 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]
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8
	bl	printf
	bl	server
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.size	task1, .-task1
	.section	.rodata
	.align	2
.LC5:
	.ascii	"pthread task2: %d\012\000"
	.align	2
.LC6:
	.ascii	"RD addr 0x%.4x, value 0x%.4x.\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	task2
	.syntax unified
	.arm
	.fpu softvfp
	.type	task2, %function
task2:
	@ 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, #-24]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	str	r3, [fp, #-12]
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
.L11:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	ssctest_msg_read
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+8
	bl	printf
	mov	r0, #1
	bl	sleep
	b	.L11
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	task2, .-task2
	.section	.rodata
	.align	2
.LC8:
	.ascii	"/etc/passwd\000"
	.align	2
.LC9:
	.ascii	"crest key_server\000"
	.align	2
.LC10:
	.ascii	"crest key_client\000"
	.align	2
.LC11:
	.ascii	"msgget:create\000"
	.align	2
.LC12:
	.ascii	"create server queue id = %d\012\000"
	.align	2
.LC13:
	.ascii	"msgget:open\000"
	.align	2
.LC14:
	.ascii	"opened server queue id = %d\012\000"
	.align	2
.LC15:
	.ascii	"create client queue id = %d\012\000"
	.align	2
.LC16:
	.ascii	"opened client queue id = %d\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_init, %function
server_init:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L23+4
	str	r3, [fp, #-32]
	mov	r1, #0
	ldr	r0, .L23+8
	bl	ftok
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L23+12
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	mov	r1, #1
	ldr	r0, .L23+8
	bl	ftok
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L23+16
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r1, .L23+20
	ldr	r0, [fp, #-28]
	bl	msgget
	mov	r3, r0
	ldr	r2, .L23+24
	str	r3, [r2]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L23+28
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+32
	bl	printf
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	msgget
	mov	r3, r0
	ldr	r2, .L23+24
	str	r3, [r2]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L23+36
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+40
	bl	printf
	ldr	r1, .L23+20
	ldr	r0, [fp, #-24]
	bl	msgget
	mov	r3, r0
	ldr	r2, .L23+44
	str	r3, [r2]
	ldr	r3, .L23+44
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L23+28
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, .L23+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+48
	bl	printf
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	msgget
	mov	r3, r0
	ldr	r2, .L23+44
	str	r3, [r2]
	ldr	r3, .L23+44
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L23+36
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	ldr	r3, .L23+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+52
	bl	printf
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC17
	.word	577
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	950
	.word	qid_server
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	qid_client
	.word	.LC15
	.word	.LC16
	.size	server_init, .-server_init
	.section	.rodata
	.align	2
.LC18:
	.ascii	"msgsnd\000"
	.align	2
.LC19:
	.ascii	"msgrcv\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server
	.syntax unified
	.arm
	.fpu softvfp
	.type	server, %function
server:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L34:
	ldr	r3, .L38+4
	ldr	r0, [r3]
	sub	r1, fp, #24
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #12
	bl	msgrcv
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L26
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L27
	cmp	r3, #2
	beq	.L28
	b	.L33
.L27:
	ldr	r3, .L38+8
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L38+12
	ldr	r0, [r3]
	ldr	r2, [fp, #-28]
	sub	r1, fp, #24
	mov	r3, #0
	bl	msgsnd
	mov	r3, r0
	cmp	r3, #0
	bge	.L36
	ldr	r0, .L38+16
	bl	perror
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-12]
	ldr	r2, .L38+8
	str	r3, [r2]
	ldr	r3, .L38+12
	ldr	r0, [r3]
	ldr	r2, [fp, #-28]
	sub	r1, fp, #24
	mov	r3, #0
	bl	msgsnd
	mov	r3, r0
	cmp	r3, #0
	bge	.L37
	ldr	r0, .L38+16
	bl	perror
	mov	r0, #1
	bl	exit
.L26:
	ldr	r0, .L38+20
	bl	perror
	mov	r0, #1
	bl	exit
.L36:
	nop
	b	.L33
.L37:
	nop
.L33:
	mov	r0, #1
	bl	sleep
	b	.L34
.L39:
	.align	2
.L38:
	.word	.LC20
	.word	qid_server
	.word	data
	.word	qid_client
	.word	.LC18
	.word	.LC19
	.size	server, .-server
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ssctest_msg_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssctest_msg_read, %function
ssctest_msg_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	getpid
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #1
	strb	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	mov	r3, #12
	str	r3, [fp, #-36]
	ldr	r3, .L47+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	sub	r1, fp, #32
	mov	r3, #0
	bl	msgsnd
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L47+8
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	ldr	r3, .L47+12
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	sub	r1, fp, #32
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #12
	mov	r0, r4
	bl	msgrcv
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L42
	ldr	r4, [fp, #-32]
	bl	getpid
	mov	r3, r0
	cmp	r4, r3
	bne	.L41
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	nop
	nop
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	b	.L46
.L42:
	ldr	r0, .L47+16
	bl	perror
	mov	r0, #1
	bl	exit
.L46:
	bl	__stack_chk_fail
.L45:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC21
	.word	qid_server
	.word	.LC18
	.word	qid_client
	.word	.LC19
	.size	ssctest_msg_read, .-ssctest_msg_read
	.section	.rodata
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ssctest_msg_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssctest_msg_write, %function
ssctest_msg_write:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	getpid
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #2
	strb	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	mov	r3, #12
	str	r3, [fp, #-36]
	ldr	r3, .L56+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	sub	r1, fp, #32
	mov	r3, #0
	bl	msgsnd
	mov	r3, r0
	cmp	r3, #0
	bge	.L50
	ldr	r0, .L56+8
	bl	perror
	mov	r0, #1
	bl	exit
.L50:
	ldr	r3, .L56+12
	ldr	r0, [r3]
	sub	r1, fp, #32
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #12
	bl	msgrcv
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L51
	ldr	r4, [fp, #-32]
	bl	getpid
	mov	r3, r0
	cmp	r4, r3
	bne	.L50
	b	.L55
.L51:
	ldr	r0, .L56+16
	bl	perror
	mov	r0, #1
	bl	exit
.L55:
	nop
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC22
	.word	qid_server
	.word	.LC18
	.word	qid_client
	.word	.LC19
	.size	ssctest_msg_write, .-ssctest_msg_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
