	.file	"23576325.c"
	.intel_syntax noprefix
	.text
	.globl	runnig
	.data
	.align 4
	.type	runnig, @object
	.size	runnig, 4
runnig:
	.long	1
	.globl	ids
	.bss
	.align 8
	.type	ids, @object
	.size	ids, 8
ids:
	.zero	8
	.globl	eat
	.align 8
	.type	eat, @object
	.size	eat, 8
eat:
	.zero	8
	.globl	think
	.align 8
	.type	think, @object
	.size	think, 8
think:
	.zero	8
	.globl	tried
	.align 8
	.type	tried, @object
	.size	tried, 8
tried:
	.zero	8
	.globl	numthr
	.align 4
	.type	numthr, @object
	.size	numthr, 4
numthr:
	.zero	4
	.globl	iteration
	.data
	.align 4
	.type	iteration, @object
	.size	iteration, 4
iteration:
	.long	1
	.globl	mutex
	.bss
	.align 8
	.type	mutex, @object
	.size	mutex, 8
mutex:
	.zero	8
	.section	.rodata
.LC0:
	.string	"clear"
	.align 8
.LC1:
	.string	"Filosofo %d: <-- \n  Pensando %d \n  Comiendo %d \n  con Hambre %d \n"
	.align 8
.LC2:
	.string	"Filosofo %d: \n  Pensando %d \n  Comiendo %d \n  con Hambre %d \n"
	.text
	.globl	eating
	.type	eating, @function
