	.file	"178265547.c"
	.intel_syntax noprefix
	.text
	.globl	created_blocks
	.bss
	.align 4
	.type	created_blocks, @object
	.size	created_blocks, 4
created_blocks:
	.zero	4
	.globl	head
	.align 32
	.type	head, @object
	.size	head, 112
head:
	.zero	112
	.globl	last
	.align 8
	.type	last, @object
	.size	last, 8
last:
	.zero	8
	.section	.rodata
.LC0:
	.string	"<<<<<<<<<<<<<>>>>>>>>>>>>"
	.align 8
.LC1:
	.string	"usuario %d usou uma versao desatualizada da lista\n"
	.text
	.globl	add_noh
	.type	add_noh, @function
add_noh:
.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 112
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR last[rip]
	cmp	QWORD PTR -40[rbp], rax
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR created_blocks[rip]
	add	eax, 1
	mov	DWORD PTR created_blocks[rip], eax
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	add_noh, .-add_noh
	.globl	handleThread
	.bss
	.align 32
	.type	handleThread, @object
	.size	handleThread, 144
handleThread:
	.zero	144
	.globl	threadId
	.align 16
	.type	threadId, @object
	.size	threadId, 24
threadId:
	.zero	24
	.globl	mutex
	.align 32
	.type	mutex, @object
	.size	mutex, 32
mutex:
	.zero	32
	.globl	mutex_auditor
	.align 32
	.type	mutex_auditor, @object
	.size	mutex_auditor, 32
mutex_auditor:
	.zero	32
	.text
	.globl	_up
	.type	_up, @function
_up:
.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_up, .-_up
	.globl	_down
	.type	_down, @function
_down:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_down, .-_down
	.globl	messagesSent
	.bss
	.align 8
	.type	messagesSent, @object
	.size	messagesSent, 8
messagesSent:
	.zero	8
	.globl	index_available
	.align 4
	.type	index_available, @object
	.size	index_available, 4
index_available:
	.zero	4
	.section	.rodata
.LC2:
	.string	"&mutex"
	.align 8
.LC3:
	.string	"Usuario %d conectado com indice %d\n"
.LC4:
	.string	"usuario 1 diz: hello world!"
.LC5:
	.string	"&mutex_auditor"
	.text
	.globl	client
	.type	client, @function
