	.file	"409237.c"
	.intel_syntax noprefix
	.text
	.globl	template
	.bss
	.align 16
	.type	template, @object
	.size	template, 30
template:
	.zero	30
	.globl	pairs_size
	.align 4
	.type	pairs_size, @object
	.size	pairs_size, 4
pairs_size:
	.zero	4
	.globl	pairs
	.align 8
	.type	pairs, @object
	.size	pairs, 8
pairs:
	.zero	8
	.globl	pair_count
	.align 8
	.type	pair_count, @object
	.size	pair_count, 8
pair_count:
	.zero	8
	.text
	.globl	find_pair
	.type	find_pair, @function
find_pair:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -20[rbp], al
	jne	.L3
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -24[rbp], al
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR pairs_size[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	mov	eax, -1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find_pair, .-find_pair
	.globl	inc_pair
	.type	inc_pair, @function
inc_pair:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L10:
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -20[rbp], al
	jne	.L8
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -24[rbp], al
	jne	.L8
	mov	rdx, QWORD PTR pair_count[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L8:
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR pairs_size[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L10
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inc_pair, .-inc_pair
	.section	.rodata
.LC0:
	.string	"d14_input"
.LC1:
	.string	"d14_short_input"
.LC2:
	.string	"r"
.LC3:
	.string	"cant read file"
.LC4:
	.string	"%s"
.LC5:
	.string	"%s\n"
.LC6:
	.string	"%c%c -> %c\n"
.LC7:
	.string	"resault = %li\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 424
	.cfi_offset 3, -24
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -420[rbp], 1
	setg	al
	movzx	eax, al
	mov	DWORD PTR -368[rbp], eax
	cmp	DWORD PTR -368[rbp], 0
	je	.L12
	lea	rax, .LC0[rip]
	jmp	.L13
.L12:
	lea	rax, .LC1[rip]
.L13:
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L14
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L37
.L14:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, template[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	lea	rdi, template[rip]
	call	strlen@PLT
	mov	DWORD PTR -364[rbp], eax
	jmp	.L16
.L17:
	cmp	BYTE PTR -402[rbp], 10
	jne	.L16
	mov	eax, DWORD PTR pairs_size[rip]
	add	eax, 1
	mov	DWORD PTR pairs_size[rip], eax
.L16:
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -402[rbp], al
	cmp	BYTE PTR -402[rbp], -1
	jne	.L17
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR pairs_size[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR pairs[rip], rax
	mov	DWORD PTR -400[rbp], 0
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -400[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 3
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -400[rbp], 1
.L18:
	mov	eax, DWORD PTR pairs_size[rip]
	cmp	DWORD PTR -400[rbp], eax
	jl	.L19
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -328[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -396[rbp], 0
	jmp	.L20
.L21:
	add	DWORD PTR -396[rbp], 1
.L20:
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, 2[rax]
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L21
	mov	eax, DWORD PTR pairs_size[rip]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR pair_count[rip], rax
	lea	rdi, template[rip]
	call	strlen@PLT
	mov	DWORD PTR -360[rbp], eax
	mov	DWORD PTR -392[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -392[rbp]
	add	eax, 1
	cdqe
	lea	rdx, template[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	lea	rcx, template[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	inc_pair
	add	DWORD PTR -392[rbp], 1
.L22:
	mov	eax, DWORD PTR -360[rbp]
	sub	eax, 1
	cmp	DWORD PTR -392[rbp], eax
	jl	.L23
	mov	DWORD PTR -356[rbp], 40
	mov	DWORD PTR -388[rbp], 1
	jmp	.L24
.L30:
	mov	eax, DWORD PTR pairs_size[rip]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -320[rbp], rax
	mov	DWORD PTR -384[rbp], 0
	jmp	.L25
.L27:
	mov	rdx, QWORD PTR pair_count[rip]
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -312[rbp], rax
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -401[rbp], al
	movsx	edx, BYTE PTR -401[rbp]
	mov	rcx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	find_pair
	mov	DWORD PTR -352[rbp], eax
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	movsx	eax, BYTE PTR -401[rbp]
	mov	esi, edx
	mov	edi, eax
	call	find_pair
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -312[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -348[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -312[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	cmp	QWORD PTR -312[rbp], 0
	jle	.L26
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -384[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -320[rbp]
	add	rdx, rcx
	sub	rax, QWORD PTR -312[rbp]
	mov	QWORD PTR [rdx], rax
.L26:
	add	DWORD PTR -384[rbp], 1
.L25:
	mov	eax, DWORD PTR pairs_size[rip]
	cmp	DWORD PTR -384[rbp], eax
	jl	.L27
	mov	DWORD PTR -380[rbp], 0
	jmp	.L28
.L29:
	mov	rdx, QWORD PTR pair_count[rip]
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR pair_count[rip]
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -380[rbp], 1
.L28:
	mov	eax, DWORD PTR pairs_size[rip]
	cmp	DWORD PTR -380[rbp], eax
	jl	.L29
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -388[rbp], 1
.L24:
	mov	eax, DWORD PTR -388[rbp]
	cmp	eax, DWORD PTR -356[rbp]
	jle	.L30
	lea	rdx, -304[rbp]
	mov	eax, 0
	mov	ecx, 30
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -376[rbp], 0
	jmp	.L31
.L32:
	mov	rdx, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	cdqe
	mov	rcx, QWORD PTR -304[rbp+rax*8]
	mov	rdx, QWORD PTR pair_count[rip]
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rsi, QWORD PTR pairs[rip]
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 65
	add	rdx, rcx
	cdqe
	mov	QWORD PTR -304[rbp+rax*8], rdx
	add	DWORD PTR -376[rbp], 1
.L31:
	mov	eax, DWORD PTR pairs_size[rip]
	cmp	DWORD PTR -376[rbp], eax
	jl	.L32
	mov	eax, DWORD PTR -360[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, template[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	sub	eax, 65
	movsx	rdx, eax
	mov	rdx, QWORD PTR -304[rbp+rdx*8]
	add	rdx, 1
	cdqe
	mov	QWORD PTR -304[rbp+rax*8], rdx
	movabs	rax, 9223372036854775807
	mov	QWORD PTR -344[rbp], rax
	movabs	rax, -9223372036854775808
	mov	QWORD PTR -336[rbp], rax
	mov	DWORD PTR -372[rbp], 0
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	cmp	QWORD PTR -344[rbp], rax
	jle	.L34
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	test	rax, rax
	jle	.L34
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	mov	QWORD PTR -344[rbp], rax
.L34:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	cmp	QWORD PTR -336[rbp], rax
	jge	.L35
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	mov	rax, QWORD PTR -304[rbp+rax*8]
	mov	QWORD PTR -336[rbp], rax
.L35:
	add	DWORD PTR -372[rbp], 1
.L33:
	cmp	DWORD PTR -372[rbp], 29
	jle	.L36
	mov	rax, QWORD PTR -336[rbp]
	sub	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L37:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"409237.c"
	.text
	.comm	template,30,4
	.comm	pairs_size,4,4
	.comm	pairs,4,4
	.comm	pair_count,4,4
	.align	2
	.global	find_pair
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_pair, %function
find_pair:
	@ 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
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	mvn	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	pairs
	.word	pairs_size
	.size	find_pair, .-find_pair
	.align	2
	.global	inc_pair
	.syntax unified
	.arm
	.fpu softvfp
	.type	inc_pair, %function
inc_pair:
	@ 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
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L12:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-14]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L10
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	b	.L8
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L12
.L8:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	pairs
	.word	pair_count
	.word	pairs_size
	.size	inc_pair, .-inc_pair
	.section	.rodata
	.align	2
.LC0:
	.ascii	"d14_input\000"
	.align	2
.LC1:
	.ascii	"d14_short_input\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"cant read file\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-184]
	cmp	r3, #1
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L25+4
	b	.L17
.L16:
	ldr	r3, .L25+8
.L17:
	ldr	r1, .L25+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L25+16
	bl	puts
	mov	r3, #1
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	b	.L23
.L18:
	ldr	r2, .L25+20
	ldr	r1, .L25+24
	ldr	r0, [fp, #-168]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-168]
	bl	fgetc
	ldr	r0, [fp, #-168]
	bl	fgetc
	ldr	r0, .L25+20
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-172]
	b	.L20
.L24:
	ldr	r3, .L25+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+28
	str	r3, [r2]
.L20:
	ldr	r0, [fp, #-168]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-173]
	ldrb	r3, [fp, #-173]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L20
	b	.L24
.L23:
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	template
	.word	.LC4
	.word	pairs_size
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
