	.file	"167750.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/shm_11"
.LC1:
	.string	"door1"
	.align 8
.LC2:
	.string	"Falha na abertura do sem\303\241foro"
.LC3:
	.string	"door2"
.LC4:
	.string	"door3"
.LC5:
	.string	"Leaving from door [1]."
.LC6:
	.string	"Leaving from door [2]."
.LC7:
	.string	"Leaving from door [3]."
.LC8:
	.string	"Entering at door [1]."
.LC9:
	.string	"Entering at door [2]."
.LC10:
	.string	"Entering at door [3]."
.LC11:
	.string	"/door1"
.LC12:
	.string	"/door2"
.LC13:
	.string	"/door3"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 12
	mov	edx, 384
	mov	esi, 194
	lea	rdi, .LC0[rip]
	call	shm_open@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -60[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	edx, DWORD PTR -60[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	ecx, 1
	mov	edx, 420
	mov	esi, 192
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	ecx, 1
	mov	edx, 420
	mov	esi, 192
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	ecx, 1
	mov	edx, 420
	mov	esi, 192
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L5
.L7:
	call	fork@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	DWORD PTR -20[rbp+rax*4], edx
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	eax, DWORD PTR -20[rbp+rax*4]
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	semWait
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	personsLeaving
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	semPost
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	semWait
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	personsLeaving
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	semPost
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	semWait
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	personsLeaving
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	semPost
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	semWait
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	personsEntering
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	semPost
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	semWait
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	personsEntering
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	semPost
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	semWait
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	personsEntering
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	semPost
	add	DWORD PTR -68[rbp], 1
.L5:
	cmp	DWORD PTR -68[rbp], 2
	jle	.L7
	lea	rdi, .LC11[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC12[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC13[rip]
	call	sem_unlink@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC0[rip]
	call	shm_unlink@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	createPersons
	.type	createPersons, @function
createPersons:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	createPersons, .-createPersons
	.section	.rodata
.LC14:
	.string	"%d persons.\n"
	.text
	.globl	personsEntering
	.type	personsEntering, @function
personsEntering:
.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 -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L14
	mov	edi, 200
	call	createPersons
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 1
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	createPersons
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
.L15:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	personsEntering, .-personsEntering
	.globl	personsLeaving
	.type	personsLeaving, @function
personsLeaving:
.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
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 1
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	createPersons
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 0
.L18:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L16
.L20:
	nop
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	personsLeaving, .-personsLeaving
	.section	.rodata
.LC15:
	.string	"sem_post error."
	.text
	.globl	semPost
	.type	semPost, @function
semPost:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	semPost, .-semPost
	.section	.rodata
.LC16:
	.string	"sem_wait error."
	.text
	.globl	semWait
	.type	semWait, @function
semWait:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	cmp	eax, -1
	jne	.L26
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	semWait, .-semWait
	.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	"167750.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/shm_11\000"
	.align	2
.LC1:
	.ascii	"door1\000"
	.align	2
.LC2:
	.ascii	"Falha na abertura do sem\303\241foro\000"
	.align	2
.LC3:
	.ascii	"door2\000"
	.align	2
.LC4:
	.ascii	"door3\000"
	.align	2
.LC5:
	.ascii	"Leaving from door [1].\000"
	.align	2
.LC6:
	.ascii	"Leaving from door [2].\000"
	.align	2
.LC7:
	.ascii	"Leaving from door [3].\000"
	.align	2
.LC8:
	.ascii	"Entering at door [1].\000"
	.align	2
.LC9:
	.ascii	"Entering at door [2].\000"
	.align	2
.LC10:
	.ascii	"Entering at door [3].\000"
	.align	2
.LC11:
	.ascii	"/door1\000"
	.align	2
.LC12:
	.ascii	"/door2\000"
	.align	2
.LC13:
	.ascii	"/door3\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #12
	str	r3, [fp, #-44]
	mov	r2, #384
	mov	r1, #194
	ldr	r0, .L10+4
	bl	shm_open
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	ftruncate
	ldr	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-36]
	mov	r3, #1
	mov	r2, #420
	mov	r1, #192
	ldr	r0, .L10+8
	bl	sem_open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #1
	mov	r2, #420
	mov	r1, #192
	ldr	r0, .L10+16
	bl	sem_open
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r3, #1
	mov	r2, #420
	mov	r1, #192
	ldr	r0, .L10+20
	bl	sem_open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L5
.L7:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-16]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-32]
	bl	semWait
	ldr	r0, .L10+24
	bl	puts
	ldr	r0, [fp, #-36]
	bl	personsLeaving
	ldr	r0, [fp, #-32]
	bl	semPost
	ldr	r0, [fp, #-28]
	bl	semWait
	ldr	r0, .L10+28
	bl	puts
	ldr	r0, [fp, #-36]
	bl	personsLeaving
	ldr	r0, [fp, #-28]
	bl	semPost
	ldr	r0, [fp, #-24]
	bl	semWait
	ldr	r0, .L10+32
	bl	puts
	ldr	r0, [fp, #-36]
	bl	personsLeaving
	ldr	r0, [fp, #-24]
	bl	semPost
	mov	r0, #0
	bl	exit
.L6:
	ldr	r0, [fp, #-32]
	bl	semWait
	ldr	r0, .L10+36
	bl	puts
	ldr	r0, [fp, #-36]
	bl	personsEntering
	ldr	r0, [fp, #-32]
	bl	semPost
	ldr	r0, [fp, #-28]
	bl	semWait
	ldr	r0, .L10+40
	bl	puts
	ldr	r0, [fp, #-36]
	bl	personsEntering
	ldr	r0, [fp, #-28]
	bl	semPost
	ldr	r0, [fp, #-24]
	bl	semWait
	ldr	r0, .L10+44
	bl	puts
	ldr	r0, [fp, #-36]
	bl	personsEntering
	ldr	r0, [fp, #-24]
	bl	semPost
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L7
	ldr	r0, .L10+48
	bl	sem_unlink
	ldr	r0, .L10+52
	bl	sem_unlink
	ldr	r0, .L10+56
	bl	sem_unlink
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	munmap
	ldr	r0, [fp, #-40]
	bl	close
	ldr	r0, .L10+4
	bl	shm_unlink
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createPersons
	.syntax unified
	.arm
	.fpu softvfp
	.type	createPersons, %function
createPersons:
	@ 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, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC15
	.size	createPersons, .-createPersons
	.section	.rodata
	.align	2
.LC16:
	.ascii	"%d persons.\012\000"
	.text
	.align	2
	.global	personsEntering
	.syntax unified
	.arm
	.fpu softvfp
	.type	personsEntering, %function
personsEntering:
	@ 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]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L18
	mov	r0, #200
	bl	createPersons
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #8]
	b	.L19
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	createPersons
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L19:
	ldr	r1, [fp, #-8]
	ldr	r0, .L20
	bl	printf
	mov	r0, #1
	bl	sleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC16
	.size	personsEntering, .-personsEntering
	.align	2
	.global	personsLeaving
	.syntax unified
	.arm
	.fpu softvfp
	.type	personsLeaving, %function
personsLeaving:
	@ 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]
	ldr	r3, [r3, #8]
	cmp	r3, #1
	bne	.L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	createPersons
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
.L24:
	ldr	r1, [fp, #-8]
	ldr	r0, .L27
	bl	printf
	mov	r0, #1
	bl	sleep
	b	.L22
.L26:
	nop
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC16
	.size	personsLeaving, .-personsLeaving
	.section	.rodata
	.align	2
.LC17:
	.ascii	"sem_post error.\000"
	.text
	.align	2
	.global	semPost
	.syntax unified
	.arm
	.fpu softvfp
	.type	semPost, %function
semPost:
	@ 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	r0, [fp, #-8]
	bl	sem_post
	mov	r3, r0
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L32
	bl	puts
	mov	r0, #1
	bl	exit
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC17
	.size	semPost, .-semPost
	.section	.rodata
	.align	2
.LC18:
	.ascii	"sem_wait error.\000"
	.text
	.align	2
	.global	semWait
	.syntax unified
	.arm
	.fpu softvfp
	.type	semWait, %function
semWait:
	@ 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	r0, [fp, #-8]
	bl	sem_wait
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L37
	bl	puts
	mov	r0, #1
	bl	exit
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC18
	.size	semWait, .-semWait
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
