	.file	"92494.c"
	.intel_syntax noprefix
	.text
	.globl	L
	.bss
	.align 4
	.type	L, @object
	.size	L, 4
L:
	.zero	4
	.globl	Dict
	.align 32
	.type	Dict, @object
	.size	Dict, 3040
Dict:
	.zero	3040
	.globl	CurrentLanguage
	.align 4
	.type	CurrentLanguage, @object
	.size	CurrentLanguage, 4
CurrentLanguage:
	.zero	4
	.section	.rodata
.LC0:
	.string	"ab"
.LC1:
	.string	"iWillookDictionary.dat"
.LC2:
	.string	"can not open file."
.LC3:
	.string	"dictionary write error"
	.text
	.globl	save
	.type	save, @function
save:
.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
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR CurrentLanguage[rip]
	cmp	eax, 2
	je	.L3
	cmp	eax, 2
	ja	.L11
	test	eax, eax
	je	.L5
	cmp	eax, 1
	je	.L6
	jmp	.L11
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 304
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L7
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 608
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L7
.L11:
	nop
.L7:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, Dict[rip]
	lea	rdi, [rax+rdx]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 304
	call	fwrite@PLT
	cmp	rax, 1
	je	.L9
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L9:
	add	DWORD PTR -12[rbp], 1
.L8:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	save, .-save
	.section	.rodata
.LC4:
	.string	"vocabulary:, definition:"
.LC5:
	.string	"%[^\n]%*c%[^\n]%*c"
.LC6:
	.string	"yearofOrigin:"
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, 16[rax]
	lea	rax, Dict[rip]
	add	rax, rdx
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, Dict[rip]
	add	rax, rdx
	mov	rdx, rcx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, 288[rax]
	lea	rax, Dict[rip]
	add	rax, rdx
	add	rax, 12
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L14
	mov	eax, 0
	call	save
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"92494.c"
	.text
	.comm	L,4,4
	.comm	Dict,3040,4
	.global	CurrentLanguage
	.bss
	.align	2
	.type	CurrentLanguage, %object
	.size	CurrentLanguage, 4
CurrentLanguage:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ab\000"
	.align	2
.LC1:
	.ascii	"iWillookDictionary.dat\000"
	.align	2
.LC2:
	.ascii	"can not open file.\000"
	.align	2
.LC3:
	.ascii	"dictionary write error\000"
	.text
	.align	2
	.global	save
	.syntax unified
	.arm
	.fpu softvfp
	.type	save, %function
save:
	@ 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	r1, .L12
	ldr	r0, .L12+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L12+8
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L3
	cmp	r3, #2
	bhi	.L11
	cmp	r3, #0
	beq	.L5
	cmp	r3, #1
	beq	.L6
	b	.L11
.L5:
	ldr	r0, [fp, #-8]
	bl	rewind
	b	.L7
.L6:
	mov	r2, #0
	mov	r1, #304
	ldr	r0, [fp, #-8]
	bl	fseek
	b	.L7
.L3:
	mov	r2, #0
	mov	r1, #608
	ldr	r0, [fp, #-8]
	bl	fseek
	b	.L7
.L11:
	nop
.L7:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L10:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L12+16
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #304
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L9
	ldr	r0, .L12+20
	bl	puts
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L10
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	CurrentLanguage
	.word	Dict
	.word	.LC3
	.size	save, .-save
	.section	.rodata
	.align	2
.LC4:
	.ascii	"vocabulary:, definition:\000"
	.align	2
.LC5:
	.ascii	"%[^\012]%*c%[^\012]%*c\000"
	.align	2
.LC6:
	.ascii	"yearofOrigin:\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L18+4
	bl	puts
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L18+8
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #16
	ldr	r2, .L18+8
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L18+12
	bl	__isoc99_scanf
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L18+16
	bl	puts
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, #296
	ldr	r2, .L18+8
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L18+20
	bl	__isoc99_scanf
	ldr	r3, .L18
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L16
	bl	save
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	stdin
	.word	.LC4
	.word	Dict
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
