	.file	"19118.c"
	.intel_syntax noprefix
	.text
	.globl	comparedge
	.type	comparedge, @function
comparedge:
.LFB6:
	.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jge	.L5
	mov	eax, -1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jle	.L6
	mov	eax, 1
	jmp	.L3
.L6:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comparedge, .-comparedge
	.section	.rodata
.LC0:
	.string	"%1s"
	.text
	.type	nextchar, @function
nextchar:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L8
	mov	eax, -1
	jmp	.L10
.L8:
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
.L10:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nextchar, .-nextchar
	.section	.rodata
.LC1:
	.string	"\\n\""
.LC2:
	.string	"Duplicate p line\n"
.LC3:
	.string	" edge %d %lu"
.LC4:
	.string	"Bad p line\n"
.LC5:
	.string	"Malloc failed\n"
.LC6:
	.string	"Missing p line\n"
.LC7:
	.string	"%d%d"
.LC8:
	.string	"Bad n line\n"
	.align 8
.LC9:
	.string	"Missing p line or too many e lines\n"
.LC10:
	.string	"Bad e line\n"
.LC11:
	.string	"Unknown line %c\n"
.LC12:
	.string	"Wrong number of e lines\n"
.LC13:
	.string	"$=1 n=%d g\n"
.LC14:
	.string	"%d:"
.LC15:
	.string	" %d"
.LC16:
	.string	"."
.LC17:
	.string	"f=["
.LC18:
	.string	"\n |"
.LC19:
	.string	"]"
.LC20:
	.string	"$$"
	.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
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	jmp	.L13
.L35:
	cmp	DWORD PTR -44[rbp], 112
	je	.L14
	cmp	DWORD PTR -44[rbp], 112
	jg	.L15
	cmp	DWORD PTR -44[rbp], 110
	je	.L16
	cmp	DWORD PTR -44[rbp], 110
	jg	.L15
	cmp	DWORD PTR -44[rbp], 99
	je	.L17
	cmp	DWORD PTR -44[rbp], 101
	je	.L18
	jmp	.L15
.L17:
	mov	edi, 34
	call	putchar@PLT
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	putchar@PLT
.L19:
	call	getchar@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 10
	je	.L20
	cmp	DWORD PTR -44[rbp], -1
	jne	.L21
