	.file	"676653.c"
	.intel_syntax noprefix
	.text
	.globl	words
	.bss
	.align 32
	.type	words, @object
	.size	words, 2000
words:
	.zero	2000
	.globl	freq
	.align 32
	.type	freq, @object
	.size	freq, 400
freq:
	.zero	400
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	lines
	.align 4
	.type	lines, @object
	.size	lines, 4
lines:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%c"
.LC1:
	.string	"%s %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR n[rip], 0
	mov	DWORD PTR lines[rip], 0
	mov	DWORD PTR w[rip], 0
.L7:
	mov	eax, DWORD PTR lines[rip]
	cmp	eax, 3
	je	.L21
	lea	rax, -17[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 32
	jne	.L4
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	mov	DWORD PTR n[rip], eax
	mov	DWORD PTR w[rip], 0
	jmp	.L7
.L4:
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 10
	jne	.L6
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR lines[rip]
	add	eax, 1
	mov	DWORD PTR lines[rip], eax
	mov	DWORD PTR w[rip], 0
	jmp	.L7
.L6:
	mov	ecx, DWORD PTR n[rip]
	mov	eax, DWORD PTR w[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR w[rip], edx
	movzx	edx, BYTE PTR -17[rbp]
	movsx	rsi, eax
	movsx	rcx, ecx
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, [rax+rsi]
	lea	rax, words[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR n[rip]
	mov	edx, DWORD PTR w[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rax+rcx]
	lea	rax, words[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L7
.L21:
	nop
	mov	DWORD PTR -12[rbp], 0
	jmp	.L8
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L22
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, words[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, words[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	DWORD PTR [rdx+rax], -1
.L12:
	add	DWORD PTR -16[rbp], 1
.L11:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L13
	jmp	.L10
.L22:
	nop
.L10:
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L14
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jle	.L16
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, words[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -12[rbp], 1
.L15:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"676653.c"
	.text
	.comm	words,2000,4
	.comm	freq,400,4
	.comm	n,4,4
	.comm	lines,4,4
	.comm	w,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c\000"
	.align	2
.LC1:
	.ascii	"%s %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L23+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L23+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L23+12
	mov	r2, #0
	str	r2, [r3]
.L7:
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L21
	sub	r3, fp, #17
	mov	r1, r3
	ldr	r0, .L23+16
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L4
	ldr	r3, .L23+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+4
	str	r3, [r2]
	ldr	r3, .L23+12
	mov	r2, #0
	str	r2, [r3]
	b	.L7
.L4:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	ldr	r3, .L23+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+4
	str	r3, [r2]
	ldr	r3, .L23+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+8
	str	r3, [r2]
	ldr	r3, .L23+12
	mov	r2, #0
	str	r2, [r3]
	b	.L7
.L6:
	ldr	r3, .L23+4
	ldr	r1, [r3]
	ldr	r3, .L23+12
	ldr	r2, [r3]
	add	r3, r2, #1
	ldr	r0, .L23+12
	str	r3, [r0]
	ldrb	ip, [fp, #-17]	@ zero_extendqisi2
	ldr	r0, .L23+20
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, r2
	mov	r2, ip
	strb	r2, [r3]
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, .L23+12
	ldr	r1, [r3]
	ldr	r0, .L23+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, r1
	mov	r2, #0
	strb	r2, [r3]
	b	.L7
.L21:
	nop
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L14:
	ldr	r2, .L23+24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L22
	ldr	r2, .L23+24
	ldr	r3, [fp, #-12]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L11
.L13:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L23+20
	add	r0, r3, r2
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L23+20
	add	r3, r3, r2
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r2, .L23+24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L23+24
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L23+24
	ldr	r3, [fp, #-16]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L13
	b	.L10
.L22:
	nop
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L17:
	ldr	r2, .L23+24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	ble	.L16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L23+20
	add	r1, r3, r2
	ldr	r2, .L23+24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L23+28
	bl	printf
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	n
	.word	lines
	.word	w
	.word	.LC0
	.word	words
	.word	freq
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
