	.file	"188756.c"
	.intel_syntax noprefix
	.text
	.globl	compar
	.type	compar, @function
compar:
.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 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jge	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	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	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jge	.L5
	mov	eax, 0
	jmp	.L3
.L5:
	mov	eax, 1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compar, .-compar
	.globl	solution
	.type	solution, @function
solution:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -15998976[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1088
	mov	QWORD PTR -16000056[rbp], rdi
	mov	DWORD PTR -16000060[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16000044[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -16000044[rbp]
	cdqe
	mov	BYTE PTR -16000032[rbp+rax*8], -1
	mov	eax, DWORD PTR -16000044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16000056[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16000044[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -16000044[rbp]
	cdqe
	mov	DWORD PTR -16000028[rbp+rax*8], edx
	mov	edx, DWORD PTR -16000044[rbp]
	mov	eax, DWORD PTR -16000060[rbp]
	add	eax, edx
	cdqe
	mov	BYTE PTR -16000032[rbp+rax*8], 1
	mov	eax, DWORD PTR -16000044[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16000056[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -16000044[rbp]
	mov	eax, DWORD PTR -16000060[rbp]
	add	eax, edx
	mov	edx, DWORD PTR -16000044[rbp]
	add	edx, ecx
	cdqe
	mov	DWORD PTR -16000028[rbp+rax*8], edx
	add	DWORD PTR -16000044[rbp], 1
.L7:
	mov	eax, DWORD PTR -16000044[rbp]
	cmp	eax, DWORD PTR -16000060[rbp]
	jl	.L8
	mov	eax, DWORD PTR -16000060[rbp]
	add	eax, eax
	movsx	rsi, eax
	lea	rax, -16000032[rbp]
	lea	rcx, compar[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -16000040[rbp], 0
	mov	DWORD PTR -16000036[rbp], 0
	mov	DWORD PTR -16000044[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -16000044[rbp]
	cdqe
	movzx	eax, BYTE PTR -16000032[rbp+rax*8]
	cmp	al, -1
	jne	.L10
	add	DWORD PTR -16000040[rbp], 1
	jmp	.L11
.L10:
	sub	DWORD PTR -16000040[rbp], 1
	mov	eax, DWORD PTR -16000040[rbp]
	add	DWORD PTR -16000036[rbp], eax
.L11:
	add	DWORD PTR -16000044[rbp], 1
.L9:
	mov	eax, DWORD PTR -16000060[rbp]
	add	eax, eax
	cmp	DWORD PTR -16000044[rbp], eax
	jl	.L12
	mov	eax, DWORD PTR -16000036[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	solution, .-solution
	.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	"188756.c"
	.text
	.align	2
	.global	compar
	.syntax unified
	.arm
	.fpu softvfp
	.type	compar, %function
compar:
	@ 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, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L4
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L5
	mov	r3, #0
	b	.L3
.L5:
	mov	r3, #1
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compar, .-compar
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solution
	.syntax unified
	.arm
	.fpu softvfp
	.type	solution, %function
solution:
	@ args = 0, pretend = 0, frame = 16000040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #15990784
	sub	sp, sp, #9216
	sub	sp, sp, #40
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	str	r0, [r3, #-1060]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	str	r1, [r3, #-1064]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L7
.L8:
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3, #-1044]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	lsl	r2, r3, #2
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1060]
	add	r3, r3, r2
	ldr	r2, [r3]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	sub	r2, r3, r2
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r1, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #-1040]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r2, [r2, #-1056]
	ldr	r3, [r3, #-1064]
	add	r2, r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r1, r3
	lsl	r3, r2, #3
	add	r3, r1, r3
	mov	r2, #1
	strb	r2, [r3, #-1044]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	lsl	r2, r3, #2
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1060]
	add	r3, r3, r2
	ldr	r2, [r3]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r1, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r1, [r1, #-1056]
	ldr	r3, [r3, #-1064]
	add	r1, r1, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	add	r2, r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r0, r3
	lsl	r3, r1, #3
	add	r3, r0, r3
	str	r2, [r3, #-1040]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L7:
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r2, [r2, #-1056]
	ldr	r3, [r3, #-1064]
	cmp	r2, r3
	blt	.L8
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1064]
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L13+4
	sub	r3, fp, #4
	add	r0, r3, r0
	ldr	r3, .L13+8
	mov	r2, #8
	bl	qsort
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1052]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1048]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1056]
	b	.L9
.L10:
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1052]
	sub	r3, r3, #1
	str	r3, [r2, #-1052]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r1, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r2, [r2, #-1048]
	ldr	r3, [r3, #-1052]
	add	r3, r2, r3
	str	r3, [r1, #-1048]
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	mov	r2, r3
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	add	r3, r3, #1
	str	r3, [r2, #-1056]
.L9:
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1064]
	lsl	r2, r3, #1
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1056]
	cmp	r3, r2
	blt	.L10
	add	r3, fp, #-16777216
	sub	r3, r3, #4
	add	r3, r3, #778240
	ldr	r3, [r3, #-1048]
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	-16000020
	.word	compar
	.size	solution, .-solution
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
