	.file	"111026.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"words.txt"
.LC2:
	.string	"input.txt"
	.align 8
.LC3:
	.string	"Error: unable to open file %s\n"
.LC4:
	.string	"Turn: %d\n"
.LC5:
	.string	"\n%s\n"
.LC6:
	.string	"\nGuess a character: "
.LC7:
	.string	" %c"
	.align 8
.LC8:
	.string	"congratulations, you guessed the word in %d turns!\n"
	.align 8
.LC9:
	.string	"out of guesses, the correct word was: %s"
	.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
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 192
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -116[rbp], 33
	mov	edx, DWORD PTR -116[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	movsx	rax, edx
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -192[rbp], rdx
	mov	QWORD PTR -184[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -208[rbp], rdx
	mov	QWORD PTR -200[rbp], 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	mov	WORD PTR -42[rbp], 95
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 2039673745
	shr	rdx, 32
	sar	edx, 15
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -112[rbp], edx
	mov	edx, DWORD PTR -112[rbp]
	imul	edx, edx, 69000
	sub	eax, edx
	mov	DWORD PTR -112[rbp], eax
	mov	BYTE PTR -133[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L8
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	DWORD PTR -108[rbp], 256
	mov	eax, DWORD PTR -108[rbp]
	sub	rax, 1
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	mov	eax, eax
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	mov	eax, DWORD PTR -108[rbp]
	mov	eax, eax
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L9:
	cmp	rsp, rdx
	je	.L10
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L9
.L10:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L11
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L11:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -120[rbp], 0
	jmp	.L12
.L13:
	mov	ecx, DWORD PTR -108[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	add	DWORD PTR -120[rbp], 1
.L12:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jl	.L13
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -124[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	lea	rax, -42[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	add	DWORD PTR -124[rbp], 1
.L14:
	mov	eax, DWORD PTR -124[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L15
	mov	DWORD PTR -128[rbp], 1
	jmp	.L16
.L22:
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -134[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L17
.L19:
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	movzx	eax, BYTE PTR -134[rbp]
	cmp	dl, al
	jne	.L18
	movzx	ecx, BYTE PTR -134[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
.L18:
	add	DWORD PTR -132[rbp], 1
.L17:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L19
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	cmp	eax, 85
	jne	.L20
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L21
.L20:
	add	DWORD PTR -128[rbp], 1
.L16:
	cmp	DWORD PTR -128[rbp], 20
	jle	.L22
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L21:
	mov	rsp, r12
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"111026.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"words.txt\000"
	.align	2
.LC2:
	.ascii	"input.txt\000"
	.align	2
.LC3:
	.ascii	"Error: unable to open file %s\012\000"
	.align	2
.LC4:
	.ascii	"Turn: %d\012\000"
	.align	2
.LC5:
	.ascii	"\012%s\012\000"
	.align	2
.LC6:
	.ascii	"\012Guess a character: \000"
	.align	2
.LC7:
	.ascii	" %c\000"
	.align	2
.LC8:
	.ascii	"congratulations, you guessed the word in %d turns!\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"out of guesses, the correct word was: %s\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #33
	str	r3, [fp, #-60]
	ldr	ip, [fp, #-60]
	sub	r3, ip, #1
	str	r3, [fp, #-56]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-52]
	ldr	ip, [fp, #-60]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-44]
	mov	r3, #95
	strh	r3, [fp, #-20]	@ movhi
	bl	rand
	mov	r1, r0
	ldr	r3, .L16+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #15
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	sub	r3, r1, r2
	str	r3, [fp, #-40]
	mov	r3, #0
	strb	r3, [fp, #-77]
	ldr	r1, .L16+8
	ldr	r0, .L16+12
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L16+16
	ldr	r0, .L16+20
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #256
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-32]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L3
.L4:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	fgets
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L3:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L4
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-52]
	bl	strcpy
	ldr	r0, [fp, #-52]
	bl	puts
	ldr	r0, [fp, #-36]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L5
.L6:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L5:
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bhi	.L6
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L7
.L13:
	ldr	r1, [fp, #-72]
	ldr	r0, .L16+24
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, .L16+28
	bl	printf
	ldr	r0, .L16+32
	bl	printf
	sub	r3, fp, #78
	mov	r1, r3
	ldr	r0, .L16+36
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L8
.L10:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-78]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	ldrb	r1, [fp, #-78]	@ zero_extendqisi2
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L9:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L8:
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bhi	.L10
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-44]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #85
	bne	.L11
	ldr	r0, [fp, #-44]
	bl	puts
	ldr	r1, [fp, #-72]
	ldr	r0, .L16+40
	bl	printf
	mov	r3, #0
	b	.L12
.L11:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L7:
	ldr	r3, [fp, #-72]
	cmp	r3, #20
	ble	.L13
	ldr	r1, [fp, #-52]
	ldr	r0, .L16+44
	bl	printf
	mov	r3, #0
.L12:
	mov	sp, r4
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC10
	.word	2039673745
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