.L20:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L13
.L14:
	cmp	DWORD PTR -52[rbp], 0
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	lea	rdx, -40[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L25
.L24:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	DWORD PTR -52[rbp], 1
	mov	DWORD PTR -48[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -48[rbp]
	add	edx, 1
	mov	DWORD PTR 4[rax], edx
	add	DWORD PTR -48[rbp], 1
.L26:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L27
	jmp	.L13
.L16:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	lea	rdx, -60[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	jne	.L29
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jle	.L29
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cmp	edx, eax
	jle	.L30
.L29:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L13
.L18:
	cmp	DWORD PTR -52[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -32[rbp], rax
	jne	.L32
.L31:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	lea	rdx, -56[rbp]
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	jne	.L33
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L33
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jle	.L33
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cmp	edx, eax
	jg	.L33
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -64[rbp]
	cmp	edx, eax
	jle	.L34
.L33:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR 4[rdx], eax
	add	QWORD PTR -32[rbp], 1
	jmp	.L13
.L15:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -44[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	call	nextchar
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L35
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -32[rbp], rax
	je	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	cmp	DWORD PTR -68[rbp], 1
	jle	.L37
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
.L37:
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, comparedge[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -60[rbp], -1
	mov	QWORD PTR -32[rbp], 0
	jmp	.L38
.L41:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	cmp	edx, eax
	je	.L39
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	cmp	QWORD PTR -32[rbp], 0
	je	.L40
	mov	edi, 10
	call	putchar@PLT
.L40:
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L39:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -32[rbp], 1
.L38:
	mov	rax, QWORD PTR -40[rbp]
	cmp	QWORD PTR -32[rbp], rax
	jb	.L41
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, comparedge[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -48[rbp], 1
	jmp	.L42
.L45:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	lea	rcx, -8[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L53
	add	DWORD PTR -48[rbp], 1
.L42:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L45
	jmp	.L44
.L53:
	nop
.L44:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jge	.L46
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L47
.L49:
	cmp	DWORD PTR -48[rbp], 0
	jle	.L48
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	lea	rcx, -8[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L48
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L48:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -48[rbp], 1
.L47:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L49
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L46:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	cmp	DWORD PTR -68[rbp], 2
	jle	.L50
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
.L50:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	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	"19118.c"
	.text
	.align	2
	.global	comparedge
	.syntax unified
	.arm
	.fpu softvfp
	.type	comparedge, %function
comparedge:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L4
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L5
	mvn	r3, #0
	b	.L3
.L5:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L6
	mov	r3, #1
	b	.L3
.L6:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	comparedge, .-comparedge
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%1s\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextchar, %function
nextchar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L8
	mvn	r3, #0
	b	.L10
.L8:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	nextchar, .-nextchar
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\\n\"\000"
	.align	2
.LC3:
	.ascii	"Duplicate p line\012\000"
	.align	2
.LC4:
	.ascii	" edge %d %lu\000"
	.align	2
.LC5:
	.ascii	"Bad p line\012\000"
	.align	2
.LC6:
	.ascii	"Malloc failed\012\000"
	.align	2
.LC7:
	.ascii	"Missing p line\012\000"
	.align	2
.LC8:
	.ascii	"%d%d\000"
	.align	2
.LC9:
	.ascii	"Bad n line\012\000"
	.align	2
.LC10:
	.ascii	"Missing p line or too many e lines\012\000"
	.align	2
.LC11:
	.ascii	"Bad e line\012\000"
	.align	2
.LC12:
	.ascii	"Unknown line %c\012\000"
	.align	2
.LC13:
	.ascii	"Wrong number of e lines\012\000"
	.align	2
.LC14:
	.ascii	"$=1 n=%d g\012\000"
	.align	2
.LC15:
	.ascii	"%d:\000"
	.align	2
.LC16:
	.ascii	" %d\000"
	.align	2
.LC17:
	.ascii	".\000"
	.align	2
.LC18:
	.ascii	"f=[\000"
	.align	2
.LC19:
	.ascii	"\012 |\000"
	.align	2
.LC20:
	.ascii	"]\000"
	.align	2
.LC21:
	.ascii	"$$\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, 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, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L15
.L38:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #99
	cmp	r3, #13
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L21
	.word	.L16
	.word	.L20
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L19
	.word	.L16
	.word	.L17
.L21:
	mov	r0, #34
	bl	putchar
	b	.L22
.L24:
	ldr	r0, [fp, #-12]
	bl	putchar
.L22:
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L23
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L24
.L23:
	ldr	r0, .L57+4
	bl	puts
	b	.L15
.L17:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L57+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L25:
	sub	r2, fp, #44
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L57+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L26
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L57+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L28
.L27:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L57+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L28:
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L29
.L30:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L29:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L30
	b	.L15
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L57+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L31:
	sub	r2, fp, #40
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L57+32
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L32
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L32
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L33
.L32:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L57+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	b	.L15
.L20:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L35
.L34:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L57+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L35:
	sub	r2, fp, #36
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L57+32
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L36
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L36
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L36
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bgt	.L36
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	ble	.L37
.L36:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L57+44
	bl	fwrite
	mov	r0, #1
	bl	exit
.L37:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L15
.L16:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L57+48
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	bl	nextchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L38
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L39
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L57+52
	bl	fwrite
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	ble	.L40
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L40:
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L57+56
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r3, .L57+60
	mov	r2, #8
	ldr	r0, [fp, #-28]
	bl	qsort
	mvn	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L41
.L44:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	beq	.L42
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L43
	mov	r0, #10
	bl	putchar
.L43:
	ldr	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L57+64
	bl	printf
.L42:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L57+68
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L41:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcc	.L44
	ldr	r0, .L57+72
	bl	puts
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r3, .L57+60
	mov	r2, #8
	ldr	r0, [fp, #-24]
	bl	qsort
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L45
.L48:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L56
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L45:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L48
	b	.L47
.L56:
	nop
.L47:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L49
	ldr	r0, .L57+76
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L50
.L52:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L51
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L51
	ldr	r0, .L57+80
	bl	printf
.L51:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L57+68
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L50:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L52
	ldr	r0, .L57+84
	bl	puts
.L49:
	ldr	r0, .L57+88
	bl	puts
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L53
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L53:
	mov	r3, #0
	ldr	r2, .L57
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC22
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	comparedge
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
