	.file	"6110.c"
	.intel_syntax noprefix
	.text
	.globl	ascii_dado
	.type	ascii_dado, @function
ascii_dado:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	mov	eax, ecx
	add	eax, 97
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ascii_dado, .-ascii_dado
	.globl	get_input
	.type	get_input, @function
get_input:
.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	DWORD PTR -4[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	edx, BYTE PTR -5[rbp]
	mov	BYTE PTR [rax], dl
.L4:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	je	.L5
	cmp	BYTE PTR -5[rbp], 10
	je	.L5
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cmp	eax, 3
	jg	.L5
	cmp	BYTE PTR -5[rbp], 96
	jle	.L5
	cmp	BYTE PTR -5[rbp], 102
	jle	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	cmp	BYTE PTR -5[rbp], 10
	je	.L7
	cmp	BYTE PTR -5[rbp], -1
	je	.L7
	nop
.L8:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	je	.L7
	cmp	BYTE PTR -5[rbp], 10
	jne	.L8
.L7:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_input, .-get_input
	.globl	generate_answer
	.type	generate_answer, @function
generate_answer:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L11
.L12:
	mov	rbx, QWORD PTR -40[rbp]
	lea	rax, 1[rbx]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, 0
	call	ascii_dado
	mov	BYTE PTR [rbx], al
	add	DWORD PTR -20[rbp], 1
.L11:
	cmp	DWORD PTR -20[rbp], 3
	jle	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 0
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	generate_answer, .-generate_answer
	.globl	intersection
	.type	intersection, @function
intersection:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -44[rbp], al
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L15
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 120
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 120
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -44[rbp]
	mov	BYTE PTR [rdx], al
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L16
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	intersection, .-intersection
	.globl	insertion_sort
	.type	insertion_sort, @function
insertion_sort:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 1
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 1[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -16[rbp], 1
.L20:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -8[rbp], eax
	jge	.L21
	cmp	DWORD PTR -16[rbp], 0
	jns	.L22
.L21:
	add	DWORD PTR -12[rbp], 1
.L19:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L23
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	insertion_sort, .-insertion_sort
	.globl	merge
	.type	merge, @function
merge:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L30:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jle	.L26
	add	DWORD PTR -4[rbp], 1
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jge	.L27
	add	DWORD PTR -8[rbp], 1
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L28
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L28
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
	jmp	.L25
.L28:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L29
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L30
.L29:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	merge, .-merge
	.section	.rodata
.LC0:
	.string	"MASTERMIND\n"
.LC1:
	.string	"Instrucciones del juego:"
	.align 8
.LC2:
	.string	"El objetivo del juego es adivinar la combinacion correcta de letras."
	.align 8
.LC3:
	.string	"Para ello tienes que escribir una combinacion de 4 letras entre la a y la f,"
	.align 8
.LC4:
	.string	"despues de cada tiro te aparece una pista.\n\nLa pista consiste en el signo de "
	.align 8
.LC5:
	.string	"exclamacion (!), significando que tienes una\nletra correcta en la posicion "
	.align 8
.LC6:
	.string	"correcta.\n\nMientras que el simbolo de gato (#) significa que tienes una letra"
	.align 8
.LC7:
	.string	"correcta pero en la posicion incorrecta."
	.align 8
.LC8:
	.string	"\nEn total tienes 10 tiros.\nBuena suerte.\n"
.LC9:
	.string	"Ingresa respuesta: "
.LC10:
	.string	"Hint: %s\n\n"
	.align 8
.LC11:
	.string	"\tIngresa una combinacion de 4 letras entre la a y la f\n"
	.align 8
.LC12:
	.string	"Perdiste. La respuesta era: %s\n"
.LC13:
	.string	"Ganaste!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	generate_answer
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L33
.L40:
	mov	DWORD PTR -44[rbp], 0
	lea	rax, -13[rbp]
	mov	edx, 5
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -28[rbp]
	lea	rdx, -28[rbp]
	add	rdx, 5
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	get_input
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 4
	jne	.L34
	lea	rdx, -13[rbp]
	lea	rax, -18[rbp]
	lea	rcx, -28[rbp]
	lea	rdi, 5[rcx]
	mov	ecx, 33
	mov	rsi, rax
	call	intersection
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 4
	jne	.L35
	mov	DWORD PTR -48[rbp], 1
.L35:
	lea	rax, -28[rbp]
	add	rax, 5
	mov	esi, 4
	mov	rdi, rax
	call	insertion_sort
	lea	rax, -18[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	insertion_sort
	mov	DWORD PTR -36[rbp], 0
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	BYTE PTR -13[rbp+rax], 35
	add	DWORD PTR -36[rbp], 1
	add	DWORD PTR -44[rbp], 1
.L36:
	lea	rax, -18[rbp]
	lea	rdx, -28[rbp]
	lea	rcx, 5[rdx]
	mov	edx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	merge
	cmp	DWORD PTR -36[rbp], eax
	jge	.L37
	cmp	DWORD PTR -44[rbp], 3
	jle	.L38
.L37:
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40[rbp], 1
	jmp	.L33
.L34:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L33:
	cmp	DWORD PTR -40[rbp], 9
	jg	.L39
	cmp	DWORD PTR -48[rbp], 0
	je	.L40
.L39:
	cmp	DWORD PTR -48[rbp], 0
	jne	.L41
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L42
.L41:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L42:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"6110.c"
	.text
	.align	2
	.global	ascii_dado
	.syntax unified
	.arm
	.fpu softvfp
	.type	ascii_dado, %function
ascii_dado:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r1, r0
	ldr	r3, .L3
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #97
	and	r3, r3, #255
	mov	r0, r3
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	715827883
	.size	ascii_dado, .-ascii_dado
	.align	2
	.global	get_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_input, %function
get_input:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L8:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
.L6:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L7
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #3
	bgt	.L7
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L7
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #102
	bls	.L8
.L7:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L9
	nop
.L10:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L10
.L9:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_input, .-get_input
	.align	2
	.global	generate_answer
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_answer, %function
generate_answer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L14:
	ldr	r4, [fp, #-24]
	add	r3, r4, #1
	str	r3, [fp, #-24]
	bl	ascii_dado
	mov	r3, r0
	strb	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L14
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	generate_answer, .-generate_answer
	.align	2
	.global	intersection
	.syntax unified
	.arm
	.fpu softvfp
	.type	intersection, %function
intersection:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	strb	r3, [fp, #-25]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L18:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L17
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #120
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #120
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldrb	r2, [fp, #-25]
	strb	r2, [r3]
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L18
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	intersection, .-intersection
	.align	2
	.global	insertion_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertion_sort, %function
insertion_sort:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L21
.L25:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L22
.L24:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L22:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bge	.L23
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L24
.L23:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L25
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	insertion_sort, .-insertion_sort
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L27
.L32:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L28
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L27
.L28:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L29
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L27
.L29:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L30
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L30
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L27
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L31
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L32
.L31:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	merge, .-merge
	.section	.rodata
	.align	2
.LC0:
	.ascii	"MASTERMIND\012\000"
	.align	2
.LC1:
	.ascii	"Instrucciones del juego:\000"
	.align	2
.LC2:
	.ascii	"El objetivo del juego es adivinar la combinacion co"
	.ascii	"rrecta de letras.\000"
	.align	2
.LC3:
	.ascii	"Para ello tienes que escribir una combinacion de 4 "
	.ascii	"letras entre la a y la f,\000"
	.align	2
.LC4:
	.ascii	"despues de cada tiro te aparece una pista.\012\012L"
	.ascii	"a pista consiste en el signo de \000"
	.align	2
.LC5:
	.ascii	"exclamacion (!), significando que tienes una\012let"
	.ascii	"ra correcta en la posicion \000"
	.align	2
.LC6:
	.ascii	"correcta.\012\012Mientras que el simbolo de gato (#"
	.ascii	") significa que tienes una letra\000"
	.align	2
.LC7:
	.ascii	"correcta pero en la posicion incorrecta.\000"
	.align	2
.LC8:
	.ascii	"\012En total tienes 10 tiros.\012Buena suerte.\012\000"
	.align	2
.LC9:
	.ascii	"Ingresa respuesta: \000"
	.align	2
.LC10:
	.ascii	"Hint: %s\012\012\000"
	.align	2
.LC11:
	.ascii	"\011Ingresa una combinacion de 4 letras entre la a "
	.ascii	"y la f\012\000"
	.align	2
.LC12:
	.ascii	"Perdiste. La respuesta era: %s\012\000"
	.align	2
.LC13:
	.ascii	"Ganaste!\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 = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #36
	mov	r0, r3
	bl	generate_answer
	ldr	r0, .L47+4
	bl	puts
	ldr	r0, .L47+8
	bl	puts
	ldr	r0, .L47+12
	bl	puts
	ldr	r0, .L47+16
	bl	puts
	ldr	r0, .L47+20
	bl	printf
	ldr	r0, .L47+24
	bl	printf
	ldr	r0, .L47+28
	bl	puts
	ldr	r0, .L47+32
	bl	puts
	ldr	r0, .L47+36
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L35
.L42:
	mov	r3, #0
	str	r3, [fp, #-52]
	sub	r3, fp, #16
	mov	r2, #5
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #36
	sub	r3, fp, #36
	add	r3, r3, #5
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r0, .L47+40
	bl	printf
	sub	r3, fp, #24
	mov	r0, r3
	bl	get_input
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	bne	.L36
	sub	r2, fp, #16
	sub	r1, fp, #24
	sub	r3, fp, #36
	add	r0, r3, #5
	mov	r3, #33
	bl	intersection
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	bne	.L37
	mov	r3, #1
	str	r3, [fp, #-56]
.L37:
	sub	r3, fp, #36
	add	r3, r3, #5
	mov	r1, #4
	mov	r0, r3
	bl	insertion_sort
	sub	r3, fp, #24
	mov	r1, #4
	mov	r0, r3
	bl	insertion_sort
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L38
.L40:
	sub	r2, fp, #16
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	mov	r2, #35
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L38:
	sub	r1, fp, #24
	sub	r3, fp, #36
	add	r3, r3, #5
	mov	r2, #4
	mov	r0, r3
	bl	merge
	mov	r2, r0
	ldr	r3, [fp, #-44]
	cmp	r3, r2
	bge	.L39
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L40
.L39:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L47+44
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L35
.L36:
	ldr	r0, .L47+48
	bl	puts
.L35:
	ldr	r3, [fp, #-48]
	cmp	r3, #9
	bgt	.L41
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L42
.L41:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L43
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L47+52
	bl	printf
	b	.L44
.L43:
	ldr	r0, .L47+56
	bl	puts
.L44:
	mov	r3, #0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.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
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
