	.file	"38661.c"
	.intel_syntax noprefix
	.text
	.globl	use
	.data
	.align 32
	.type	use, @object
	.size	use, 40
use:
	.long	-1
	.long	2
	.long	5
	.long	5
	.long	4
	.long	5
	.long	6
	.long	3
	.long	7
	.long	6
	.text
	.globl	comp
	.type	comp, @function
comp:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	comp2
	.type	comp2, @function
comp2:
.LFB7:
	.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 -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L4
	mov	eax, 1
	jmp	.L5
.L4:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	cmp	DWORD PTR -8[rbp], 0
	jle	.L6
	mov	eax, 1
	jmp	.L5
.L6:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L7
	cmp	DWORD PTR -8[rbp], 0
	jne	.L7
	mov	eax, 0
	jmp	.L5
.L7:
	mov	eax, -1
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	comp2, .-comp2
	.globl	count_matchstick
	.type	count_matchstick, @function
count_matchstick:
.LFB8:
	.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L10
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	count_matchstick, .-count_matchstick
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -116[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], 0
	add	DWORD PTR -116[rbp], 1
.L13:
	cmp	DWORD PTR -116[rbp], 9
	jle	.L14
	lea	rdx, -120[rbp]
	lea	rax, -124[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -108[rbp], 7
	mov	DWORD PTR -104[rbp], 3
	mov	DWORD PTR -116[rbp], 0
	jmp	.L15
.L18:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -108[rbp], eax
	jg	.L16
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L17
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L17
.L16:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	mov	DWORD PTR -104[rbp], eax
.L17:
	add	DWORD PTR -116[rbp], 1
.L15:
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR -120[rbp]
	movsx	rsi, eax
	lea	rax, -96[rbp]
	lea	rcx, comp[rip]
	mov	edx, 4
	mov	rdi, rax
	call	qsort@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdq
	idiv	DWORD PTR -108[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	DWORD PTR -116[rbp], 0
	jmp	.L19
.L24:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cmp	DWORD PTR -104[rbp], eax
	jg	.L36
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -108[rbp], eax
	je	.L22
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	count_matchstick
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -100[rbp], eax
	je	.L37
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	ecx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -96[rbp+rdx*4]
	movsx	rdx, edx
	lea	rsi, 0[0+rdx*4]
	lea	rdx, use[rip]
	mov	edx, DWORD PTR [rsi+rdx]
	mov	edi, edx
	sub	edi, DWORD PTR -108[rbp]
	cdq
	idiv	edi
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	mov	esi, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -96[rbp+rdx*4]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, use[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	mov	edi, edx
	sub	edi, DWORD PTR -108[rbp]
	cdq
	idiv	edi
	mov	edx, eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	add	edx, esi
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
.L22:
	add	DWORD PTR -116[rbp], 1
.L19:
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L24
	jmp	.L21
.L36:
	nop
	jmp	.L21
.L37:
	nop
.L21:
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rcx, -96[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	lea	rdi, [rcx+rdx]
	lea	rcx, comp2[rip]
	mov	edx, 4
	mov	rsi, rax
	call	qsort@PLT
	jmp	.L25
.L29:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -108[rbp], eax
	je	.L26
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	count_matchstick
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	cmp	DWORD PTR -100[rbp], eax
	je	.L38
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	ecx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -96[rbp+rdx*4]
	movsx	rdx, edx
	lea	rsi, 0[0+rdx*4]
	lea	rdx, use[rip]
	mov	edx, DWORD PTR [rsi+rdx]
	mov	esi, edx
	sub	esi, DWORD PTR -108[rbp]
	cdq
	idiv	esi
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cdqe
	mov	esi, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -96[rbp+rdx*4]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, use[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	mov	edi, edx
	sub	edi, DWORD PTR -108[rbp]
	cdq
	idiv	edi
	mov	edx, eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	add	edx, esi
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
.L26:
	add	DWORD PTR -116[rbp], 1
.L25:
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L29
	jmp	.L28
.L38:
	nop
.L28:
	mov	DWORD PTR -116[rbp], 9
	jmp	.L30
.L33:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -112[rbp], 1
.L31:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	DWORD PTR -112[rbp], eax
	jl	.L32
	sub	DWORD PTR -116[rbp], 1
.L30:
	cmp	DWORD PTR -116[rbp], 0
	jns	.L33
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"38661.c"
	.text
	.global	use
	.data
	.align	2
	.type	use, %object
	.size	use, 40
use:
	.word	-1
	.word	2
	.word	5
	.word	5
	.word	4
	.word	5
	.word	6
	.word	3
	.word	7
	.word	6
	.text
	.align	2
	.global	comp
	.syntax unified
	.arm
	.fpu softvfp
	.type	comp, %function
comp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	comp, .-comp
	.align	2
	.global	comp2
	.syntax unified
	.arm
	.fpu softvfp
	.type	comp2, %function
comp2:
	@ 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, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, .L8
	ldr	r3, [r1, r3, lsl #2]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L4
	mov	r3, #1
	b	.L5
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L6
	mov	r3, #1
	b	.L5
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	b	.L5
.L7:
	mvn	r3, #0
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	use
	.size	comp2, .-comp2
	.align	2
	.global	count_matchstick
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_matchstick, %function
count_matchstick:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L12:
	ldr	r2, .L14
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-16]
	add	r2, r1, r2
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L12
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	use
	.size	count_matchstick, .-count_matchstick
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L17
.L18:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L17:
	ldr	r3, [fp, #-112]
	cmp	r3, #9
	ble	.L18
	sub	r2, fp, #116
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L43+4
	bl	__isoc99_scanf
	mov	r3, #7
	str	r3, [fp, #-104]
	mov	r3, #3
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L19
.L22:
	sub	r2, fp, #92
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L43+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bgt	.L20
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	blt	.L21
.L20:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	str	r3, [fp, #-100]
.L21:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L19:
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-116]
	mov	r1, r3
	sub	r0, fp, #92
	ldr	r3, .L43+16
	mov	r2, #4
	bl	qsort
	ldr	r3, [fp, #-120]
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L23
.L28:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	bgt	.L40
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	beq	.L26
	sub	r3, fp, #56
	mov	r0, r3
	bl	count_matchstick
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	beq	.L41
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-44]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-96]
	sub	r0, r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	sub	r2, r4, r3
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-44]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-96]
	sub	r0, r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-80]
	add	r2, r4, r2
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
.L26:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L23:
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L28
	b	.L25
.L40:
	nop
	b	.L25
.L41:
	nop
.L25:
	sub	r2, fp, #92
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-112]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L43+20
	mov	r2, #4
	bl	qsort
	b	.L29
.L33:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	beq	.L30
	sub	r3, fp, #56
	mov	r0, r3
	bl	count_matchstick
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	beq	.L42
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-44]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-96]
	sub	r0, r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	sub	r2, r4, r3
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-44]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-96]
	sub	r0, r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldr	r2, .L43+12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-104]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-80]
	add	r2, r4, r2
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-44]
.L30:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L29:
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	blt	.L33
	b	.L32
.L42:
	nop
.L32:
	mov	r3, #9
	str	r3, [fp, #-112]
	b	.L34
.L37:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L35
.L36:
	ldr	r1, [fp, #-112]
	ldr	r0, .L43+8
	bl	printf
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L35:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-108]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
.L34:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L37
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	use
	.word	comp
	.word	comp2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