client:
.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	QWORD PTR -24[rbp], rdi
	call	pthread_self@PLT
	mov	DWORD PTR -16[rbp], eax
	lea	rsi, .LC2[rip]
	lea	rdi, mutex[rip]
	call	_down
	mov	eax, DWORD PTR index_available[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR index_available[rip], edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, messagesSent[rip]
	mov	DWORD PTR [rdx+rax], 0
	lea	rsi, .LC2[rip]
	lea	rdi, mutex[rip]
	call	_up
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC4[rip]
	mov	QWORD PTR -8[rbp], rax
.L7:
	mov	edi, 1
	call	sleep@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, mutex_auditor[rip]
	call	_down
	lea	rsi, .LC5[rip]
	lea	rdi, mutex_auditor[rip]
	call	_up
	mov	rdx, QWORD PTR last[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	add_noh
	mov	QWORD PTR last[rip], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, messagesSent[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, messagesSent[rip]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L7
	.cfi_endproc
.LFE9:
	.size	client, .-client
	.section	.rodata
.LC6:
	.string	"Auditor online"
	.align 8
.LC7:
	.string	"-----------------------auditoria-----------------------------"
.LC8:
	.string	"Auditoria:"
	.align 8
.LC9:
	.string	"mensagens que o usuario %d diz ter enviado: %d\n"
	.align 8
.LC10:
	.string	"mensagens que a auditoria encontrou      : %d\n"
	.align 8
.LC11:
	.string	"blocos que foram criados : %d\n"
	.align 8
.LC12:
	.string	"blocos presentes na lista: %d\n"
	.align 8
.LC13:
	.string	"--------------------------fim--------------------------------"
	.text
	.globl	auditor
	.type	auditor, @function
auditor:
.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L15:
	mov	edi, 3
	call	sleep@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, mutex_auditor[rip]
	call	_down
	lea	rsi, .LC2[rip]
	lea	rdi, mutex[rip]
	call	_down
	mov	DWORD PTR -32[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	DWORD PTR -16[rbp+rax*4], 0
	add	DWORD PTR -32[rbp], 1
.L9:
	cmp	DWORD PTR -32[rbp], 1
	jle	.L10
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR head[rip+104]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -16[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -16[rbp+rax*4], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -28[rbp], 1
.L11:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, messagesSent[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	eax, DWORD PTR -16[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L13:
	cmp	DWORD PTR -32[rbp], 1
	jle	.L14
	mov	eax, DWORD PTR created_blocks[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rsi, .LC2[rip]
	lea	rdi, mutex[rip]
	call	_up
	lea	rsi, .LC5[rip]
	lea	rdi, mutex_auditor[rip]
	call	_up
	jmp	.L15
	.cfi_endproc
.LFE10:
	.size	auditor, .-auditor
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR index_available[rip], 0
	mov	DWORD PTR created_blocks[rip], 0
	mov	QWORD PTR head[rip+104], 0
	lea	rax, head[rip]
	mov	QWORD PTR last[rip], rax
	mov	edx, 1
	mov	esi, 0
	lea	rdi, mutex[rip]
	call	sem_init@PLT
	mov	edx, 1
	mov	esi, 0
	lea	rdi, mutex_auditor[rip]
	call	sem_init@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, client[rip]
	mov	QWORD PTR -32[rbp+rax*8], rdx
	add	DWORD PTR -36[rbp], 1
.L18:
	cmp	DWORD PTR -36[rbp], 1
	jle	.L19
	lea	rax, auditor[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	rax, QWORD PTR -32[rbp+rax*8]
	mov	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, threadId[rip]
	add	rax, rcx
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -36[rbp], 1
.L20:
	cmp	DWORD PTR -36[rbp], 1
	jle	.L21
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 0
	mov	rdx, rax
	mov	esi, 0
	lea	rdi, threadId[rip+16]
	call	pthread_create@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, threadId[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -36[rbp], 1
.L22:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L23
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"178265547.c"
	.text
	.comm	created_blocks,4,4
	.comm	head,108,4
	.comm	last,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"<<<<<<<<<<<<<>>>>>>>>>>>>\000"
	.align	2
.LC1:
	.ascii	"usuario %d usou uma versao desatualizada da lista\012"
	.ascii	"\000"
	.text
	.align	2
	.global	add_noh
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_noh, %function
add_noh:
	@ 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	r0, #108
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #104]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L2
	ldr	r0, .L4+4
	bl	puts
	ldr	r1, [fp, #-16]
	ldr	r0, .L4+8
	bl	printf
.L2:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	ldr	r3, .L4+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4+12
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	last
	.word	.LC0
	.word	.LC1
	.word	created_blocks
	.size	add_noh, .-add_noh
	.comm	handleThread,144,8
	.comm	threadId,12,4
	.comm	mutex,16,4
	.comm	mutex_auditor,16,4
	.align	2
	.global	_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	_up, %function
_up:
	@ 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	r0, [fp, #-8]
	bl	sem_post
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_up, .-_up
	.align	2
	.global	_down
	.syntax unified
	.arm
	.fpu softvfp
	.type	_down, %function
_down:
	@ 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	r0, [fp, #-8]
	bl	sem_wait
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_down, .-_down
	.comm	messagesSent,8,4
	.comm	index_available,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"&mutex\000"
	.align	2
.LC3:
	.ascii	"Usuario %d conectado com indice %d\012\000"
	.align	2
.LC4:
	.ascii	"usuario 1 diz: hello world!\000"
	.align	2
.LC5:
	.ascii	"&mutex_auditor\000"
	.text
	.align	2
	.global	client
	.syntax unified
	.arm
	.fpu softvfp
	.type	client, %function
client:
	@ 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]
	bl	pthread_self
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r1, .L10
	ldr	r0, .L10+4
	bl	_down
	ldr	r3, .L10+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L10+8
	str	r2, [r1]
	str	r3, [fp, #-12]
	ldr	r2, .L10+12
	ldr	r3, [fp, #-12]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r1, .L10
	ldr	r0, .L10+4
	bl	_up
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, .L10+20
	str	r3, [fp, #-8]
.L9:
	mov	r0, #1
	bl	sleep
	ldr	r1, .L10+24
	ldr	r0, .L10+28
	bl	_down
	ldr	r1, .L10+24
	ldr	r0, .L10+28
	bl	_up
	ldr	r3, .L10+32
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	add_noh
	mov	r3, r0
	ldr	r2, .L10+32
	str	r3, [r2]
	ldr	r2, .L10+12
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L10+12
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L9
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	mutex
	.word	index_available
	.word	messagesSent
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	mutex_auditor
	.word	last
	.size	client, .-client
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Auditor online\000"
	.align	2
.LC7:
	.ascii	"-----------------------auditoria-------------------"
	.ascii	"----------\000"
	.align	2
.LC8:
	.ascii	"Auditoria:\000"
	.align	2
.LC9:
	.ascii	"mensagens que o usuario %d diz ter enviado: %d\012\000"
	.align	2
.LC10:
	.ascii	"mensagens que a auditoria encontrou      : %d\012\000"
	.align	2
.LC11:
	.ascii	"blocos que foram criados : %d\012\000"
	.align	2
.LC12:
	.ascii	"blocos presentes na lista: %d\012\000"
	.align	2
.LC13:
	.ascii	"--------------------------fim----------------------"
	.ascii	"----------\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	auditor
	.syntax unified
	.arm
	.fpu softvfp
	.type	auditor, %function
auditor:
	@ 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, #-32]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L21+4
	bl	puts
.L19:
	mov	r0, #3
	bl	sleep
	ldr	r1, .L21+8
	ldr	r0, .L21+12
	bl	_down
	ldr	r1, .L21+16
	ldr	r0, .L21+20
	bl	_down
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L13
.L14:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L13:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	ble	.L14
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L21+24
	ldr	r3, [r3, #104]
	str	r3, [fp, #-20]
	b	.L15
.L16:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-12]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L21+28
	bl	puts
	ldr	r0, .L21+32
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L17
.L18:
	ldr	r2, .L21+36
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L21+40
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-12]
	mov	r1, r3
	ldr	r0, .L21+44
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L17:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	ble	.L18
	ldr	r3, .L21+48
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+52
	bl	printf
	ldr	r1, [fp, #-24]
	ldr	r0, .L21+56
	bl	printf
	ldr	r0, .L21+60
	bl	puts
	ldr	r1, .L21+16
	ldr	r0, .L21+20
	bl	_up
	ldr	r1, .L21+8
	ldr	r0, .L21+12
	bl	_up
	b	.L19
.L22:
	.align	2
.L21:
	.word	.LC14
	.word	.LC6
	.word	.LC5
	.word	mutex_auditor
	.word	.LC2
	.word	mutex
	.word	head
	.word	.LC7
	.word	.LC8
	.word	messagesSent
	.word	.LC9
	.word	.LC10
	.word	created_blocks
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	auditor, .-auditor
	.section	.rodata
	.align	2
.LC15:
	.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
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L32+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L32+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L32+12
	mov	r2, #0
	str	r2, [r3, #104]
	ldr	r3, .L32+16
	ldr	r2, .L32+12
	str	r2, [r3]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L32+20
	bl	sem_init
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L32+24
	bl	sem_init
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L24
.L25:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, .L32+28
	str	r2, [r3, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L24:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L25
	ldr	r3, .L32+32
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L26
.L27:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, .L32+36
	add	r0, r3, r2
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	mov	r2, r3
	mov	r3, #0
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L26:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L27
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r3, #0
	mov	r1, #0
	ldr	r0, .L32+40
	bl	pthread_create
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L28
.L29:
	ldr	r2, .L32+36
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L28:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L29
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC15
	.word	index_available
	.word	created_blocks
	.word	head
	.word	last
	.word	mutex
	.word	mutex_auditor
	.word	client
	.word	auditor
	.word	threadId
	.word	threadId+8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
