	.file	"410881.c"
	.intel_syntax noprefix
	.text
	.globl	obtainchar
	.type	obtainchar, @function
obtainchar:
.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, 16
	call	getchar@PLT
	mov	BYTE PTR -2[rbp], al
	cmp	BYTE PTR -2[rbp], 10
	je	.L2
	cmp	BYTE PTR -2[rbp], 13
	je	.L2
	cmp	BYTE PTR -2[rbp], -1
	jne	.L7
.L2:
	mov	eax, -1
	jmp	.L4
.L7:
	nop
.L6:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 10
	je	.L5
	cmp	BYTE PTR -1[rbp], 13
	je	.L5
	cmp	BYTE PTR -1[rbp], -1
	jne	.L6
.L5:
	movzx	eax, BYTE PTR -2[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	obtainchar, .-obtainchar
	.section	.rodata
	.align 8
.LC0:
	.string	"Note: Enter <Tab><Enter> at any time to reveal the answer.\n"
	.align 8
.LC1:
	.string	" \t6 more chances, %d more letters\n"
	.align 8
.LC2:
	.string	"Your guess (enter a lowercase letter): "
	.align 8
.LC3:
	.string	"Invalid input! Please input again: "
	.align 8
.LC4:
	.string	"\n%s \t%d more chance(s), %d more letter(s)\nChosen: %s\n"
.LC5:
	.string	"Game ends."
.LC6:
	.string	"Congratulations!"
	.text
	.globl	hangman
	.type	hangman, @function
hangman:
.LFB7:
	.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	r13
	push	r12
	push	rbx
	sub	rsp, 136
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -168[rbp], rdi
	mov	DWORD PTR -172[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -144[rbp], 1
	mov	DWORD PTR -148[rbp], 0
	mov	eax, DWORD PTR -172[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -112[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	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 -104[rbp], rax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	BYTE PTR -96[rbp+rax], 0
	add	DWORD PTR -152[rbp], 1
.L12:
	cmp	DWORD PTR -152[rbp], 26
	jle	.L13
	mov	DWORD PTR -140[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L15
	mov	edi, 45
	call	putchar@PLT
	mov	ecx, eax
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 1
	mov	DWORD PTR -148[rbp], eax
	jmp	.L16
.L15:
	mov	edi, 95
	call	putchar@PLT
	mov	ecx, eax
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
.L16:
	add	DWORD PTR -140[rbp], 1
.L14:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L17
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	DWORD PTR -136[rbp], 6
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -132[rbp], eax
	mov	DWORD PTR -128[rbp], 0
	mov	eax, DWORD PTR -172[rbp]
	sub	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L30:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L19
.L22:
	cmp	BYTE PTR -153[rbp], 9
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
.L19:
	call	obtainchar
	mov	BYTE PTR -153[rbp], al
	cmp	BYTE PTR -153[rbp], 96
	jle	.L22
	cmp	BYTE PTR -153[rbp], 122
	jg	.L22
	movsx	edx, BYTE PTR -153[rbp]
	lea	rax, -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	movzx	edx, BYTE PTR -153[rbp]
	mov	BYTE PTR -96[rbp+rax], dl
	add	DWORD PTR -128[rbp], 1
	movsx	edx, BYTE PTR -153[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -120[rbp]
	sub	rax, QWORD PTR -168[rbp]
	mov	DWORD PTR -124[rbp], eax
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -120[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -153[rbp], al
	jne	.L25
	add	DWORD PTR -132[rbp], 1
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -124[rbp], edx
	mov	rdx, QWORD PTR -104[rbp]
	cdqe
	movzx	ecx, BYTE PTR -153[rbp]
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
.L24:
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	jmp	.L27
.L23:
	sub	DWORD PTR -136[rbp], 1
.L27:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	je	.L28
	cmp	DWORD PTR -136[rbp], 0
	je	.L28
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	mov	DWORD PTR -144[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	sub	eax, DWORD PTR -132[rbp]
	mov	ecx, eax
	lea	rsi, -96[rbp]
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	cmp	DWORD PTR -144[rbp], 0
	jne	.L30
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jne	.L31
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L31:
	mov	eax, 0
.L21:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	hangman, .-hangman
	.section	.rodata
.LC7:
	.string	"rb"
.LC8:
	.string	"wordlist.txt"
.LC9:
	.string	"Wordlist not found!"
.LC10:
	.string	"error"
.LC11:
	.string	"read fails"
	.align 8
.LC12:
	.string	"Hangman\nVersion 1.1 \tAuthor: lem-ma\n"
.LC13:
	.string	"Wrongly formatted wordlist!"
	.align 8
.LC14:
	.string	"\n\nEnter \"q\" to exit, or otherwise to start a new game."
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -148[rbp], 1
	jne	.L35
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
.L36:
	cmp	QWORD PTR -112[rbp], 0
	jne	.L37
	lea	rdi, .LC9[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	edi, 1
	call	exit@PLT
.L37:
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	eax, -1
	jne	.L38
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L39:
	cmp	rsp, rdx
	je	.L40
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L39
.L40:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L41
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L41:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	QWORD PTR -80[rbp], rax
	je	.L42
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -136[rbp], 1
	jmp	.L43
.L59:
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	jmp	.L44
.L45:
	call	rand@PLT
	cdqe
	add	QWORD PTR -88[rbp], rax
	add	DWORD PTR -132[rbp], 1
.L44:
	mov	eax, DWORD PTR -132[rbp]
	movsx	rsi, eax
	mov	rcx, QWORD PTR -80[rbp]
	movabs	rdx, 8589934597
	mov	rax, rcx
	mul	rdx
	mov	rax, rcx
	sub	rax, rdx
	shr	rax
	add	rax, rdx
	shr	rax, 30
	cmp	rsi, rax
	jb	.L45
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 0
	div	QWORD PTR -80[rbp]
	mov	QWORD PTR -120[rbp], rdx
	jmp	.L46
.L48:
	sub	QWORD PTR -120[rbp], 1
.L46:
	cmp	QWORD PTR -120[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 10
	jne	.L48
.L47:
	mov	DWORD PTR -128[rbp], 1
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L49
.L52:
	cmp	DWORD PTR -128[rbp], 0
	je	.L50
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L50
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -128[rbp], 0
.L50:
	add	QWORD PTR -104[rbp], 1
.L49:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L51
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L52
.L51:
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, QWORD PTR -120[rbp]
	jne	.L53
	lea	rdi, .LC13[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR -124[rbp], eax
	jmp	.L54
.L58:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 64
	jle	.L55
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 90
	jg	.L55
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	add	eax, 32
	mov	ecx, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L56
.L55:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 96
	jle	.L57
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 122
	jle	.L56
.L57:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 45
	je	.L56
	lea	rdi, .LC13[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	add	DWORD PTR -124[rbp], 1
.L54:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	cmp	QWORD PTR -96[rbp], rax
	ja	.L58
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	mov	esi, edx
	mov	rdi, rax
	call	hangman
	test	eax, eax
	jne	.L58
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -104[rbp]
	sub	rax, QWORD PTR -120[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	lea	rdi, [rsi+rcx]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fwrite@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	call	obtainchar
	cmp	al, 113
	jne	.L43
	mov	DWORD PTR -136[rbp], 0
.L43:
	cmp	DWORD PTR -136[rbp], 0
	jne	.L59
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"410881.c"
	.text
	.align	2
	.global	obtainchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	obtainchar, %function
obtainchar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L2
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L7
.L2:
	mov	r3, #255
	b	.L4
.L7:
	nop
.L6:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L6
.L5:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	obtainchar, .-obtainchar
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Note: Enter <Tab><Enter> at any time to reveal the "
	.ascii	"answer.\012\000"
	.align	2
.LC1:
	.ascii	" \0116 more chances, %d more letters\012\000"
	.align	2
.LC2:
	.ascii	"Your guess (enter a lowercase letter): \000"
	.align	2
.LC3:
	.ascii	"Invalid input! Please input again: \000"
	.align	2
.LC4:
	.ascii	"\012%s \011%d more chance(s), %d more letter(s)\012"
	.ascii	"Chosen: %s\012\000"
	.align	2
.LC5:
	.ascii	"Game ends.\000"
	.align	2
.LC6:
	.ascii	"Congratulations!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hangman
	.syntax unified
	.arm
	.fpu softvfp
	.type	hangman, %function
hangman:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L31+4
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-100]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-52]
	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
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L9
.L10:
	sub	r2, fp, #44
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L9:
	ldr	r3, [fp, #-88]
	cmp	r3, #26
	ble	.L10
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L11
.L14:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L12
	mov	r0, #45
	bl	putchar
	mov	r3, r0
	and	r1, r3, #255
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L13
.L12:
	mov	r0, #95
	bl	putchar
	mov	r3, r0
	and	r1, r3, #255
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L13:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L11:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L14
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #6
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L31+8
	bl	printf
	b	.L15
.L27:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L31+16
	bl	fwrite
	b	.L16
.L19:
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L17
	mov	r3, #0
	b	.L18
.L17:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L31+20
	bl	fwrite
.L16:
	bl	obtainchar
	mov	r3, r0
	strb	r3, [fp, #-89]
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L19
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L19
	ldrb	r2, [fp, #-89]	@ zero_extendqisi2
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	sub	r2, fp, #44
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r2, [fp, #-89]
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	strchr
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L20
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-96]
	sub	r3, r2, r3
	str	r3, [fp, #-56]
	b	.L21
.L23:
	ldr	r3, [fp, #-84]
	add	r2, r3, #1
	str	r2, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-89]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	str	r2, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldrb	r1, [fp, #-89]
	strb	r1, [r2, r3]
	b	.L21
.L22:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L21:
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L23
	b	.L24
.L20:
	ldr	r3, [fp, #-68]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
.L24:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	beq	.L25
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L25
	mov	r3, #1
	b	.L26
.L25:
	mov	r3, #0
.L26:
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-64]
	sub	r2, r2, r3
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-48]
	ldr	r0, .L31+24
	bl	printf
.L15:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L31+28
	bl	puts
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bne	.L28
	ldr	r0, .L31+32
	bl	puts
.L28:
	mov	r3, #0
.L18:
	mov	sp, r4
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	hangman, .-hangman
	.section	.rodata
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"wordlist.txt\000"
	.align	2
.LC10:
	.ascii	"Wordlist not found!\000"
	.align	2
.LC11:
	.ascii	"error\000"
	.align	2
.LC12:
	.ascii	"read fails\000"
	.align	2
.LC13:
	.ascii	"Hangman\012Version 1.1 \011Author: lem-ma\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC14:
	.ascii	"Wrongly formatted wordlist!\000"
	.align	2
.LC15:
	.ascii	"\012\012Enter \"q\" to exit, or otherwise to start "
	.ascii	"a new game.\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bne	.L34
	ldr	r1, .L58+4
	ldr	r0, .L58+8
	bl	fopen
	str	r0, [fp, #-56]
	b	.L35
.L34:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L58+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-56]
.L35:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L58+12
	bl	puts
	bl	getchar
	mov	r0, #1
	bl	exit
.L36:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	fseek
	mov	r3, r0
	cmn	r3, #1
	bne	.L37
	ldr	r0, .L58+16
	bl	perror
	mov	r0, #1
	bl	exit
.L37:
	ldr	r0, [fp, #-56]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-56]
	bl	rewind
	ldr	r3, [fp, #-28]
	add	ip, r3, #1
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L38
	ldr	r0, [fp, #-56]
	bl	fclose
	ldr	r0, .L58+20
	bl	puts
	mov	r0, #1
	bl	exit
.L38:
	ldr	r0, [fp, #-56]
	bl	fclose
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L58+24
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L39
.L55:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L40
.L41:
	bl	rand
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L40:
	ldr	r2, [fp, #-28]
	mov	r3, #3
	umull	r1, r3, r2, r3
	sub	r2, r2, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r2, r3, #30
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bhi	.L41
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-64]
	b	.L42
.L44:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
.L42:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L44
.L43:
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-52]
	b	.L45
.L48:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L46
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L46
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-36]
.L46:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L45:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L47
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L48
.L47:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bne	.L49
	ldr	r0, .L58+28
	bl	puts
	bl	getchar
	mov	r0, #1
	bl	exit
.L49:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-32]
	b	.L50
.L54:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L51
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L51
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #32
	and	r1, r3, #255
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L52
.L51:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L53
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L52
.L53:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L52
	ldr	r0, .L58+28
	bl	puts
	bl	getchar
	mov	r0, #1
	bl	exit
.L52:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L50:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bhi	.L54
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-64]
	add	r0, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	mov	r1, r3
	bl	hangman
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-64]
	add	r0, r2, r3
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-64]
	sub	r2, r2, r3
	ldr	r3, .L58+32
	ldr	r3, [r3]
	mov	r1, #1
	bl	fwrite
	ldr	r0, .L58+36
	bl	puts
	bl	obtainchar
	mov	r3, r0
	cmp	r3, #113
	bne	.L39
	mov	r3, #0
	str	r3, [fp, #-60]
.L39:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L55
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC16
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	stdout
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
