	.file	"7950559.c"
	.intel_syntax noprefix
	.text
	.globl	_heathensCounter
	.bss
	.align 4
	.type	_heathensCounter, @object
	.size	_heathensCounter, 4
_heathensCounter:
	.zero	4
	.globl	_prudesCounter
	.align 4
	.type	_prudesCounter, @object
	.size	_prudesCounter, 4
_prudesCounter:
	.zero	4
	.globl	_status
	.align 4
	.type	_status, @object
	.size	_status, 4
_status:
	.zero	4
	.globl	_mutex
	.align 32
	.type	_mutex, @object
	.size	_mutex, 40
_mutex:
	.zero	40
	.globl	_heathenTurn
	.align 32
	.type	_heathenTurn, @object
	.size	_heathenTurn, 32
_heathenTurn:
	.zero	32
	.globl	_prudesTurn
	.align 32
	.type	_prudesTurn, @object
	.size	_prudesTurn, 32
_prudesTurn:
	.zero	32
	.section	.rodata
	.align 8
.LC0:
	.string	"HEATHENS PASSOU\nFaltam %d Prudes\t\te\t%d Heathens\n"
.LC1:
	.string	"[%d] > [%d] "
	.align 8
.LC2:
	.string	"\n[Mais Prudes. Mudando a vez para Prudes]\n"
	.align 8
.LC3:
	.string	"Ningu\303\251m est\303\241 tentando atravessar. Aguardando por novas chegadas\n"
	.text
	.globl	allHeathens
	.type	allHeathens, @function
allHeathens:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L7:
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, _heathenTurn[rip]
	call	sem_wait@PLT
	lea	rdi, _mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L2
