	.file	"90602.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"the_stack_data/90602.c"
.LC2:
	.string	"%s(%d): cannot open %s\n"
.LC3:
	.string	"%s(%d): fstat failed\n"
.LC4:
	.string	"%s(%d): %s is empty file\n"
.LC5:
	.string	"%s(%d): fread failed\n"
.LC6:
	.string	"%s(%d): invalid format\n"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.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, 224
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	QWORD PTR -216[rbp], rdx
	mov	QWORD PTR -224[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -184[rbp], 0
	mov	DWORD PTR -192[rbp], 0
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -200[rbp]
	mov	r8, rdx
	mov	ecx, 50
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -192[rbp], -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	edx, eax
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fstat@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 56
	lea	rdx, .LC1[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -192[rbp], -1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -200[rbp]
	mov	r8, rdx
	mov	ecx, 61
	lea	rdx, .LC1[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -192[rbp], -1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -184[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -176[rbp]
	cmp	rdx, rax
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 69
	lea	rdx, .LC1[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -192[rbp], -1
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -176[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	memchr@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 77
	lea	rdx, .LC1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -192[rbp], -1
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -168[rbp], rax
	je	.L8
	mov	rax, QWORD PTR -168[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L8
	mov	rax, QWORD PTR -168[rbp]
	sub	rax, 1
	mov	BYTE PTR [rax], 0
.L8:
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -168[rbp], rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -168[rbp]
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -176[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	memchr@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 89
	lea	rdx, .LC1[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -192[rbp], -1
	jmp	.L3
.L9:
	mov	rax, QWORD PTR -168[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L10
	mov	rax, QWORD PTR -168[rbp]
	sub	rax, 1
	mov	BYTE PTR [rax], 0
.L10:
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 0
.L3:
	cmp	DWORD PTR -192[rbp], 0
	jns	.L11
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR [rax], 0
.L11:
	cmp	QWORD PTR -184[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L12:
	mov	eax, DWORD PTR -192[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_file, .-read_file
	.globl	generate_score_matrix
	.type	generate_score_matrix, @function
generate_score_matrix:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -92[rbp], ecx
	mov	DWORD PTR -96[rbp], r8d
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	QWORD PTR -8[rbp], rax
	cmovnb	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	QWORD PTR -16[rbp], rax
	cmovbe	rax, QWORD PTR -16[rbp]
	sub	rdx, rax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	shr	rax
	cmp	rdx, rax
	jbe	.L16
	mov	eax, -2147483648
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	imul	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR -24[rbp], 0
	jmp	.L18
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L19
	mov	DWORD PTR -52[rbp], 0
.L19:
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	cmp	QWORD PTR -16[rbp], rax
	ja	.L20
	mov	rax, QWORD PTR -16[rbp]
	sub	eax, 1
	mov	DWORD PTR -48[rbp], eax
.L20:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	QWORD PTR -32[rbp], rax
	jmp	.L21
.L47:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L22
	cmp	QWORD PTR -24[rbp], 0
	jne	.L22
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -36[rbp], -99
	mov	DWORD PTR -40[rbp], -99
	jmp	.L23
.L22:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	imul	eax, eax, -99
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	imul	eax, eax, -99
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 1
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40[rbp], eax
	jmp	.L23
.L24:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L25
	mov	rax, QWORD PTR -32[rbp]
	imul	eax, eax, -99
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	imul	eax, eax, -99
	mov	DWORD PTR -40[rbp], eax
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	add	rax, 1
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40[rbp], eax
.L23:
	cmp	DWORD PTR -96[rbp], 0
	je	.L26
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -32[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	sete	al
	jmp	.L27
.L26:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	sete	al
.L27:
	test	al, al
	je	.L28
	mov	edx, 0
	jmp	.L29
.L28:
	mov	edx, -99
.L29:
	cmp	DWORD PTR -96[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -32[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	jmp	.L31
.L30:
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
.L31:
	cmp	DWORD PTR -96[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	lea	rsi, -1[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rsi
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L33
.L32:
	mov	rsi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
.L33:
	cmp	ecx, eax
	jne	.L34
	mov	eax, 1
	jmp	.L35
.L34:
	mov	eax, -99
.L35:
	cmp	edx, eax
	cmovge	eax, edx
	add	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -32[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	sete	al
	jmp	.L37
.L36:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	sete	al
.L37:
	test	al, al
	je	.L38
	mov	edx, 0
	jmp	.L39
.L38:
	mov	edx, -99
.L39:
	cmp	DWORD PTR -96[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -32[rbp]
	lea	rcx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	sete	al
	jmp	.L41
.L40:
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	sete	al
.L41:
	test	al, al
	je	.L42
	mov	eax, 0
	jmp	.L43
.L42:
	mov	eax, -99
.L43:
	cmp	edx, eax
	cmovge	eax, edx
	add	DWORD PTR -36[rbp], eax
	sub	DWORD PTR -40[rbp], 99
	cmp	QWORD PTR -32[rbp], 0
	je	.L44
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	cmp	QWORD PTR -32[rbp], rax
	jne	.L44
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	add	rax, 1
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	cmovge	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L45
.L44:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jne	.L46
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	cmp	QWORD PTR -32[rbp], rax
	jne	.L46
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	add	rax, 1
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -40[rbp], eax
	cmovge	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	cmovge	eax, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -92[rbp]
	sub	edx, 1
	movsx	rdx, edx
	mov	rsi, rdx
	imul	rsi, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rsi
	add	rdx, 1
	sal	rdx, 2
	add	rdx, rcx
	cmp	DWORD PTR -40[rbp], eax
	cmovge	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
.L45:
	add	QWORD PTR -32[rbp], 1
.L21:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jbe	.L47
	add	QWORD PTR -24[rbp], 1
.L18:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L48
	cmp	DWORD PTR -96[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	jmp	.L17
.L49:
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	generate_score_matrix, .-generate_score_matrix
	.globl	merge_score_matrix
	.type	merge_score_matrix, @function
merge_score_matrix:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	DWORD PTR -76[rbp], r8d
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	imul	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -40[rbp], 1
	jmp	.L51
.L62:
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jns	.L52
	mov	DWORD PTR -32[rbp], 0
.L52:
	mov	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jg	.L53
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
.L53:
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	neg	eax
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L54
	mov	DWORD PTR -24[rbp], 0
.L54:
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jg	.L55
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 1
	mov	DWORD PTR -20[rbp], eax
.L55:
	mov	DWORD PTR -16[rbp], -2147483648
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L56
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, 1
	jmp	.L57
.L56:
	mov	eax, DWORD PTR -32[rbp]
.L57:
	mov	DWORD PTR -36[rbp], eax
	jmp	.L58
.L61:
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	sub	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	imul	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, ecx
	sub	eax, 750
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L59
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
.L59:
	add	DWORD PTR -36[rbp], 1
.L58:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jg	.L60
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L61
.L60:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -40[rbp], 1
.L51:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L62
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	imul	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 1
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	merge_score_matrix, .-merge_score_matrix
	.globl	calculate_score
	.type	calculate_score, @function
calculate_score:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	DWORD PTR -148[rbp], edx
	mov	QWORD PTR -160[rbp], rcx
	mov	QWORD PTR -168[rbp], r8
	mov	DWORD PTR -152[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -104[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -88[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L65
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L65:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -80[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	r8d, 1
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L67
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L67:
	mov	rsi, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	edi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -148[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	merge_score_matrix
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	je	.L68
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -88[rbp], 0
.L68:
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	je	.L69
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -80[rbp], 0
.L69:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -72[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L70
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L70:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	r8d, 1
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L71
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L71:
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -148[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	merge_score_matrix
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	je	.L72
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -72[rbp], 0
.L72:
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	je	.L73
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -64[rbp], 0
.L73:
	mov	DWORD PTR -112[rbp], -2147483648
	mov	DWORD PTR -120[rbp], 0
	jmp	.L74
.L78:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -2147483648
	je	.L108
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -2147483648
	je	.L108
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -112[rbp]
	jle	.L77
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -112[rbp], eax
	jmp	.L77
.L108:
	nop
.L77:
	add	DWORD PTR -120[rbp], 1
.L74:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jle	.L78
	cmp	QWORD PTR -24[rbp], 0
	je	.L79
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L79:
	cmp	QWORD PTR -16[rbp], 0
	je	.L80
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -16[rbp], 0
.L80:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -56[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L81
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L81:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -48[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	r8d, 1
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L82
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L82:
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -148[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	merge_score_matrix
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	je	.L83
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -56[rbp], 0
.L83:
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L84
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
.L84:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -40[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L85
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L85:
	mov	ecx, DWORD PTR -152[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	r8d, 1
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -2147483648
	jne	.L86
	mov	DWORD PTR -116[rbp], -2147483648
	jmp	.L66
.L86:
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -148[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	merge_score_matrix
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L87
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
.L87:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L88
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -32[rbp], 0
.L88:
	mov	DWORD PTR -108[rbp], -2147483648
	mov	DWORD PTR -120[rbp], 0
	jmp	.L89
.L93:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -2147483648
	je	.L109
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -2147483648
	je	.L109
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jle	.L92
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -108[rbp], eax
	jmp	.L92
.L109:
	nop
.L92:
	add	DWORD PTR -120[rbp], 1
.L89:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jle	.L93
	cmp	QWORD PTR -24[rbp], 0
	je	.L94
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L94:
	cmp	QWORD PTR -16[rbp], 0
	je	.L95
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -16[rbp], 0
.L95:
	mov	eax, DWORD PTR -112[rbp]
	cmp	DWORD PTR -108[rbp], eax
	cmovge	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -116[rbp], eax
.L66:
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	je	.L96
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -88[rbp], 0
.L96:
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	je	.L97
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -80[rbp], 0
.L97:
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	je	.L98
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -72[rbp], 0
.L98:
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	je	.L99
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -64[rbp], 0
.L99:
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	je	.L100
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -56[rbp], 0
.L100:
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L101
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
.L101:
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L102
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
.L102:
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L103
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -32[rbp], 0
.L103:
	cmp	QWORD PTR -24[rbp], 0
	je	.L104
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L104:
	cmp	QWORD PTR -16[rbp], 0
	je	.L105
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -16[rbp], 0
.L105:
	mov	eax, DWORD PTR -116[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calculate_score, .-calculate_score
	.section	.rodata
.LC7:
	.string	"%s(%d): invalid input.\n"
	.text
	.globl	check_input
	.type	check_input, @function
check_input:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L111
.L114:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 65
	je	.L112
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 67
	je	.L112
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 71
	je	.L112
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 84
	je	.L112
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 358
	lea	rdx, .LC1[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L113
.L112:
	add	QWORD PTR -40[rbp], 1
.L111:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L114
	jmp	.L115
.L117:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 65
	je	.L116
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 67
	je	.L116
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 71
	je	.L116
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 84
	je	.L116
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 366
	lea	rdx, .LC1[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L113
.L116:
	add	QWORD PTR -48[rbp], 1
.L115:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L117
	jmp	.L118
.L121:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L119
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L120
.L119:
	add	DWORD PTR -8[rbp], 1
.L120:
	add	QWORD PTR -24[rbp], 1
.L118:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L121
	jmp	.L122
.L125:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L123
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L124
.L123:
	add	DWORD PTR -4[rbp], 1
.L124:
	add	QWORD PTR -32[rbp], 1
.L122:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L125
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -4[rbp], eax
	cmovge	eax, DWORD PTR -4[rbp]
.L113:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	check_input, .-check_input
	.section	.rodata
	.align 8
.LC8:
	.string	"%s(%d): USAGE: %s <correct_answer_file> <user_answer_file>\n"
.LC9:
	.string	"%s(%d): read_file failed\n"
	.align 8
.LC10:
	.string	"%s(%d): strlen(s1) != strlen(s2)\n"
.LC11:
	.string	"score1 = %d\n"
.LC12:
	.string	"score2 = %d\n"
.LC13:
	.string	"raw_score: %d\n"
	.align 8
.LC14:
	.string	"final_score (raw_score / 100): %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -84[rbp], 3
	mov	DWORD PTR -80[rbp], 1
	cmp	DWORD PTR -100[rbp], 2
	jg	.L127
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rdx
	mov	ecx, 402
	lea	rdx, .LC1[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L128
.L127:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -56[rbp]
	lea	rdx, -64[rbp]
	lea	rsi, -72[rbp]
	mov	rdi, rax
	call	read_file
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L129
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 408
	lea	rdx, .LC1[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L128
.L129:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	lea	rdx, -40[rbp]
	lea	rsi, -48[rbp]
	mov	rdi, rax
	call	read_file
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L130
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 414
	lea	rdx, .LC1[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L128
.L130:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	QWORD PTR -16[rbp], rax
	je	.L131
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 431
	lea	rdx, .LC1[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L128
.L131:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	check_input
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	js	.L150
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 300
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	jne	.L134
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	lea	rdx, -24[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -92[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L135
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L135:
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	lea	rdx, -24[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -92[rbp], -2147483648
	je	.L136
	cmp	DWORD PTR -76[rbp], -2147483648
	jne	.L137
.L136:
	mov	DWORD PTR -92[rbp], -2147483648
	jmp	.L138
.L137:
	mov	eax, DWORD PTR -76[rbp]
	add	DWORD PTR -92[rbp], eax
.L138:
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L139
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L139:
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	lea	rdx, -24[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L140
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L140:
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -84[rbp]
	lea	rdx, -24[rbp]
	mov	r8d, 0
	mov	rdi, rax
	call	generate_score_matrix
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -88[rbp], -2147483648
	je	.L141
	cmp	DWORD PTR -76[rbp], -2147483648
	jne	.L142
.L141:
	mov	DWORD PTR -88[rbp], -2147483648
	jmp	.L143
.L142:
	mov	eax, DWORD PTR -76[rbp]
	add	DWORD PTR -88[rbp], eax
.L143:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L144
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L144:
	mov	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -88[rbp], eax
	cmovge	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -96[rbp], eax
	jmp	.L145
.L134:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r10d, eax
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edi, DWORD PTR -84[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, r10d
	mov	rdi, rax
	call	calculate_score
	mov	DWORD PTR -96[rbp], eax
.L145:
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	cmp	DWORD PTR -96[rbp], 0
	cmovns	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L128
.L150:
	nop
.L128:
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	je	.L146
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -72[rbp], 0
.L146:
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L147
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
.L147:
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L149
	call	__stack_chk_fail@PLT
.L149:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"90602.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/90602.c\000"
	.align	2
.LC2:
	.ascii	"%s(%d): cannot open %s\012\000"
	.align	2
.LC3:
	.ascii	"%s(%d): fstat failed\012\000"
	.align	2
.LC4:
	.ascii	"%s(%d): %s is empty file\012\000"
	.align	2
.LC5:
	.ascii	"%s(%d): fread failed\012\000"
	.align	2
.LC6:
	.ascii	"%s(%d): invalid format\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-132]
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L15+4
	ldr	r0, [fp, #-128]
	bl	fopen
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-128]
	str	r3, [sp]
	mov	r3, #50
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L3
.L2:
	ldr	r0, [fp, #-116]
	bl	fileno
	mov	r2, r0
	sub	r3, fp, #100
	mov	r1, r3
	mov	r0, r2
	bl	fstat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L15+8
	ldr	r0, [r3]
	mov	r3, #56
	ldr	r2, .L15+12
	ldr	r1, .L15+20
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L3
.L4:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-128]
	str	r3, [sp]
	mov	r3, #61
	ldr	r2, .L15+12
	ldr	r1, .L15+24
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L3
.L5:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-132]
	str	r2, [r3]
	ldr	r3, [fp, #-132]
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-116]
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-108]
	cmp	r3, r2
	beq	.L6
	ldr	r3, .L15+8
	ldr	r0, [r3]
	mov	r3, #69
	ldr	r2, .L15+12
	ldr	r1, .L15+28
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L3
.L6:
	ldr	r3, [fp, #-132]
	ldr	r2, [r3]
	ldr	r3, [fp, #-136]
	str	r2, [r3]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	mov	r1, #10
	mov	r0, r3
	bl	memchr
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15+8
	ldr	r0, [r3]
	mov	r3, #77
	ldr	r2, .L15+12
	ldr	r1, .L15+32
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L3
.L7:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L8
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
.L8:
	ldr	r3, [fp, #-104]
	add	r2, r3, #1
	str	r2, [fp, #-104]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-104]
	str	r2, [r3]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-108]
	sub	r3, r3, r2
	mov	r2, r3
	mov	r1, #10
	ldr	r0, [fp, #-104]
	bl	memchr
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L15+8
	ldr	r0, [r3]
	mov	r3, #89
	ldr	r2, .L15+12
	ldr	r1, .L15+32
	bl	fprintf
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L3
.L9:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L10
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
.L10:
	ldr	r3, [fp, #-104]
	mov	r2, #0
	strb	r2, [r3]
.L3:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L11
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-132]
	mov	r2, #0
	str	r2, [r3]
.L11:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L12
	ldr	r0, [fp, #-116]
	bl	fclose
.L12:
	ldr	r3, [fp, #-120]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	read_file, .-read_file
	.align	2
	.global	generate_score_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_score_matrix, %function
generate_score_matrix:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-48]
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-52]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movcs	r1, r2
	movcc	r1, r3
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	sub	r2, r1, r3
	ldr	r3, [fp, #-60]
	lsr	r3, r3, #1
	cmp	r2, r3
	bls	.L18
	mov	r3, #-2147483648
	b	.L19
.L18:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L20
.L50:
	ldr	r3, [fp, #-60]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	sub	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L21
	mov	r3, #0
	str	r3, [fp, #-32]
.L21:
	ldr	r3, [fp, #-60]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bhi	.L22
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L22:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-40]
	b	.L23
.L49:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L24
	mov	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #98
	str	r3, [fp, #-16]
	mvn	r3, #98
	str	r3, [fp, #-20]
	b	.L25
.L24:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L26
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	rsb	r3, r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r1, [fp, #-60]
	sub	r1, r1, #1
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L25
.L26:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L27
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-36]
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	rsb	r3, r3, #0
	str	r3, [fp, #-20]
	b	.L25
.L27:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r1, [fp, #-60]
	sub	r1, r1, #1
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-36]
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r1, [fp, #-60]
	sub	r1, r1, #1
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L25:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L28
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L29
.L28:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L29:
	cmp	r3, #0
	beq	.L30
	mov	r2, #0
	b	.L31
.L30:
	mvn	r2, #98
.L31:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L32
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-40]
	sub	r3, r1, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-48]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	b	.L33
.L32:
	ldr	r1, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
.L33:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L34
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-36]
	sub	r3, r1, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L35
.L34:
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
.L35:
	cmp	r0, r3
	bne	.L36
	mov	r3, #1
	b	.L37
.L36:
	mvn	r3, #98
.L37:
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L38
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L39
.L38:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L39:
	cmp	r3, #0
	beq	.L40
	mov	r2, #0
	b	.L41
.L40:
	mvn	r2, #98
.L41:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L42
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-40]
	sub	r3, r1, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-48]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L43
.L42:
	ldr	r1, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L43:
	cmp	r3, #0
	beq	.L44
	mov	r3, #0
	b	.L45
.L44:
	mvn	r3, #98
.L45:
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #99
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-60]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L46
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-36]
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1]
	b	.L47
.L46:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L48
	ldr	r3, [fp, #-60]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	sub	r3, r3, r2
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L48
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-36]
	mul	r1, r3, r1
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1]
	b	.L47
.L48:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	movge	r2, r2
	movlt	r2, r3
	ldr	r3, [fp, #-56]
	ldr	r1, [r3]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	mov	r0, r3
	ldr	r3, [fp, #-36]
	mul	r0, r3, r0
	ldr	r3, [fp, #-40]
	add	r3, r0, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1]
.L47:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L23:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bls	.L49
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L20:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L50
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	b	.L19
.L51:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r1, [fp, #-60]
	sub	r1, r1, #1
	mul	r1, r3, r1
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	generate_score_matrix, .-generate_score_matrix
	.align	2
	.global	merge_score_matrix
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_score_matrix, %function
merge_score_matrix:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	ldr	r2, [fp, #4]
	sub	r2, r2, #1
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L53
.L64:
	ldr	r3, [fp, #4]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L54
	mov	r3, #0
	str	r3, [fp, #-32]
.L54:
	ldr	r3, [fp, #4]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bgt	.L55
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L55:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	sub	r2, r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #4]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L56
	mov	r3, #0
	str	r3, [fp, #-24]
.L56:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	sub	r2, r2, r3
	ldr	r3, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #4]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bgt	.L57
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L57:
	mov	r3, #-2147483648
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L58
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	b	.L59
.L58:
	ldr	r3, [fp, #-32]
.L59:
	str	r3, [fp, #-36]
	b	.L60
.L63:
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	sub	r1, r3, #1
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	sub	r3, r1, r3
	ldr	r1, [fp, #4]
	sub	r1, r1, #1
	mul	r1, r3, r1
	ldr	r3, [fp, #-56]
	sub	r0, r3, #1
	ldr	r3, [fp, #-40]
	sub	r3, r0, r3
	add	r3, r1, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #748
	sub	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L61
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L61:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L60:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bgt	.L62
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L63
.L62:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L53:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L64
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	ldr	r2, [fp, #4]
	sub	r2, r2, #1
	mul	r2, r3, r2
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	merge_score_matrix, .-merge_score_matrix
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	calculate_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_score, %function
calculate_score:
	@ args = 8, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-104]
	ldr	r3, .L112
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-100]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-104]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r2, fp, #80
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-88]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L67
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L67:
	sub	r2, fp, #76
	mov	r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-92]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L69
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L69:
	ldr	r0, [fp, #-80]
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-96]
	bl	merge_score_matrix
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-80]
.L70:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-76]
.L71:
	sub	r2, fp, #72
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-92]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L72
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L72:
	sub	r2, fp, #68
	mov	r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-88]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L73
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L73:
	ldr	r0, [fp, #-72]
	ldr	r1, [fp, #-68]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-96]
	bl	merge_score_matrix
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-72]
.L74:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-68]
.L75:
	mov	r3, #-2147483648
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L76
.L80:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #-2147483648
	beq	.L110
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #-2147483648
	beq	.L110
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L79
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	b	.L79
.L110:
	nop
.L79:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L76:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	ble	.L80
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L81
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L81:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L82
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-36]
.L82:
	sub	r2, fp, #64
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-88]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L83
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L83:
	sub	r2, fp, #60
	mov	r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-92]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L84
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L84:
	ldr	r0, [fp, #-64]
	ldr	r1, [fp, #-60]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-96]
	bl	merge_score_matrix
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-64]
.L85:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L86
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-60]
.L86:
	sub	r2, fp, #56
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-92]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L87
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L87:
	sub	r2, fp, #52
	mov	r3, #1
	str	r3, [sp]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-88]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L88
	mov	r3, #-2147483648
	str	r3, [fp, #-44]
	b	.L68
.L88:
	ldr	r0, [fp, #-56]
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-96]
	bl	merge_score_matrix
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-56]
.L89:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L90
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-52]
.L90:
	mov	r3, #-2147483648
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L91
.L95:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #-2147483648
	beq	.L111
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #-2147483648
	beq	.L111
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L94
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	b	.L94
.L111:
	nop
.L94:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L91:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	ble	.L95
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L96
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L96:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L97
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-36]
.L97:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-44]
.L68:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-80]
.L98:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-76]
.L99:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-72]
.L100:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-68]
.L101:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-64]
.L102:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L103
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-60]
.L103:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-56]
.L104:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L105
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-52]
.L105:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L106
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L106:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L107
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-36]
.L107:
	ldr	r3, [fp, #-44]
	ldr	r2, .L112
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L109
	bl	__stack_chk_fail
.L109:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC8
	.size	calculate_score, .-calculate_score
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s(%d): invalid input.\012\000"
	.text
	.align	2
	.global	check_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_input, %function
check_input:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L115
.L118:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	beq	.L116
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #67
	beq	.L116
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #71
	beq	.L116
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #84
	beq	.L116
	ldr	r3, .L130
	ldr	r0, [r3]
	ldr	r3, .L130+4
	ldr	r2, .L130+8
	ldr	r1, .L130+12
	bl	fprintf
	mvn	r3, #0
	b	.L117
.L116:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L115:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L118
	b	.L119
.L121:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	beq	.L120
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #67
	beq	.L120
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #71
	beq	.L120
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #84
	beq	.L120
	ldr	r3, .L130
	ldr	r0, [r3]
	ldr	r3, .L130+16
	ldr	r2, .L130+8
	ldr	r1, .L130+12
	bl	fprintf
	mvn	r3, #0
	b	.L117
.L120:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L119:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L121
	b	.L122
.L125:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L123
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L124
.L123:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L124:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L122:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L125
	b	.L126
.L129:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L127
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L128
.L127:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L128:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L126:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L129
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
.L117:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L131:
	.align	2
.L130:
	.word	stderr
	.word	358
	.word	.LC1
	.word	.LC9
	.word	366
	.size	check_input, .-check_input
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%s(%d): USAGE: %s <correct_answer_file> <user_answe"
	.ascii	"r_file>\012\000"
	.align	2
.LC11:
	.ascii	"%s(%d): read_file failed\012\000"
	.align	2
.LC12:
	.ascii	"%s(%d): strlen(s1) != strlen(s2)\012\000"
	.align	2
.LC13:
	.ascii	"score1 = %d\012\000"
	.align	2
.LC14:
	.ascii	"score2 = %d\012\000"
	.align	2
.LC15:
	.ascii	"raw_score: %d\012\000"
	.align	2
.LC16:
	.ascii	"final_score (raw_score / 100): %d\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L157
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #3
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	bgt	.L133
	ldr	r3, .L157+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, .L157+8
	ldr	r2, .L157+12
	ldr	r1, .L157+16
	bl	fprintf
	b	.L134
.L133:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r0, [r3]
	sub	r3, fp, #56
	sub	r2, fp, #60
	sub	r1, fp, #64
	bl	read_file
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L135
	ldr	r3, .L157+4
	ldr	r0, [r3]
	mov	r3, #408
	ldr	r2, .L157+12
	ldr	r1, .L157+20
	bl	fprintf
	b	.L134
.L135:
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r0, [r3]
	sub	r3, fp, #44
	sub	r2, fp, #48
	sub	r1, fp, #52
	bl	read_file
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L136
	ldr	r3, .L157+4
	ldr	r0, [r3]
	ldr	r3, .L157+24
	ldr	r2, .L157+12
	ldr	r1, .L157+20
	bl	fprintf
	b	.L134
.L136:
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L137
	ldr	r3, .L157+4
	ldr	r0, [r3]
	ldr	r3, .L157+28
	ldr	r2, .L157+12
	ldr	r1, .L157+32
	bl	fprintf
	b	.L134
.L137:
	ldr	r0, [fp, #-60]
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	bl	check_input
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L156
	ldr	r3, [fp, #-16]
	add	r3, r3, #300
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L140
	ldr	r0, [fp, #-60]
	ldr	r1, [fp, #-48]
	sub	r2, fp, #40
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	bl	generate_score_matrix
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L141
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L141:
	ldr	r0, [fp, #-56]
	ldr	r1, [fp, #-44]
	sub	r2, fp, #40
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #-2147483648
	beq	.L142
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L143
.L142:
	mov	r3, #-2147483648
	str	r3, [fp, #-32]
	b	.L144
.L143:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L144:
	ldr	r1, [fp, #-32]
	ldr	r0, .L157+36
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L145
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L145:
	ldr	r0, [fp, #-60]
	ldr	r1, [fp, #-44]
	sub	r2, fp, #40
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	bl	generate_score_matrix
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L146
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L146:
	ldr	r0, [fp, #-56]
	ldr	r1, [fp, #-48]
	sub	r2, fp, #40
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	bl	generate_score_matrix
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r3, #-2147483648
	beq	.L147
	ldr	r3, [fp, #-16]
	cmp	r3, #-2147483648
	bne	.L148
.L147:
	mov	r3, #-2147483648
	str	r3, [fp, #-28]
	b	.L149
.L148:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-28]
.L149:
	ldr	r1, [fp, #-28]
	ldr	r0, .L157+40
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L150
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
.L150:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-36]
	b	.L151
.L140:
	ldr	r0, [fp, #-60]
	ldr	r1, [fp, #-56]
	ldr	ip, [fp, #-12]
	ldr	lr, [fp, #-48]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	calculate_score
	str	r0, [fp, #-36]
.L151:
	ldr	r1, [fp, #-36]
	ldr	r0, .L157+44
	bl	printf
	ldr	r3, [fp, #-36]
	bic	r3, r3, r3, asr #31
	ldr	r2, .L157+48
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L157+52
	bl	printf
	b	.L134
.L156:
	nop
.L134:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L152
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-64]
.L152:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L153
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-52]
.L153:
	mov	r3, #0
	ldr	r2, .L157
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L155
	bl	__stack_chk_fail
.L155:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L158:
	.align	2
.L157:
	.word	.LC17
	.word	stderr
	.word	402
	.word	.LC1
	.word	.LC10
	.word	.LC11
	.word	414
	.word	431
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	1374389535
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
