	.file	"160558.c"
	.intel_syntax noprefix
	.text
	.globl	MAX_THREADS
	.section	.rodata
	.align 4
	.type	MAX_THREADS, @object
	.size	MAX_THREADS, 4
MAX_THREADS:
	.long	1024
	.globl	MSG_MAX
	.align 4
	.type	MSG_MAX, @object
	.size	MSG_MAX, 4
MSG_MAX:
	.long	100
	.globl	thread_count
	.bss
	.align 4
	.type	thread_count, @object
	.size	thread_count, 4
thread_count:
	.zero	4
	.globl	messages
	.align 8
	.type	messages, @object
	.size	messages, 8
messages:
	.zero	8
	.globl	snames
	.align 8
	.type	snames, @object
	.size	snames, 8
snames:
	.zero	8
	.globl	sems
	.align 8
	.type	sems, @object
	.size	sems, 8
sems:
	.zero	8
	.section	.rodata
.LC0:
	.string	"/sem%ld"
	.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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Usage
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR thread_count[rip], eax
	mov	eax, DWORD PTR thread_count[rip]
	test	eax, eax
	jle	.L3
	mov	eax, DWORD PTR thread_count[rip]
	mov	edx, 1024
	cmp	eax, edx
	jle	.L4
.L3:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Usage
.L4:
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR messages[rip], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR messages[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	QWORD PTR -32[rbp], 1
.L5:
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L6
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR sems[rip], rax
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR snames[rip], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR snames[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR snames[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR snames[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR sems[rip]
	mov	rdx, QWORD PTR -32[rbp]
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	ecx, 0
	mov	edx, 511
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR [rbx], rax
	add	QWORD PTR -32[rbp], 1
.L7:
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L8
	mov	QWORD PTR -32[rbp], 0
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rdi, [rcx+rdx]
	mov	rcx, rax
	lea	rdx, Send_msg[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	QWORD PTR -32[rbp], 1
.L9:
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L10
	mov	QWORD PTR -32[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	QWORD PTR -32[rbp], 1
.L11:
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L12
	mov	QWORD PTR -32[rbp], 0
	jmp	.L13
.L14:
	mov	rdx, QWORD PTR snames[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sem_unlink@PLT
	mov	rdx, QWORD PTR sems[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sem_close@PLT
	mov	rdx, QWORD PTR messages[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR snames[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -32[rbp], 1
.L13:
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jl	.L14
	mov	rax, QWORD PTR sems[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR messages[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: %s <number of threads>\n"
	.text
	.globl	Usage
	.type	Usage, @function
Usage:
.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	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	Usage, .-Usage
	.section	.rodata
.LC2:
	.string	"Hello to %ld from %ld"
.LC3:
	.string	"Thread %ld > %s\n"
	.align 8
.LC4:
	.string	"Thread %ld > No message from %ld\n"
	.text
	.globl	Send_msg
	.type	Send_msg, @function
Send_msg:
.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	edx, DWORD PTR thread_count[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR thread_count[rip]
	cdqe
	add	rax, rdx
	mov	edx, DWORD PTR thread_count[rip]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	QWORD PTR -16[rbp], rdx
	mov	eax, 100
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR messages[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR sems[rip]
	mov	rax, QWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rdx, QWORD PTR sems[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rdx, QWORD PTR messages[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	mov	rdx, QWORD PTR messages[rip]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L18:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Send_msg, .-Send_msg
	.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	"160558.c"
	.text
	.global	MAX_THREADS
	.section	.rodata
	.align	2
	.type	MAX_THREADS, %object
	.size	MAX_THREADS, 4
MAX_THREADS:
	.word	1024
	.global	MSG_MAX
	.align	2
	.type	MSG_MAX, %object
	.size	MSG_MAX, 4
MSG_MAX:
	.word	100
	.comm	thread_count,4,4
	.comm	messages,4,4
	.comm	snames,4,4
	.comm	sems,4,4
	.align	2
.LC0:
	.ascii	"/sem%ld\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Usage
.L2:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L3
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #1024
	cmp	r3, r2
	ble	.L4
.L3:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Usage
.L4:
	ldr	r3, .L16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, .L16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+4
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	ldr	r3, .L16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+8
	str	r2, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+12
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L7
.L8:
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L16+16
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r3, #0
	ldr	r2, .L16+20
	mov	r1, #64
	bl	sem_open
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L9
.L10:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r2, .L16+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L13
.L14:
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_unlink
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_close
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L13:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L14
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	thread_count
	.word	messages
	.word	sems
	.word	snames
	.word	.LC0
	.word	511
	.word	Send_msg
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"usage: %s <number of threads>\012\000"
	.text
	.align	2
	.global	Usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	Usage, %function
Usage:
	@ 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]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L19+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L20:
	.align	2
.L19:
	.word	stderr
	.word	.LC1
	.size	Usage, .-Usage
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Hello to %ld from %ld\000"
	.align	2
.LC3:
	.ascii	"Thread %ld > %s\012\000"
	.align	2
.LC4:
	.ascii	"Thread %ld > No message from %ld\012\000"
	.text
	.align	2
	.global	Send_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	Send_msg, %function
Send_msg:
	@ 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, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, .L25
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L25
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	mov	r3, #100
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, .L25+4
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_post
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	sem_wait
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L25+16
	bl	printf
	b	.L23
.L22:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, .L25+20
	bl	printf
.L23:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	thread_count
	.word	.LC2
	.word	messages
	.word	sems
	.word	.LC3
	.word	.LC4
	.size	Send_msg, .-Send_msg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
