	.file	"844338.c"
	.intel_syntax noprefix
	.text
	.local	id
	.comm	id,4,4
	.local	t1_id
	.comm	t1_id,8,8
	.local	t2_id
	.comm	t2_id,8,8
	.section	.rodata
.LC0:
	.string	"Hello message 1"
.LC1:
	.string	"Hello message 2"
.LC2:
	.string	"Hello message 3"
.LC3:
	.string	"Hello message 4"
.LC4:
	.string	"Hello message 5"
.LC5:
	.string	"Hello message 6"
.LC6:
	.string	"Hello message 7"
.LC7:
	.string	"Hello message 8"
.LC8:
	.string	"Hello message 9"
.LC9:
	.string	"Hello message 10"
	.section	.data.rel.local,"aw"
	.align 32
	.type	msg, @object
	.size	msg, 80
msg:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.section	.rodata
.LC10:
	.string	"Thread %zu created\n"
.LC11:
	.string	"Receive message failed"
.LC12:
	.string	"t1 received: %s\n"
	.text
	.type	thread_t1, @function
thread_t1:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	call	pthread_self@PLT
	mov	QWORD PTR t1_id[rip], rax
.L5:
	mov	rax, QWORD PTR t1_id[rip]
	mov	rdx, rax
	mov	eax, DWORD PTR id[rip]
	lea	rsi, -144[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 127
	mov	edi, eax
	call	msgrcv@PLT
	cmp	rax, -1
	jne	.L2
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L3
.L2:
	lea	rax, -144[rbp]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	rax, QWORD PTR msg[rip+72]
	lea	rdx, -144[rbp]
	add	rdx, 8
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR t2_id[rip]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	thread_t1, .-thread_t1
	.section	.rodata
.LC13:
	.string	"t2 received: %s\n"
	.text
	.type	thread_t2, @function
thread_t2:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	call	pthread_self@PLT
	mov	QWORD PTR t2_id[rip], rax
.L11:
	mov	rax, QWORD PTR t2_id[rip]
	mov	rdx, rax
	mov	eax, DWORD PTR id[rip]
	lea	rsi, -144[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 127
	mov	edi, eax
	call	msgrcv@PLT
	cmp	rax, -1
	jne	.L8
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L9
.L8:
	lea	rax, -144[rbp]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	rax, QWORD PTR msg[rip+72]
	lea	rdx, -144[rbp]
	add	rdx, 8
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR t1_id[rip]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	thread_t2, .-thread_t2
	.section	.rodata
.LC14:
	.string	"/tmp/mq-XXXXXX"
.LC15:
	.string	"Create mq file failed"
.LC16:
	.string	"mq file: %s\n"
.LC17:
	.string	"Create key failed"
.LC18:
	.string	"Create message queue failed"
.LC19:
	.string	"Message queue id: %d\n"
.LC20:
	.string	"Thread create failed"
.LC21:
	.string	"Send message failed"
.LC22:
	.string	"Thread join failed"
	.align 8
.LC23:
	.string	"Delete message queue id failed"
	.text
	.globl	main
	.type	main, @function
main:
.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, 272
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -256[rbp], 0
	mov	DWORD PTR -252[rbp], 512
	mov	DWORD PTR -248[rbp], 384
	mov	DWORD PTR -244[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	lea	rax, .LC14[rip]
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -216[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	mkstemp@PLT
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	ftok@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], -1
	jne	.L15
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -252[rbp]
	or	eax, DWORD PTR -248[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, edx
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR id[rip], eax
	mov	eax, DWORD PTR id[rip]
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR id[rip]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -208[rbp]
	mov	ecx, 0
	lea	rdx, thread_t1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	je	.L17
	call	__errno_location@PLT
	mov	edx, DWORD PTR -256[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rax, -208[rbp]
	add	rax, 8
	mov	ecx, 1
	lea	rdx, thread_t2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	je	.L19
	call	__errno_location@PLT
	mov	edx, DWORD PTR -256[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	edi, 1
	call	sleep@PLT
.L19:
	mov	rax, QWORD PTR t1_id[rip]
	test	rax, rax
	je	.L20
	mov	rax, QWORD PTR t2_id[rip]
	test	rax, rax
	je	.L20
	mov	QWORD PTR -232[rbp], 0
	jmp	.L21
.L25:
	mov	rax, QWORD PTR -232[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR t1_id[rip]
	mov	QWORD PTR -192[rbp], rax
	jmp	.L23
.L22:
	mov	rax, QWORD PTR t2_id[rip]
	mov	QWORD PTR -192[rbp], rax
.L23:
	mov	rax, QWORD PTR -232[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, msg[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -232[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, msg[rip]
	mov	rax, QWORD PTR [rcx+rax]
	lea	rcx, -192[rbp]
	add	rcx, 8
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	lea	rax, -192[rbp]
	add	rax, 8
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR id[rip]
	lea	rsi, -192[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	msgsnd@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC21[rip]
	call	perror@PLT
.L24:
	add	QWORD PTR -232[rbp], 1
.L21:
	cmp	QWORD PTR -232[rbp], 10
	jne	.L25
	mov	QWORD PTR -224[rbp], 0
	jmp	.L26
.L28:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -208[rbp+rax*8]
	lea	rdx, -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	je	.L27
	call	__errno_location@PLT
	mov	edx, DWORD PTR -256[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	add	QWORD PTR -224[rbp], 1
.L26:
	cmp	QWORD PTR -224[rbp], 2
	jne	.L28
	mov	eax, DWORD PTR id[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	msgctl@PLT
	cmp	eax, -1
	jne	.L29
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"844338.c"
	.text
	.local	id
	.comm	id,4,4
	.local	t1_id
	.comm	t1_id,4,4
	.local	t2_id
	.comm	t2_id,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello message 1\000"
	.align	2
.LC1:
	.ascii	"Hello message 2\000"
	.align	2
.LC2:
	.ascii	"Hello message 3\000"
	.align	2
.LC3:
	.ascii	"Hello message 4\000"
	.align	2
.LC4:
	.ascii	"Hello message 5\000"
	.align	2
.LC5:
	.ascii	"Hello message 6\000"
	.align	2
.LC6:
	.ascii	"Hello message 7\000"
	.align	2
.LC7:
	.ascii	"Hello message 8\000"
	.align	2
.LC8:
	.ascii	"Hello message 9\000"
	.align	2
.LC9:
	.ascii	"Hello message 10\000"
	.data
	.align	2
	.type	msg, %object
	.size	msg, 40
msg:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Thread %zu created\012\000"
	.align	2
.LC11:
	.ascii	"Receive message failed\000"
	.align	2
.LC12:
	.ascii	"t1 received: %s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_t1, %function
thread_t1:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-144]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	bl	pthread_self
	mov	r3, r0
	ldr	r2, .L7+8
	str	r3, [r2]
.L5:
	ldr	r3, .L7+12
	ldr	r0, [r3]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, r3
	sub	r1, fp, #140
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #127
	bl	msgrcv
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+16
	bl	perror
	b	.L3
.L2:
	sub	r3, fp, #140
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L7+20
	bl	printf
.L3:
	ldr	r3, .L7+24
	ldr	r2, [r3, #36]
	sub	r3, fp, #140
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L7+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	pthread_cancel
	mov	r0, #0
	bl	pthread_exit
.L8:
	.align	2
.L7:
	.word	.LC13
	.word	.LC10
	.word	t1_id
	.word	id
	.word	.LC11
	.word	.LC12
	.word	msg
	.word	t2_id
	.size	thread_t1, .-thread_t1
	.section	.rodata
	.align	2
.LC14:
	.ascii	"t2 received: %s\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_t2, %function
thread_t2:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-144]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	bl	pthread_self
	mov	r3, r0
	ldr	r2, .L15+8
	str	r3, [r2]
.L13:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, r3
	sub	r1, fp, #140
	mov	r3, #0
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #127
	bl	msgrcv
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L15+16
	bl	perror
	b	.L11
.L10:
	sub	r3, fp, #140
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
.L11:
	ldr	r3, .L15+24
	ldr	r2, [r3, #36]
	sub	r3, fp, #140
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L15+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	pthread_cancel
	mov	r0, #0
	bl	pthread_exit
.L16:
	.align	2
.L15:
	.word	.LC15
	.word	.LC10
	.word	t2_id
	.word	id
	.word	.LC11
	.word	.LC14
	.word	msg
	.word	t1_id
	.size	thread_t2, .-thread_t2
	.section	.rodata
	.align	2
.LC16:
	.ascii	"/tmp/mq-XXXXXX\000"
	.align	2
.LC17:
	.ascii	"Create mq file failed\000"
	.align	2
.LC18:
	.ascii	"mq file: %s\012\000"
	.align	2
.LC19:
	.ascii	"Create key failed\000"
	.align	2
.LC20:
	.ascii	"Create message queue failed\000"
	.align	2
.LC21:
	.ascii	"Message queue id: %d\012\000"
	.align	2
.LC22:
	.ascii	"Thread create failed\000"
	.align	2
.LC23:
	.ascii	"Send message failed\000"
	.align	2
.LC24:
	.ascii	"Thread join failed\000"
	.align	2
.LC25:
	.ascii	"Delete message queue id failed\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #220
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #44
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	mov	r3, #0
	str	r3, [fp, #-208]
	mov	r3, #512
	str	r3, [fp, #-204]
	mov	r3, #384
	str	r3, [fp, #-200]
	mov	r3, #0
	str	r3, [fp, #-196]
	mov	r3, #0
	str	r3, [fp, #-220]
	ldr	r3, .L36+4
	str	r3, [fp, #-192]
	ldr	r0, [fp, #-192]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #48
	ldr	r1, [fp, #-192]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #48
	mov	r0, r3
	bl	mkstemp
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L36+8
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L36+12
	bl	printf
	sub	r3, fp, #48
	mov	r1, #1
	mov	r0, r3
	bl	ftok
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L36+16
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-200]
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	msgget
	mov	r3, r0
	ldr	r2, .L36+20
	str	r3, [r2]
	ldr	r3, .L36+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L36+24
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, .L36+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+28
	bl	printf
	sub	r0, fp, #188
	mov	r3, #0
	ldr	r2, .L36+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	beq	.L21
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-208]
	str	r3, [r2]
	ldr	r0, .L36+36
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #188
	add	r0, r3, #4
	mov	r3, #1
	ldr	r2, .L36+40
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	beq	.L23
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-208]
	str	r3, [r2]
	ldr	r0, .L36+36
	bl	perror
	mov	r0, #1
	bl	exit
.L24:
	mov	r0, #1
	bl	sleep
.L23:
	ldr	r3, .L36+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L36+48
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	mov	r3, #0
	str	r3, [fp, #-216]
	b	.L25
.L29:
	ldr	r3, [fp, #-216]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L36+44
	ldr	r3, [r3]
	str	r3, [fp, #-180]
	b	.L27
.L26:
	ldr	r3, .L36+48
	ldr	r3, [r3]
	str	r3, [fp, #-180]
.L27:
	ldr	r2, .L36+52
	ldr	r3, [fp, #-216]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r2, .L36+52
	ldr	r3, [fp, #-216]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #180
	add	r3, r3, #4
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L36+20
	ldr	r4, [r3]
	sub	r3, fp, #180
	add	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #180
	mov	r3, #0
	mov	r0, r4
	bl	msgsnd
	mov	r3, r0
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L36+56
	bl	perror
.L28:
	ldr	r3, [fp, #-216]
	add	r3, r3, #1
	str	r3, [fp, #-216]
.L25:
	ldr	r3, [fp, #-216]
	cmp	r3, #10
	bne	.L29
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L30
.L32:
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-176]
	sub	r2, fp, #220
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	beq	.L31
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-208]
	str	r3, [r2]
	ldr	r0, .L36+60
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L30:
	ldr	r3, [fp, #-212]
	cmp	r3, #2
	bne	.L32
	ldr	r3, .L36+20
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	msgctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L36+64
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC26
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	id
	.word	.LC20
	.word	.LC21
	.word	thread_t1
	.word	.LC22
	.word	thread_t2
	.word	t1_id
	.word	t2_id
	.word	msg
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
