	.file	"34062.c"
	.intel_syntax noprefix
	.text
	.globl	cow
	.section	.rodata
.LC0:
	.string	"a cow"
	.section	.data.rel.local,"aw"
	.align 16
	.type	cow, @object
	.size	cow, 24
cow:
	.quad	.LC0
	.quad	0
	.zero	8
	.globl	game
	.align 8
	.type	game, @object
	.size	game, 8
game:
	.quad	cow
	.globl	dbname
	.section	.rodata
.LC1:
	.string	"/usr/games/lib/guess.db"
	.section	.data.rel.local
	.align 8
	.type	dbname, @object
	.size	dbname, 8
dbname:
	.quad	.LC1
	.globl	line
	.bss
	.align 32
	.type	line, @object
	.size	line, 128
line:
	.zero	128
	.globl	question
	.align 32
	.type	question, @object
	.size	question, 128
question:
	.zero	128
	.section	.rodata
.LC2:
	.string	"Out of space in copy"
	.text
	.globl	copy
	.type	copy, @function
copy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	r12, rdi
	mov	DWORD PTR -36[rbp], 0
	mov	rbx, r12
	jmp	.L2
.L3:
	add	DWORD PTR -36[rbp], 1
.L2:
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rbx, rax
	mov	r13, rbx
	test	r13, r13
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	call	leave
.L5:
	mov	rdx, r12
	lea	r12, 1[rdx]
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	rax, r13
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	copy, .-copy
	.globl	freads
	.type	freads, @function
freads:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	rbx, rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 128
	mov	rdi, rbx
	call	fgets@PLT
	test	rax, rax
	jne	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	r12, rbx
	jmp	.L10
.L12:
	add	rbx, 1
.L10:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 10
	je	.L11
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L12
.L11:
	mov	BYTE PTR [rbx], 0
	mov	rax, r12
.L9:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	freads, .-freads
	.section	.rodata
.LC3:
	.string	"r"
.LC4:
	.string	"Out of space in dbread"
.LC5:
	.string	"a corrupt database"
.LC6:
	.string	"Invalid database"
	.text
	.globl	readdb
	.type	readdb, @function
