	.file	"242329619.c"
	.intel_syntax noprefix
	.text
	.globl	estado
	.bss
	.align 4
	.type	estado, @object
	.size	estado, 4
estado:
	.zero	4
	.globl	parada_actual
	.align 4
	.type	parada_actual, @object
	.size	parada_actual, 4
parada_actual:
	.zero	4
	.globl	n_ocupantes
	.align 4
	.type	n_ocupantes, @object
	.size	n_ocupantes, 4
n_ocupantes:
	.zero	4
	.globl	esperando_parada
	.align 16
	.type	esperando_parada, @object
	.size	esperando_parada, 20
esperando_parada:
	.zero	20
	.globl	esperando_bajar
	.align 16
	.type	esperando_bajar, @object
	.size	esperando_bajar, 20
esperando_bajar:
	.zero	20
	.globl	autobus
	.align 8
	.type	autobus, @object
	.size	autobus, 8
autobus:
	.zero	8
	.globl	usuarios
	.align 32
	.type	usuarios, @object
	.size	usuarios, 32
usuarios:
	.zero	32
	.globl	busParado
	.align 32
	.type	busParado, @object
	.size	busParado, 48
busParado:
	.zero	48
	.globl	busMoviendo
	.align 32
	.type	busMoviendo, @object
	.size	busMoviendo, 48
busMoviendo:
	.zero	48
	.globl	mBus
	.align 32
	.type	mBus, @object
	.size	mBus, 40
mBus:
	.zero	40
	.globl	mSubir
	.align 32
	.type	mSubir, @object
	.size	mSubir, 40
mSubir:
	.zero	40
	.globl	mBajar
	.align 32
	.type	mBajar, @object
	.size	mBajar, 40
mBajar:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"Personas que quieren subir %d \n"
	.align 8
.LC1:
	.string	"Personas que quieren bajar %d \n"
	.text
	.globl	Autobus_En_Parada
	.type	Autobus_En_Parada, @function
