	.file	"896314.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"vsmisal"
.LC2:
	.string	"%d %ld"
	.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
	lea	r11, -45056[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3184
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48232[rbp], 0
.L6:
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -208[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	is_string_equals
	test	eax, eax
	jne	.L13
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	hash
	mov	QWORD PTR -48216[rbp], rax
	mov	edx, DWORD PTR -48232[rbp]
	mov	rcx, QWORD PTR -48216[rbp]
	lea	rax, -48208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_index
	mov	DWORD PTR -48220[rbp], eax
	cmp	DWORD PTR -48220[rbp], -1
	jne	.L4
	mov	eax, DWORD PTR -48232[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -48208[rax]
	mov	rax, QWORD PTR -48216[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -48232[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48200
	mov	DWORD PTR [rax], 1
	add	DWORD PTR -48232[rbp], 1
	jmp	.L6
.L4:
	mov	eax, DWORD PTR -48220[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48200
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -48220[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48200
	mov	DWORD PTR [rax], edx
	jmp	.L6
.L13:
	nop
	mov	eax, DWORD PTR -48232[rbp]
	sub	eax, 1
	mov	DWORD PTR -48228[rbp], eax
	mov	eax, DWORD PTR -48232[rbp]
	sub	eax, 1
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48200
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48224[rbp], eax
	sub	DWORD PTR -48232[rbp], 2
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -48232[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48200
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -48224[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -48232[rbp]
	mov	DWORD PTR -48228[rbp], eax
	mov	eax, DWORD PTR -48232[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48200
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48224[rbp], eax
.L8:
	sub	DWORD PTR -48232[rbp], 1
.L7:
	cmp	DWORD PTR -48232[rbp], 0
	jns	.L9
	mov	eax, DWORD PTR -48228[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48208
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -48224[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	hash
	.type	hash, @function
hash:
.LFB1:
	.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 -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 42
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edx, DWORD PTR -16[rbp]
	add	edx, 1
	imul	eax, edx
	cdqe
	add	QWORD PTR -8[rbp], rax
	add	DWORD PTR -16[rbp], 1
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L16
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	hash, .-hash
	.globl	is_string_equals
	.type	is_string_equals, @function
is_string_equals:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L22
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
.L22:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L24
	mov	eax, 0
	jmp	.L21
.L24:
	mov	eax, 1
.L21:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	is_string_equals, .-is_string_equals
	.globl	get_index
	.type	get_index, @function
get_index:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -32[rbp], rax
	jne	.L27
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L28
.L27:
	add	DWORD PTR -4[rbp], 1
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L29
	mov	eax, -1
.L28:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	get_index, .-get_index
	.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	"896314.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"vsmisal\000"
	.align	2
.LC2:
	.ascii	"%d %ld\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #24064
	sub	sp, sp, #172
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3752]
.L6:
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L14+4
	bl	__isoc99_scanf
	sub	r3, fp, #216
	ldr	r1, .L14+8
	mov	r0, r3
	bl	is_string_equals
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #216
	mov	r0, r3
	bl	hash
	str	r0, [r4, #-3740]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24064
	sub	r3, r3, #12
	sub	r3, r3, #140
	ldr	r2, [r2, #-3752]
	ldr	r1, [r1, #-3740]
	mov	r0, r3
	bl	get_index
	str	r0, [r4, #-3736]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3736]
	cmn	r3, #1
	bne	.L4
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #20480
	sub	r2, r2, #12
	ldr	r2, [r2, #-3740]
	str	r2, [r3, #-3724]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-3720]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	add	r3, r3, #1
	str	r3, [r2, #-3752]
	b	.L6
.L4:
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3736]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-3720]
	add	r2, r3, #1
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3736]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #-3720]
	b	.L6
.L13:
	nop
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	sub	r3, r3, #1
	str	r3, [r2, #-3748]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	sub	r3, r3, #1
	sub	r2, fp, #20480
	sub	r2, r2, #12
	sub	r1, fp, #20480
	sub	r1, r1, #12
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #-3720]
	str	r3, [r2, #-3744]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	sub	r3, r3, #2
	str	r3, [r2, #-3752]
	b	.L7
.L9:
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-3720]
	sub	r2, fp, #20480
	sub	r2, r2, #12
	ldr	r2, [r2, #-3744]
	cmp	r2, r3
	bge	.L8
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	str	r3, [r2, #-3748]
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #-3720]
	str	r3, [r2, #-3744]
.L8:
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	sub	r3, r3, #1
	str	r3, [r2, #-3752]
.L7:
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3752]
	cmp	r3, #0
	bge	.L9
	sub	r3, fp, #20480
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	ldr	r3, [r3, #-3748]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #-3724]
	sub	r2, fp, #20480
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-3744]
	ldr	r0, .L14+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	hash, %function
hash:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #42
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L18:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hash, .-hash
	.align	2
	.global	is_string_equals
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_string_equals, %function
is_string_equals:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L25:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L22
	mov	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
.L24:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L26
	mov	r3, #0
	b	.L23
.L26:
	mov	r3, #1
.L23:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_string_equals, .-is_string_equals
	.align	2
	.global	get_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_index, %function
get_index:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L31:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L29
	ldr	r3, [fp, #-8]
	b	.L30
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L31
	mvn	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_index, .-get_index
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