readdb:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR dbname[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, line[rip]
	mov	rdi, rax
	mov	eax, 0
	call	freads
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L15
.L16:
	mov	rbx, QWORD PTR game[rip]
	lea	rdi, line[rip]
	mov	eax, 0
	call	copy
	mov	QWORD PTR [rbx], rax
.L26:
	mov	rbx, QWORD PTR game[rip]
	jmp	.L17
.L22:
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jne	.L18
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	jne	.L20
.L19:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR 8[rbx]
	lea	rdx, .LC5[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR 16[rbx]
	lea	rdx, .LC5[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rax], 0
.L18:
	cmp	r12d, 121
	jne	.L21
	mov	rbx, QWORD PTR 8[rbx]
	jmp	.L17
.L21:
	mov	rbx, QWORD PTR 16[rbx]
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	r12d, eax
	cmp	r12d, 121
	je	.L22
	cmp	r12d, 110
	je	.L22
	cmp	r12d, -1
	je	.L29
	cmp	r12d, 58
	je	.L25
	cmp	DWORD PTR -28[rbp], 0
	jne	.L25
	lea	rdi, .LC6[rip]
	call	puts@PLT
	add	DWORD PTR -28[rbp], 1
.L25:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, line[rip]
	mov	rdi, rax
	mov	eax, 0
	call	freads
	lea	rdi, line[rip]
	mov	eax, 0
	call	copy
	mov	QWORD PTR [rbx], rax
	jmp	.L26
.L29:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L15
.L28:
	nop
.L15:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	readdb, .-readdb
	.section	.rodata
.LC7:
	.string	"%s\n"
.LC8:
	.string	"%s:"
	.text
	.globl	writedb
	.type	writedb, @function
writedb:
.LFB3:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L31
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 121
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, line[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	writedb
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 110
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	lea	rdx, line[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, line[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	writedb
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	writedb, .-writedb
	.section	.rodata
.LC9:
	.string	"w"
.LC10:
	.string	"Can't create the database"
	.text
	.globl	leave
	.type	leave, @function
leave:
.LFB4:
	.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	rax, QWORD PTR dbname[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR game[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	writedb
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE4:
	.size	leave, .-leave
	.section	.rodata
.LC11:
	.string	"Think of something."
.LC12:
	.string	"%s? "
.LC13:
	.string	"Answer yes or no."
	.align 8
.LC14:
	.string	"Is %s what you're thinking of? "
	.align 8
.LC15:
	.string	"I give up.  What are you thinking of? "
	.align 8
.LC16:
	.string	"What is a yes-or-no answer question to distinguish %s from %s? "
.LC17:
	.string	"What is the answer for %s? "
.LC18:
	.string	"Out of space"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jle	.L35
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR dbname[rip], rax
.L35:
	mov	eax, 0
	call	readdb
.L52:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rbx, QWORD PTR game[rip]
	jmp	.L36
.L39:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	answer
	mov	r12d, eax
	cmp	r12d, 121
	jne	.L37
	mov	rbx, QWORD PTR 8[rbx]
	jmp	.L36
.L37:
	cmp	r12d, 110
	jne	.L38
	mov	rbx, QWORD PTR 16[rbx]
	jmp	.L36
.L38:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L39
.L36:
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jne	.L39
.L51:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	answer
	mov	r12d, eax
	cmp	r12d, 121
	je	.L53
	cmp	r12d, 110
	jne	.L42
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, line[rip]
	mov	eax, 0
	call	gets@PLT
	test	eax, eax
	jne	.L43
	mov	eax, 0
	call	leave
.L43:
	mov	rax, QWORD PTR [rbx]
	lea	rdx, line[rip]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, question[rip]
	mov	eax, 0
	call	gets@PLT
	test	eax, eax
	jne	.L46
	mov	eax, 0
	call	leave
.L46:
	lea	rsi, line[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	answer
	mov	r12d, eax
	cmp	r12d, 121
	je	.L45
	cmp	r12d, 110
	je	.L45
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L46
.L45:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L47
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	jne	.L48
.L47:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	call	leave
.L48:
	cmp	r12d, 121
	jne	.L49
	mov	r12, QWORD PTR 8[rbx]
	lea	rdi, line[rip]
	mov	eax, 0
	call	copy
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR [rax], rdx
	jmp	.L50
.L49:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR [rax], rdx
	mov	r12, QWORD PTR 16[rbx]
	lea	rdi, line[rip]
	mov	eax, 0
	call	copy
	mov	QWORD PTR [r12], rax
.L50:
	lea	rdi, question[rip]
	mov	eax, 0
	call	copy
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rax], 0
	jmp	.L41
.L42:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L51
.L53:
	nop
.L41:
	jmp	.L52
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.globl	answer
	.type	answer, @function
answer:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	test	eax, eax
	jne	.L55
	mov	eax, 0
	call	leave
.L55:
	movzx	eax, BYTE PTR -144[rbp]
	movsx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	answer, .-answer
	.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	"34062.c"
	.text
	.global	cow
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a cow\000"
	.data
	.align	2
	.type	cow, %object
	.size	cow, 12
cow:
	.word	.LC0
	.word	0
	.space	4
	.global	game
	.align	2
	.type	game, %object
	.size	game, 4
game:
	.word	cow
	.global	dbname
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/usr/games/lib/guess.db\000"
	.data
	.align	2
	.type	dbname, %object
	.size	dbname, 4
dbname:
	.word	.LC1
	.comm	line,128,4
	.comm	question,128,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Out of space in copy\000"
	.text
	.align	2
	.global	copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy, %function
copy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	mov	r5, r0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r4, r5
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r4, r3
	mov	r6, r4
	cmp	r6, #0
	bne	.L5
	ldr	r0, .L7
	bl	puts
	bl	leave
.L5:
	mov	r2, r5
	add	r5, r2, #1
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	mov	r3, r6
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.size	copy, .-copy
	.align	2
	.global	freads
	.syntax unified
	.arm
	.fpu softvfp
	.type	freads, %function
freads:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	mov	r4, r1
	ldr	r2, [fp, #-16]
	mov	r1, #128
	mov	r0, r4
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	b	.L11
.L10:
	mov	r5, r4
	b	.L12
.L14:
	add	r4, r4, #1
.L12:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L13
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
.L13:
	mov	r3, #0
	strb	r3, [r4]
	mov	r3, r5
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	freads, .-freads
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"Out of space in dbread\000"
	.align	2
.LC5:
	.ascii	"a corrupt database\000"
	.align	2
.LC6:
	.ascii	"Invalid database\000"
	.text
	.align	2
	.global	readdb
	.syntax unified
	.arm
	.fpu softvfp
	.type	readdb, %function
readdb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L32
	ldr	r3, [r3]
	ldr	r1, .L32+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L30
	ldr	r1, .L32+8
	ldr	r0, [fp, #-16]
	bl	freads
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-16]
	bl	fclose
	b	.L17
.L18:
	ldr	r3, .L32+12
	ldr	r4, [r3]
	ldr	r0, .L32+8
	bl	copy
	mov	r3, r0
	str	r3, [r4]
.L28:
	ldr	r3, .L32+12
	ldr	r4, [r3]
	b	.L19
.L24:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L20
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L22
.L21:
	ldr	r0, .L32+16
	bl	puts
	mov	r0, #1
	bl	exit
.L22:
	ldr	r3, [r4, #4]
	ldr	r2, .L32+20
	str	r2, [r3]
	ldr	r3, [r4, #4]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [r4, #8]
	ldr	r2, .L32+20
	str	r2, [r3]
	ldr	r3, [r4, #8]
	mov	r2, #0
	str	r2, [r3, #4]
.L20:
	cmp	r5, #121
	bne	.L23
	ldr	r4, [r4, #4]
	b	.L19
.L23:
	ldr	r4, [r4, #8]
.L19:
	ldr	r0, [fp, #-16]
	bl	getc
	mov	r5, r0
	cmp	r5, #121
	beq	.L24
	cmp	r5, #110
	beq	.L24
	cmn	r5, #1
	beq	.L31
	cmp	r5, #58
	beq	.L27
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L32+24
	bl	puts
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L27:
	ldr	r1, .L32+8
	ldr	r0, [fp, #-16]
	bl	freads
	ldr	r0, .L32+8
	bl	copy
	mov	r3, r0
	str	r3, [r4]
	b	.L28
.L31:
	nop
	ldr	r0, [fp, #-16]
	bl	fclose
	b	.L17
.L30:
	nop
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L33:
	.align	2
.L32:
	.word	dbname
	.word	.LC3
	.word	line
	.word	game
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	readdb, .-readdb
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s\012\000"
	.align	2
.LC8:
	.ascii	"%s:\000"
	.text
	.align	2
	.global	writedb
	.syntax unified
	.arm
	.fpu softvfp
	.type	writedb, %function
writedb:
	@ 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	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L35
	ldr	r2, .L36+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #121
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L36+4
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r2, .L36+4
	ldr	r1, .L36+8
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	bl	writedb
	ldr	r2, .L36+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #110
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, .L36+4
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r2, .L36+4
	ldr	r1, .L36+8
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	bl	writedb
.L35:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.word	line
	.word	.LC8
	.size	writedb, .-writedb
	.section	.rodata
	.align	2
.LC9:
	.ascii	"w\000"
	.align	2
.LC10:
	.ascii	"Can't create the database\000"
	.text
	.align	2
	.global	leave
	.syntax unified
	.arm
	.fpu softvfp
	.type	leave, %function
leave:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r1, .L40+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r0, .L40+8
	bl	puts
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, .L40+12
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	writedb
	mov	r0, #0
	bl	exit
.L41:
	.align	2
.L40:
	.word	dbname
	.word	.LC9
	.word	.LC10
	.word	game
	.size	leave, .-leave
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Think of something.\000"
	.align	2
.LC12:
	.ascii	"%s? \000"
	.align	2
.LC13:
	.ascii	"Answer yes or no.\000"
	.align	2
.LC14:
	.ascii	"Is %s what you're thinking of? \000"
	.align	2
.LC15:
	.ascii	"I give up.  What are you thinking of? \000"
	.align	2
.LC16:
	.ascii	"What is a yes-or-no answer question to distinguish "
	.ascii	"%s from %s? \000"
	.align	2
.LC17:
	.ascii	"What is the answer for %s? \000"
	.align	2
.LC18:
	.ascii	"Out of space\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L43
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, .L62
	str	r3, [r2]
.L43:
	bl	readdb
.L60:
	ldr	r0, .L62+4
	bl	puts
	ldr	r3, .L62+8
	ldr	r4, [r3]
	b	.L44
.L47:
	ldr	r3, [r4]
	mov	r1, r3
	ldr	r0, .L62+12
	bl	printf
	bl	answer
	mov	r5, r0
	cmp	r5, #121
	bne	.L45
	ldr	r4, [r4, #4]
	b	.L44
.L45:
	cmp	r5, #110
	bne	.L46
	ldr	r4, [r4, #8]
	b	.L44
.L46:
	ldr	r0, .L62+16
	bl	puts
	b	.L47
.L44:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L47
.L59:
	ldr	r3, [r4]
	mov	r1, r3
	ldr	r0, .L62+20
	bl	printf
	bl	answer
	mov	r5, r0
	cmp	r5, #121
	beq	.L61
	cmp	r5, #110
	bne	.L50
	ldr	r0, .L62+24
	bl	printf
	ldr	r0, .L62+28
	bl	gets
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	bl	leave
.L51:
	ldr	r3, [r4]
	ldr	r2, .L62+28
	mov	r1, r3
	ldr	r0, .L62+32
	bl	printf
	ldr	r0, .L62+36
	bl	gets
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	bl	leave
.L54:
	ldr	r1, .L62+28
	ldr	r0, .L62+40
	bl	printf
	bl	answer
	mov	r5, r0
	cmp	r5, #121
	beq	.L53
	cmp	r5, #110
	beq	.L53
	ldr	r0, .L62+16
	bl	puts
	b	.L54
.L53:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L56
.L55:
	ldr	r0, .L62+44
	bl	puts
	bl	leave
.L56:
	cmp	r5, #121
	bne	.L57
	ldr	r5, [r4, #4]
	ldr	r0, .L62+28
	bl	copy
	mov	r3, r0
	str	r3, [r5]
	ldr	r3, [r4, #8]
	ldr	r2, [r4]
	str	r2, [r3]
	b	.L58
.L57:
	ldr	r3, [r4, #4]
	ldr	r2, [r4]
	str	r2, [r3]
	ldr	r5, [r4, #8]
	ldr	r0, .L62+28
	bl	copy
	mov	r3, r0
	str	r3, [r5]
.L58:
	ldr	r0, .L62+36
	bl	copy
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4, #4]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [r4, #8]
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L49
.L50:
	ldr	r0, .L62+16
	bl	puts
	b	.L59
.L61:
	nop
.L49:
	b	.L60
.L63:
	.align	2
.L62:
	.word	dbname
	.word	.LC11
	.word	game
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	line
	.word	.LC16
	.word	question
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.section	.rodata
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	answer
	.syntax unified
	.arm
	.fpu softvfp
	.type	answer, %function
answer:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r0, r3
	bl	gets
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	bl	leave
.L65:
	ldrb	r3, [fp, #-136]	@ zero_extendqisi2
	ldr	r2, .L68
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC19
	.size	answer, .-answer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
