	.file	"164917.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%lu"
.LC1:
	.string	"%.6lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	scan
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sort_by_x
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	minimal_distance
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	minimal_distance
	.type	minimal_distance, @function
minimal_distance:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -112[rbp]
	sub	rax, QWORD PTR -104[rbp]
	test	rax, rax
	jg	.L5
	mov	rax, QWORD PTR .LC2[rip]
	jmp	.L19
.L5:
	mov	rax, QWORD PTR -112[rbp]
	sub	rax, QWORD PTR -104[rbp]
	cmp	rax, 16
	jne	.L7
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	distance
	movq	rax, xmm0
	jmp	.L19
.L7:
	mov	rax, QWORD PTR -112[rbp]
	sub	rax, QWORD PTR -104[rbp]
	sar	rax, 4
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	minimal_distance
	movq	rax, xmm0
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	minimal_distance
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, QWORD PTR -48[rbp]
	jbe	.L23
	movsd	xmm0, QWORD PTR -48[rbp]
	jmp	.L10
.L23:
	movsd	xmm0, QWORD PTR -40[rbp]
.L10:
	movsd	QWORD PTR -64[rbp], xmm0
	lea	rcx, -84[rbp]
	mov	rdi, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	movq	xmm0, rdi
	mov	rdi, rax
	call	middle_range
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, 1
	jbe	.L11
	mov	eax, DWORD PTR -84[rbp]
	mov	eax, eax
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sort_by_y
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L12
.L18:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	QWORD PTR -72[rbp], rax
	jmp	.L13