Autobus_En_Parada:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR estado[rip], 1
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, busParado[rip]
	call	pthread_cond_broadcast@PLT
	lea	rdi, mBus[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L2
.L3:
	lea	rsi, mBus[rip]
	lea	rdi, busMoviendo[rip]
	call	pthread_cond_wait@PLT
.L2:
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L3
	lea	rdi, mBus[rip]
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR estado[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Autobus_En_Parada, .-Autobus_En_Parada
	.section	.rodata
	.align 8
.LC2:
	.string	"Autobus conduciendo hacia la siguiente parada "
	.align 8
.LC3:
	.string	"Autobus ha llegado a la siguiente parada: %d\n"
	.text
	.globl	Conducir_Hasta_Siguiente_Parada
	.type	Conducir_Hasta_Siguiente_Parada, @function
Conducir_Hasta_Siguiente_Parada:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, edx
	mov	edi, eax
	call	sleep@PLT
	mov	eax, DWORD PTR parada_actual[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR parada_actual[rip], eax
	mov	eax, DWORD PTR parada_actual[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Conducir_Hasta_Siguiente_Parada, .-Conducir_Hasta_Siguiente_Parada
	.section	.rodata
	.align 8
.LC4:
	.string	"El usuario %d se quiere subir en esta parada %d \n"
	.align 8
.LC5:
	.string	"El usuario %d ha subido al autobus\n"
	.text
	.globl	Subir_Autobus
	.type	Subir_Autobus, @function
Subir_Autobus:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	lea	rdi, mSubir[rip]
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L6
.L7:
	lea	rsi, mSubir[rip]
	lea	rdi, busParado[rip]
	call	pthread_cond_wait@PLT
.L6:
	mov	eax, DWORD PTR parada_actual[rip]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L7
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR parada_actual[rip]
	lea	ecx, -1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_parada[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L8
	lea	rdi, busMoviendo[rip]
	call	pthread_cond_broadcast@PLT
.L8:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mSubir[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Subir_Autobus, .-Subir_Autobus
	.section	.rodata
	.align 8
.LC6:
	.string	"El usuario %d se quiere bajar en esta parada %d \n"
	.align 8
.LC7:
	.string	"El usuario %d ha bajado del autobus\n"
	.text
	.globl	Bajar_Autobus
	.type	Bajar_Autobus, @function
Bajar_Autobus:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	lea	rdi, mBajar[rip]
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L10
.L11:
	lea	rsi, mBajar[rip]
	lea	rdi, busParado[rip]
	call	pthread_cond_wait@PLT
.L10:
	mov	eax, DWORD PTR parada_actual[rip]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR parada_actual[rip]
	lea	ecx, -1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR parada_actual[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, esperando_bajar[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L12
	lea	rdi, busMoviendo[rip]
	call	pthread_cond_broadcast@PLT
.L12:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mBajar[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Bajar_Autobus, .-Bajar_Autobus
	.globl	thread_autobus
	.type	thread_autobus, @function
thread_autobus:
.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
.L14:
	mov	eax, 0
	call	Autobus_En_Parada
	mov	eax, 0
	call	Conducir_Hasta_Siguiente_Parada
	jmp	.L14
	.cfi_endproc
.LFE10:
	.size	thread_autobus, .-thread_autobus
	.globl	Usuario
	.type	Usuario, @function
Usuario:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Subir_Autobus
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Bajar_Autobus
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Usuario, .-Usuario
	.globl	thread_usuario
	.type	thread_usuario, @function
thread_usuario:
.LFB12:
	.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	DWORD PTR -12[rbp], eax
.L18:
	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 -8[rbp], edx
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
.L17:
	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 -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	je	.L17
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	Usuario
	jmp	.L18
	.cfi_endproc
.LFE12:
	.size	thread_usuario, .-thread_usuario
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	ecx, 0
	lea	rdx, thread_autobus[rip]
	mov	esi, 0
	lea	rdi, autobus[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, usuarios[rip]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_usuario[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L21
	mov	DWORD PTR -4[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, usuarios[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -4[rbp], 1
.L22:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L23
	mov	rax, QWORD PTR autobus[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"242329619.c"
	.text
	.global	estado
	.bss
	.align	2
	.type	estado, %object
	.size	estado, 4
estado:
	.space	4
	.global	parada_actual
	.align	2
	.type	parada_actual, %object
	.size	parada_actual, 4
parada_actual:
	.space	4
	.global	n_ocupantes
	.align	2
	.type	n_ocupantes, %object
	.size	n_ocupantes, 4
n_ocupantes:
	.space	4
	.comm	esperando_parada,20,4
	.comm	esperando_bajar,20,4
	.comm	autobus,4,4
	.comm	usuarios,16,4
	.comm	busParado,48,8
	.comm	busMoviendo,48,8
	.comm	mBus,24,4
	.comm	mSubir,24,4
	.comm	mBajar,24,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Personas que quieren subir %d \012\000"
	.align	2
.LC1:
	.ascii	"Personas que quieren bajar %d \012\000"
	.text
	.align	2
	.global	Autobus_En_Parada
	.syntax unified
	.arm
	.fpu softvfp
	.type	Autobus_En_Parada, %function
Autobus_En_Parada:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, .L4+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L4+12
	bl	printf
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, .L4+16
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L4+20
	bl	printf
	ldr	r0, .L4+24
	bl	pthread_cond_broadcast
	ldr	r0, .L4+28
	bl	pthread_mutex_lock
	b	.L2
.L3:
	ldr	r1, .L4+28
	ldr	r0, .L4+32
	bl	pthread_cond_wait
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, .L4+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, .L4+16
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L4+28
	bl	pthread_mutex_unlock
	ldr	r3, .L4
	mov	r2, #0
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	estado
	.word	parada_actual
	.word	esperando_parada
	.word	.LC0
	.word	esperando_bajar
	.word	.LC1
	.word	busParado
	.word	mBus
	.word	busMoviendo
	.size	Autobus_En_Parada, .-Autobus_En_Parada
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Autobus conduciendo hacia la siguiente parada \000"
	.align	2
.LC3:
	.ascii	"Autobus ha llegado a la siguiente parada: %d\012\000"
	.text
	.align	2
	.global	Conducir_Hasta_Siguiente_Parada
	.syntax unified
	.arm
	.fpu softvfp
	.type	Conducir_Hasta_Siguiente_Parada, %function
Conducir_Hasta_Siguiente_Parada:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
	bl	random
	mov	r2, r0
	ldr	r3, .L7+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, r2, r3
	mov	r3, r1
	mov	r0, r3
	bl	sleep
	ldr	r3, .L7+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L7+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L7+8
	str	r2, [r3]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	1717986919
	.word	parada_actual
	.word	.LC3
	.size	Conducir_Hasta_Siguiente_Parada, .-Conducir_Hasta_Siguiente_Parada
	.section	.rodata
	.align	2
.LC4:
	.ascii	"El usuario %d se quiere subir en esta parada %d \012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"El usuario %d ha subido al autobus\012\000"
	.text
	.align	2
	.global	Subir_Autobus
	.syntax unified
	.arm
	.fpu softvfp
	.type	Subir_Autobus, %function
Subir_Autobus:
	@ 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, .L13
	bl	pthread_mutex_lock
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L13+4
	bl	printf
	ldr	r2, .L13+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L13+8
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L10
.L11:
	ldr	r1, .L13
	ldr	r0, .L13+12
	bl	pthread_cond_wait
.L10:
	ldr	r3, .L13+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L11
	ldr	r3, .L13+16
	ldr	r3, [r3]
	ldr	r2, .L13+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L13+16
	ldr	r3, [r3]
	sub	r2, r2, #1
	ldr	r1, .L13+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L13+16
	ldr	r3, [r3]
	ldr	r2, .L13+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L13+20
	bl	pthread_cond_broadcast
.L12:
	ldr	r1, [fp, #-8]
	ldr	r0, .L13+24
	bl	printf
	ldr	r0, .L13
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	mSubir
	.word	.LC4
	.word	esperando_parada
	.word	busParado
	.word	parada_actual
	.word	busMoviendo
	.word	.LC5
	.size	Subir_Autobus, .-Subir_Autobus
	.section	.rodata
	.align	2
.LC6:
	.ascii	"El usuario %d se quiere bajar en esta parada %d \012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"El usuario %d ha bajado del autobus\012\000"
	.text
	.align	2
	.global	Bajar_Autobus
	.syntax unified
	.arm
	.fpu softvfp
	.type	Bajar_Autobus, %function
Bajar_Autobus:
	@ 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, .L19
	bl	pthread_mutex_lock
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L19+4
	bl	printf
	ldr	r2, .L19+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L19+8
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L16
.L17:
	ldr	r1, .L19
	ldr	r0, .L19+12
	bl	pthread_cond_wait
.L16:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L17
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	sub	r2, r2, #1
	ldr	r1, .L19+8
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+8
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L19+20
	bl	pthread_cond_broadcast
.L18:
	ldr	r1, [fp, #-8]
	ldr	r0, .L19+24
	bl	printf
	ldr	r0, .L19
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	mBajar
	.word	.LC6
	.word	esperando_bajar
	.word	busParado
	.word	parada_actual
	.word	busMoviendo
	.word	.LC7
	.size	Bajar_Autobus, .-Bajar_Autobus
	.align	2
	.global	thread_autobus
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_autobus, %function
thread_autobus:
	@ 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]
.L22:
	bl	Autobus_En_Parada
	bl	Conducir_Hasta_Siguiente_Parada
	b	.L22
	.size	thread_autobus, .-thread_autobus
	.align	2
	.global	Usuario
	.syntax unified
	.arm
	.fpu softvfp
	.type	Usuario, %function
Usuario:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	Subir_Autobus
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	Bajar_Autobus
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Usuario, .-Usuario
	.align	2
	.global	thread_usuario
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_usuario, %function
thread_usuario:
	@ 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, #-16]
.L26:
	bl	rand
	mov	r2, r0
	ldr	r3, .L27
	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, #-12]
.L25:
	bl	rand
	mov	r2, r0
	ldr	r3, .L27
	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	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L25
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	Usuario
	b	.L26
.L28:
	.align	2
.L27:
	.word	1717986919
	.size	thread_usuario, .-thread_usuario
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	ldr	r2, .L35
	mov	r1, #0
	ldr	r0, .L35+4
	bl	pthread_create
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L30
.L31:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, .L35+8
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r2, .L35+12
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L30:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L31
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L33:
	ldr	r2, .L35+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L33
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	thread_autobus
	.word	autobus
	.word	usuarios
	.word	thread_usuario
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