.L4:
	mov	eax, DWORD PTR _heathensCounter[rip]
	sub	eax, 1
	mov	DWORD PTR _heathensCounter[rip], eax
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR _prudesCounter[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
.L2:
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR _prudesCounter[rip]
	cmp	edx, eax
	jl	.L3
	mov	eax, DWORD PTR _heathensCounter[rip]
	test	eax, eax
	jg	.L4
.L3:
	lea	rdi, _prudesTurn[rip]
	call	sem_post@PLT
	mov	eax, DWORD PTR _prudesCounter[rip]
	test	eax, eax
	jle	.L5
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR _prudesCounter[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L6:
	lea	rdi, _mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L7
	.cfi_endproc
.LFE6:
	.size	allHeathens, .-allHeathens
	.section	.rodata
	.align 8
.LC4:
	.string	"Prudes PASSOU\nFaltam %d Prudes\t\te\t%d Heathens\n"
	.align 8
.LC5:
	.string	"\n[Mais Heathens. Mudando a vez para Heathens]\n"
	.text
	.globl	allPrudes
	.type	allPrudes, @function
allPrudes:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L14:
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, _prudesTurn[rip]
	call	sem_wait@PLT
	lea	rdi, _mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L9
.L11:
	mov	eax, DWORD PTR _prudesCounter[rip]
	sub	eax, 1
	mov	DWORD PTR _prudesCounter[rip], eax
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR _prudesCounter[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
.L9:
	mov	edx, DWORD PTR _prudesCounter[rip]
	mov	eax, DWORD PTR _heathensCounter[rip]
	cmp	edx, eax
	jl	.L10
	mov	eax, DWORD PTR _prudesCounter[rip]
	test	eax, eax
	jg	.L11
.L10:
	lea	rdi, _heathenTurn[rip]
	call	sem_post@PLT
	mov	eax, DWORD PTR _heathensCounter[rip]
	test	eax, eax
	jle	.L12
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR _prudesCounter[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L13
.L12:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L13:
	lea	rdi, _mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L14
	.cfi_endproc
.LFE7:
	.size	allPrudes, .-allPrudes
	.section	.rodata
.LC6:
	.string	"Chegaram mais %d Heathens.\n"
.LC7:
	.string	"Chegaram mais %d Prudes.\n"
	.text
	.globl	randomIncrementer
	.type	randomIncrementer, @function
randomIncrementer:
.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
.L18:
	mov	edi, 4
	call	sleep@PLT
	lea	rdi, _mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L16
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR _heathensCounter[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR _prudesCounter[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR _prudesCounter[rip], eax
.L17:
	lea	rdi, _mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L18
	.cfi_endproc
.LFE8:
	.size	randomIncrementer, .-randomIncrementer
	.section	.rodata
	.align 8
.LC8:
	.string	"Qual a quantidade Heathens? (no m\303\255nimo 1)"
.LC9:
	.string	"%d"
	.align 8
.LC10:
	.string	"Qual a quantidade Prudes? (no m\303\255nimo 1)"
.LC11:
	.string	"Erro em sem_init: %s\n"
	.align 8
.LC12:
	.string	"\n------------Inicio-------------"
.LC13:
	.string	"\nTerminou"
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rsi, _heathensCounter[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR _heathensCounter[rip]
	test	eax, eax
	jg	.L20
	mov	DWORD PTR _heathensCounter[rip], 20
.L20:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rsi, _prudesCounter[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR _prudesCounter[rip]
	test	eax, eax
	jg	.L21
	mov	DWORD PTR _prudesCounter[rip], 20
.L21:
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	edx, 1
	mov	esi, 0
	lea	rdi, _heathenTurn[rip]
	call	sem_init@PLT
	test	eax, eax
	jns	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	lea	rcx, -144[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	edx, 0
	mov	esi, 0
	lea	rdi, _prudesTurn[rip]
	call	sem_init@PLT
	test	eax, eax
	jns	.L23
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	lea	rcx, -144[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edx, DWORD PTR _heathensCounter[rip]
	mov	eax, DWORD PTR _prudesCounter[rip]
	cmp	edx, eax
	jle	.L24
	lea	rax, -160[rbp]
	mov	ecx, 0
	lea	rdx, allHeathens[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -168[rbp]
	mov	ecx, 0
	lea	rdx, allPrudes[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	jmp	.L25
.L24:
	lea	rax, -168[rbp]
	mov	ecx, 0
	lea	rdx, allPrudes[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -160[rbp]
	mov	ecx, 0
	lea	rdx, allHeathens[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L25:
	lea	rax, -152[rbp]
	mov	ecx, 0
	lea	rdx, randomIncrementer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"7950559.c"
	.text
	.global	_heathensCounter
	.bss
	.align	2
	.type	_heathensCounter, %object
	.size	_heathensCounter, 4
_heathensCounter:
	.space	4
	.global	_prudesCounter
	.align	2
	.type	_prudesCounter, %object
	.size	_prudesCounter, 4
_prudesCounter:
	.space	4
	.global	_status
	.align	2
	.type	_status, %object
	.size	_status, 4
_status:
	.space	4
	.global	_mutex
	.align	2
	.type	_mutex, %object
	.size	_mutex, 24
_mutex:
	.space	24
	.comm	_heathenTurn,16,4
	.comm	_prudesTurn,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"HEATHENS PASSOU\012Faltam %d Prudes\011\011e\011%d "
	.ascii	"Heathens\012\000"
	.align	2
.LC1:
	.ascii	"[%d] > [%d] \000"
	.align	2
.LC2:
	.ascii	"\012[Mais Prudes. Mudando a vez para Prudes]\012\000"
	.align	2
.LC3:
	.ascii	"Ningu\303\251m est\303\241 tentando atravessar. Agu"
	.ascii	"ardando por novas chegadas\012\000"
	.text
	.align	2
	.global	allHeathens
	.syntax unified
	.arm
	.fpu softvfp
	.type	allHeathens, %function
allHeathens:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L7:
	mov	r0, #1
	bl	sleep
	ldr	r0, .L8
	bl	sem_wait
	ldr	r0, .L8+4
	bl	pthread_mutex_lock
	b	.L2
.L4:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	ldr	r2, .L8+8
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	mov	r0, #1
	bl	sleep
.L2:
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L4
.L3:
	ldr	r0, .L8+20
	bl	sem_post
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L5
	ldr	r3, .L8+12
	ldr	r3, [r3]
	ldr	r2, .L8+8
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L8+24
	bl	printf
	ldr	r0, .L8+28
	bl	puts
	b	.L6
.L5:
	ldr	r0, .L8+32
	bl	puts
.L6:
	ldr	r0, .L8+4
	bl	pthread_mutex_unlock
	b	.L7
.L9:
	.align	2
.L8:
	.word	_heathenTurn
	.word	_mutex
	.word	_heathensCounter
	.word	_prudesCounter
	.word	.LC0
	.word	_prudesTurn
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	allHeathens, .-allHeathens
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Prudes PASSOU\012Faltam %d Prudes\011\011e\011%d He"
	.ascii	"athens\012\000"
	.align	2
.LC5:
	.ascii	"\012[Mais Heathens. Mudando a vez para Heathens]\012"
	.ascii	"\000"
	.text
	.align	2
	.global	allPrudes
	.syntax unified
	.arm
	.fpu softvfp
	.type	allPrudes, %function
allPrudes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L16:
	mov	r0, #1
	bl	sleep
	ldr	r0, .L17
	bl	sem_wait
	ldr	r0, .L17+4
	bl	pthread_mutex_lock
	b	.L11
.L13:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L17+8
	str	r3, [r2]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	mov	r0, #1
	bl	sleep
.L11:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L12
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L13
.L12:
	ldr	r0, .L17+20
	bl	sem_post
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L14
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+12
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L17+24
	bl	printf
	ldr	r0, .L17+28
	bl	puts
	b	.L15
.L14:
	ldr	r0, .L17+32
	bl	puts
.L15:
	ldr	r0, .L17+4
	bl	pthread_mutex_unlock
	b	.L16
.L18:
	.align	2
.L17:
	.word	_prudesTurn
	.word	_mutex
	.word	_prudesCounter
	.word	_heathensCounter
	.word	.LC4
	.word	_heathenTurn
	.word	.LC1
	.word	.LC5
	.word	.LC3
	.size	allPrudes, .-allPrudes
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Chegaram mais %d Heathens.\012\000"
	.align	2
.LC7:
	.ascii	"Chegaram mais %d Prudes.\012\000"
	.text
	.align	2
	.global	randomIncrementer
	.syntax unified
	.arm
	.fpu softvfp
	.type	randomIncrementer, %function
randomIncrementer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
.L22:
	mov	r0, #4
	bl	sleep
	ldr	r0, .L23
	bl	pthread_mutex_lock
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r2, r0
	ldr	r3, .L23+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L23+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L23+8
	str	r3, [r2]
	ldr	r1, [fp, #-8]
	ldr	r0, .L23+12
	bl	printf
	b	.L21
.L20:
	ldr	r1, [fp, #-8]
	ldr	r0, .L23+16
	bl	printf
	ldr	r3, .L23+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L23+20
	str	r3, [r2]
.L21:
	ldr	r0, .L23
	bl	pthread_mutex_unlock
	b	.L22
.L24:
	.align	2
.L23:
	.word	_mutex
	.word	1717986919
	.word	_heathensCounter
	.word	.LC6
	.word	.LC7
	.word	_prudesCounter
	.size	randomIncrementer, .-randomIncrementer
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Qual a quantidade Heathens? (no m\303\255nimo 1)\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"Qual a quantidade Prudes? (no m\303\255nimo 1)\000"
	.align	2
.LC11:
	.ascii	"Erro em sem_init: %s\012\000"
	.align	2
.LC12:
	.ascii	"\012------------Inicio-------------\000"
	.align	2
.LC13:
	.ascii	"\012Terminou\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 = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L34+4
	bl	puts
	ldr	r1, .L34+8
	ldr	r0, .L34+12
	bl	__isoc99_scanf
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L26
	ldr	r3, .L34+8
	mov	r2, #20
	str	r2, [r3]
.L26:
	ldr	r0, .L34+16
	bl	puts
	ldr	r1, .L34+20
	ldr	r0, .L34+12
	bl	__isoc99_scanf
	ldr	r3, .L34+20
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L27
	ldr	r3, .L34+20
	mov	r2, #20
	str	r2, [r3]
.L27:
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-144]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-148]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-140]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L34+24
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r1, fp, #136
	mov	r2, #128
	mov	r0, r3
	bl	__xpg_strerror_r
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L34+28
	bl	printf
	mov	r0, #1
	bl	exit
.L28:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L34+32
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r1, fp, #136
	mov	r2, #128
	mov	r0, r3
	bl	__xpg_strerror_r
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L34+28
	bl	printf
	mov	r0, #1
	bl	exit
.L29:
	ldr	r0, .L34+36
	bl	puts
	ldr	r3, .L34+8
	ldr	r2, [r3]
	ldr	r3, .L34+20
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L30
	sub	r0, fp, #144
	mov	r3, #0
	ldr	r2, .L34+40
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #148
	mov	r3, #0
	ldr	r2, .L34+44
	mov	r1, #0
	bl	pthread_create
	b	.L31
.L30:
	sub	r0, fp, #148
	mov	r3, #0
	ldr	r2, .L34+44
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #144
	mov	r3, #0
	ldr	r2, .L34+40
	mov	r1, #0
	bl	pthread_create
.L31:
	sub	r0, fp, #140
	mov	r3, #0
	ldr	r2, .L34+48
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-144]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-148]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L34+52
	bl	puts
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC14
	.word	.LC8
	.word	_heathensCounter
	.word	.LC9
	.word	.LC10
	.word	_prudesCounter
	.word	_heathenTurn
	.word	.LC11
	.word	_prudesTurn
	.word	.LC12
	.word	allHeathens
	.word	allPrudes
	.word	randomIncrementer
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