.L17:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	distance
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	movsd	xmm0, QWORD PTR -64[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L14
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
.L14:
	add	QWORD PTR -72[rbp], 16
.L13:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	ja	.L16
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, QWORD PTR -80[rbp]
	cmp	rax, 112
	jle	.L17
.L16:
	add	QWORD PTR -80[rbp], 16
.L12:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L18
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sort_by_x
.L11:
	mov	rax, QWORD PTR -64[rbp]
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	minimal_distance, .-minimal_distance
	.globl	middle_range
	.type	middle_range, @function
middle_range:
.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	movsd	QWORD PTR -64[rbp], xmm0
	mov	QWORD PTR -72[rbp], rcx
	mov	rax, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR [rax]
	subsd	xmm0, QWORD PTR -64[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR -64[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	jmp	.L25
.L29:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 16
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -16[rbp]
	jnb	.L36
	jmp	.L28
.L36:
	sub	QWORD PTR -56[rbp], 16
.L25:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	ja	.L29
.L28:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L30
.L34:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, xmm1
	jnb	.L37
	jmp	.L33
.L37:
	add	QWORD PTR -24[rbp], 16
.L30:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L34
.L33:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -56[rbp]
	sar	rax, 4
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	middle_range, .-middle_range
	.globl	minimal_distance_naive
	.type	minimal_distance_naive, @function
minimal_distance_naive:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jg	.L39
	mov	rax, QWORD PTR .LC2[rip]
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -40[rbp]
	cmp	rax, 16
	jne	.L41
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	distance
	movq	rax, xmm0
	jmp	.L40
.L41:
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L42
.L47:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L43
.L46:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	je	.L44
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	distance
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L44
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
.L44:
	add	QWORD PTR -24[rbp], 16
.L43:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jbe	.L46
	add	QWORD PTR -32[rbp], 16
.L42:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jbe	.L47
	mov	rax, QWORD PTR -16[rbp]
.L40:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	minimal_distance_naive, .-minimal_distance_naive
	.globl	distance
	.type	distance, @function
distance:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR 8[rax]
	movapd	xmm2, xmm0
	subsd	xmm2, xmm1
	movq	rax, xmm2
	movsd	xmm0, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm3, xmm0
	addsd	xmm3, QWORD PTR -24[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	distance, .-distance
	.globl	sort_by_x
	.type	sort_by_x, @function
sort_by_x:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -8[rbp]
	sar	rax, 4
	add	rax, 1
	mov	rsi, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, compare_by_x[rip]
	mov	edx, 16
	mov	rdi, rax
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sort_by_x, .-sort_by_x
	.globl	compare_by_x
	.type	compare_by_x, @function
compare_by_x:
.LFB12:
	.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 -8[rbp]
	movsd	xmm1, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, xmm1
	jbe	.L60
	mov	eax, -1
	jmp	.L55
.L60:
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR [rax]
	ucomisd	xmm0, xmm1
	jp	.L56
	ucomisd	xmm0, xmm1
	jne	.L56
	mov	eax, 0
	jmp	.L55
.L56:
	mov	eax, 1
.L55:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	compare_by_x, .-compare_by_x
	.globl	sort_by_y
	.type	sort_by_y, @function
sort_by_y:
.LFB13:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -8[rbp]
	sar	rax, 4
	add	rax, 1
	mov	rsi, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, compare_by_y[rip]
	mov	edx, 16
	mov	rdi, rax
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	sort_by_y, .-sort_by_y
	.globl	compare_by_y
	.type	compare_by_y, @function
compare_by_y:
.LFB14:
	.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 -8[rbp]
	movsd	xmm1, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	comisd	xmm0, xmm1
	jbe	.L70
	mov	eax, -1
	jmp	.L65
.L70:
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR 8[rax]
	ucomisd	xmm0, xmm1
	jp	.L66
	ucomisd	xmm0, xmm1
	jne	.L66
	mov	eax, 0
	jmp	.L65
.L66:
	mov	eax, 1
.L65:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	compare_by_y, .-compare_by_y
	.section	.rodata
.LC4:
	.string	"%lf %lf"
	.text
	.globl	scan
	.type	scan, @function
scan:
.LFB15:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L72
.L73:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	QWORD PTR -8[rbp], 16
.L72:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jbe	.L73
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	scan, .-scan
	.section	.rodata
.LC5:
	.string	"(%.0lf, %.0lf)\n"
	.text
	.globl	print
	.type	print, @function
print:
.LFB16:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L75
.L76:
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 2
	call	printf@PLT
	add	QWORD PTR -8[rbp], 16
.L75:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jbe	.L76
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print, .-print
	.section	.rodata
	.align 8
.LC2:
	.long	-2097152
	.long	1106247679
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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	"164917.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lu\000"
	.align	2
.LC1:
	.ascii	"%.6lf\012\000"
	.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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L4+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	scan
	ldr	r3, [fp, #-28]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	sort_by_x
	ldr	r3, [fp, #-28]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	minimal_distance
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L4+8
	bl	printf
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	minimal_distance
	.syntax unified
	.arm
	.fpu softvfp
	.type	minimal_distance, %function
minimal_distance:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	cmp	r3, #0
	bgt	.L7
	ldr	r2, .L26+4
	ldr	r3, .L26+8
	b	.L21
.L7:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	cmp	r3, #16
	bne	.L9
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	distance
	mov	r2, r0
	mov	r3, r1
	b	.L21
.L9:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	asr	r3, r3, #4
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-72]
	bl	minimal_distance
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, [fp, #-56]
	add	r3, r3, #16
	ldr	r1, [fp, #-76]
	mov	r0, r3
	bl	minimal_distance
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	b	.L12
.L25:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
.L12:
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #68
	str	r3, [sp, #8]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	middle_range
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	bls	.L13
	ldr	r3, [fp, #-68]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	sort_by_y
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
	b	.L14
.L20:
	ldr	r3, [fp, #-64]
	add	r3, r3, #16
	str	r3, [fp, #-60]
	b	.L15
.L19:
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	distance
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L16:
	ldr	r3, [fp, #-60]
	add	r3, r3, #16
	str	r3, [fp, #-60]
.L15:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bhi	.L18
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	cmp	r3, #112
	ble	.L19
.L18:
	ldr	r3, [fp, #-64]
	add	r3, r3, #16
	str	r3, [fp, #-64]
.L14:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcc	.L20
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	sort_by_x
.L13:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
.L21:
	ldr	r1, .L26
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	-2097152
	.word	1106247679
	.size	minimal_distance, .-minimal_distance
	.global	__aeabi_dsub
	.global	__aeabi_dadd
	.global	__aeabi_dcmple
	.global	__aeabi_dcmpge
	.align	2
	.global	middle_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	middle_range, %function
middle_range:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldmia	r3, {r0-r1}
	ldmib	fp, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L29
.L33:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	b	.L32
.L40:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #16
	str	r3, [fp, #-40]
.L29:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bhi	.L33
.L32:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	b	.L34
.L38:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	b	.L37
.L41:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	str	r3, [fp, #-24]
.L34:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bcc	.L38
.L37:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	asr	r3, r3, #4
	add	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #12]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	middle_range, .-middle_range
	.align	2
	.global	minimal_distance_naive
	.syntax unified
	.arm
	.fpu softvfp
	.type	minimal_distance_naive, %function
minimal_distance_naive:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	cmp	r3, #0
	bgt	.L43
	ldr	r2, .L53
	ldr	r3, .L53+4
	b	.L44
.L43:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	cmp	r3, #16
	bne	.L45
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	distance
	mov	r2, r0
	mov	r3, r1
	b	.L44
.L45:
	ldr	r2, .L53
	ldr	r3, .L53+4
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	b	.L46
.L51:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L47
.L50:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L48
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	distance
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
.L48:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	str	r3, [fp, #-24]
.L47:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bls	.L50
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	str	r3, [fp, #-28]
.L46:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bls	.L51
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
.L44:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	-2097152
	.word	1106247679
	.size	minimal_distance_naive, .-minimal_distance_naive
	.align	2
	.global	distance
	.syntax unified
	.arm
	.fpu softvfp
	.type	distance, %function
distance:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	distance, .-distance
	.align	2
	.global	sort_by_x
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_by_x, %function
sort_by_x:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	asr	r3, r3, #4
	add	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L58
	mov	r2, #16
	ldr	r0, [fp, #-8]
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	compare_by_x
	.size	sort_by_x, .-sort_by_x
	.global	__aeabi_dcmpeq
	.align	2
	.global	compare_by_x
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_by_x, %function
compare_by_x:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-12]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	mvn	r3, #0
	b	.L63
.L68:
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-12]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	mov	r3, #0
	b	.L63
.L69:
	mov	r3, #1
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	compare_by_x, .-compare_by_x
	.align	2
	.global	sort_by_y
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_by_y, %function
sort_by_y:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	asr	r3, r3, #4
	add	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L71
	mov	r2, #16
	ldr	r0, [fp, #-8]
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	compare_by_y
	.size	sort_by_y, .-sort_by_y
	.align	2
	.global	compare_by_y
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_by_y, %function
compare_by_y:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	mvn	r3, #0
	b	.L76
.L81:
	ldr	r3, [fp, #-8]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	mov	r3, #0
	b	.L76
.L82:
	mov	r3, #1
.L76:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	compare_by_y, .-compare_by_y
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%lf %lf\000"
	.text
	.align	2
	.global	scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan, %function
scan:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L84
.L85:
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r2, r3
	ldr	r0, .L86
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	str	r3, [fp, #-8]
.L84:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L85
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC4
	.size	scan, .-scan
	.section	.rodata
	.align	2
.LC5:
	.ascii	"(%.0lf, %.0lf)\012\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L89
.L90:
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L91
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	str	r3, [fp, #-8]
.L89:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L90
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC5
	.size	print, .-print
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