eating:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	mov	eax, DWORD PTR numthr[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
.L2:
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L4
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L6
	mov	edi, 2000
	mov	eax, 0
	call	usleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	eating, .-eating
	.globl	thinking
	.type	thinking, @function
thinking:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L9
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -8[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -8[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	DWORD PTR -8[rbp], 1
.L8:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L11
	mov	edi, 5
	mov	eax, 0
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thinking, .-thinking
	.globl	tryEating
	.type	tryEating, @function
tryEating:
.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 [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC0[rip]
	call	system@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L14
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L14:
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	add	DWORD PTR -12[rbp], 1
.L13:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L16
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tryEating, .-tryEating
	.globl	dinner
	.type	dinner, @function
dinner:
.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 [rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L18
.L22:
	mov	rcx, QWORD PTR mutex[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_trylock@PLT
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L20
	mov	eax, DWORD PTR numthr[rip]
	mov	DWORD PTR -8[rbp], eax
.L20:
	mov	rcx, QWORD PTR mutex[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_trylock@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	eating
	mov	rcx, QWORD PTR mutex[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rcx, QWORD PTR mutex[rip]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	thinking
	jmp	.L18
.L21:
	mov	rcx, QWORD PTR mutex[rip]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	tryEating
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	tryEating
.L18:
	mov	eax, DWORD PTR runnig[rip]
	test	eax, eax
	jne	.L22
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dinner, .-dinner
	.section	.rodata
	.align 8
.LC3:
	.string	"\n Ejecucion  con %d filosofos y %d iteraciones \n"
.LC4:
	.string	"Error creating thread\n"
	.align 8
.LC5:
	.string	"\n\n\n =================Reporte================= \n\n"
	.align 8
.LC6:
	.string	"\n\n =================Reporte================= "
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR numthr[rip], eax
	jmp	.L25
.L24:
	mov	DWORD PTR numthr[rip], 5
.L25:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	jmp	.L27
.L26:
	mov	DWORD PTR -12[rbp], 1
.L27:
	mov	eax, DWORD PTR numthr[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR numthr[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR ids[rip], rax
	mov	eax, DWORD PTR numthr[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR eat[rip], rax
	mov	eax, DWORD PTR numthr[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR think[rip], rax
	mov	eax, DWORD PTR numthr[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR tried[rip], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L28
.L29:
	mov	rdx, QWORD PTR ids[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	DWORD PTR [rdx], 0
	mov	rcx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	mov	rcx, QWORD PTR eat[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -16[rbp], 1
.L28:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L29
	mov	eax, DWORD PTR numthr[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR numthr[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR mutex[rip], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L30
.L31:
	mov	rcx, QWORD PTR mutex[rip]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	add	DWORD PTR -16[rbp], 1
.L30:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L31
	mov	DWORD PTR -16[rbp], 0
	jmp	.L32
.L35:
	mov	rdx, QWORD PTR ids[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, dinner[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 2
	jmp	.L34
.L33:
	add	DWORD PTR -16[rbp], 1
.L32:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L35
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	mov	eax, 0
	call	sleep@PLT
	mov	DWORD PTR runnig[rip], 0
	lea	rdi, .LC0[rip]
	call	system@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L36
.L37:
	mov	rdx, QWORD PTR tried[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edi, DWORD PTR [rax]
	mov	rdx, QWORD PTR eat[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR think[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -16[rbp]
	lea	esi, 1[rcx]
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L36:
	mov	eax, DWORD PTR numthr[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L37
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"23576325.c"
	.text
	.global	runnig
	.data
	.align	2
	.type	runnig, %object
	.size	runnig, 4
runnig:
	.word	1
	.comm	ids,4,4
	.comm	eat,4,4
	.comm	think,4,4
	.comm	tried,4,4
	.comm	numthr,4,4
	.global	iteration
	.align	2
	.type	iteration, %object
	.size	iteration, 4
iteration:
	.word	1
	.comm	mutex,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"Filosofo %d: <-- \012  Pensando %d \012  Comiendo %"
	.ascii	"d \012  con Hambre %d \012\000"
	.align	2
.LC2:
	.ascii	"Filosofo %d: \012  Pensando %d \012  Comiendo %d \012"
	.ascii	"  con Hambre %d \012\000"
	.text
	.align	2
	.global	eating
	.syntax unified
	.arm
	.fpu softvfp
	.type	eating, %function
eating:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L7
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L7+4
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r0, .L7+8
	bl	system
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r3, .L7+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L7+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L7+20
	bl	printf
	b	.L5
.L4:
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r3, .L7+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L7+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L7+24
	bl	printf
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L6
	mov	r0, #2000
	bl	usleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	numthr
	.word	eat
	.word	.LC0
	.word	think
	.word	tried
	.word	.LC1
	.word	.LC2
	.size	eating, .-eating
	.align	2
	.global	thinking
	.syntax unified
	.arm
	.fpu softvfp
	.type	thinking, %function
thinking:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L14
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r0, .L14+4
	bl	system
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L13:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L14+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L14+16
	bl	printf
	b	.L12
.L11:
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L14+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L14+20
	bl	printf
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L13
	mov	r0, #5
	bl	sleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	think
	.word	.LC0
	.word	eat
	.word	tried
	.word	.LC1
	.word	.LC2
	.word	numthr
	.size	thinking, .-thinking
	.align	2
	.global	tryEating
	.syntax unified
	.arm
	.fpu softvfp
	.type	tryEating, %function
tryEating:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L21
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r0, .L21+4
	bl	system
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L17
.L20:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r3, .L21+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L21+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L21+16
	bl	printf
	b	.L19
.L18:
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r3, .L21+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L21+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L21+20
	bl	printf
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, .L21+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L20
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	sleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	tried
	.word	.LC0
	.word	think
	.word	eat
	.word	.LC1
	.word	.LC2
	.word	numthr
	.size	tryEating, .-tryEating
	.align	2
	.global	dinner
	.syntax unified
	.arm
	.fpu softvfp
	.type	dinner, %function
dinner:
	@ 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]
	str	r3, [fp, #-8]
	b	.L24
.L28:
	ldr	r3, .L29
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_trylock
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L26
	ldr	r3, .L29+4
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L26:
	ldr	r3, .L29
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_trylock
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r0, [fp, #-16]
	bl	eating
	ldr	r3, .L29
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, .L29
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r0, [fp, #-16]
	bl	thinking
	b	.L24
.L27:
	ldr	r3, .L29
	ldr	r1, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r0, [fp, #-16]
	bl	tryEating
	b	.L24
.L25:
	ldr	r0, [fp, #-16]
	bl	tryEating
.L24:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	mutex
	.word	numthr
	.word	runnig
	.size	dinner, .-dinner
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012 Ejecucion  con %d filosofos y %d iteraciones \012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Error creating thread\012\000"
	.align	2
.LC5:
	.ascii	"\012\012\012 =================Reporte=============="
	.ascii	"=== \012\012\000"
	.align	2
.LC6:
	.ascii	"\012\012 =================Reporte================= "
	.ascii	"\000"
	.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, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L46
	str	r3, [r2]
	b	.L33
.L32:
	ldr	r3, .L46
	mov	r2, #5
	str	r2, [r3]
.L33:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	b	.L35
.L34:
	mov	r3, #1
	str	r3, [fp, #-12]
.L35:
	ldr	r3, .L46
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L46+4
	bl	printf
	ldr	r3, .L46
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+8
	str	r2, [r3]
	ldr	r3, .L46
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+12
	str	r2, [r3]
	ldr	r3, .L46
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+16
	str	r2, [r3]
	ldr	r3, .L46
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+20
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L36
.L37:
	ldr	r3, .L46+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L46+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r2, r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r3, .L46+20
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r2, .L46+12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r3, [r3]
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L36:
	ldr	r3, .L46
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L37
	ldr	r3, .L46
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L46
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L46+24
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L38
.L39:
	ldr	r3, .L46+24
	ldr	r1, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L38:
	ldr	r3, .L46
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L39
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L43:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r0, r2, r3
	ldr	r3, .L46+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L46+28
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L46+32
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L46+36
	bl	fwrite
	mov	r3, #2
	b	.L42
.L41:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r3, .L46
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L43
	ldr	r0, [fp, #-12]
	bl	sleep
	ldr	r3, .L46+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L46+44
	bl	system
	ldr	r0, .L46+48
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L44
.L45:
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r3, .L46+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L46+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, .L46+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L46+52
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	ldr	r3, .L46
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L45
	ldr	r0, .L46+56
	bl	puts
	mov	r3, #0
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	numthr
	.word	.LC3
	.word	ids
	.word	eat
	.word	think
	.word	tried
	.word	mutex
	.word	dinner
	.word	stderr
	.word	.LC4
	.word	runnig
	.word	.LC0
	.word	.LC5
	.word	.LC2
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
