	.file	"61528.c"
	.intel_syntax noprefix
	.text
	.globl	compare
	.type	compare, @function
compare:
.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]
	movsd	xmm0, QWORD PTR 16[rax]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR 16[rax]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L11
	mov	eax, 1
	jmp	.L8
.L11:
	movsd	xmm0, QWORD PTR -16[rbp]
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jp	.L5
	movsd	xmm0, QWORD PTR -16[rbp]
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jne	.L5
	mov	eax, 0
	jmp	.L8
.L5:
	mov	eax, -1
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.section	.rodata
.LC0:
	.string	"Usage: qsort_large <file>\n"
.LC1:
	.string	"r"
.LC3:
	.string	"%d"
	.align 8
.LC4:
	.string	"\nSorting %d vectors based on distance from the origin.\n\n"
.LC5:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, -1437696[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2384
	mov	DWORD PTR -1440052[rbp], edi
	mov	QWORD PTR -1440064[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1440028[rbp], 0
	cmp	DWORD PTR -1440052[rbp], 1
	jg	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -1440064[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1440024[rbp], rax
	jmp	.L14
.L16:
	mov	edx, DWORD PTR -1440044[rbp]
	mov	eax, DWORD PTR -1440028[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440016
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -1440040[rbp]
	mov	eax, DWORD PTR -1440028[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440012
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -1440036[rbp]
	mov	eax, DWORD PTR -1440028[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440008
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -1440044[rbp]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movq	rax, xmm3
	movsd	xmm0, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	QWORD PTR -1440072[rbp], xmm0
	mov	eax, DWORD PTR -1440040[rbp]
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, eax
	movq	rax, xmm4
	movsd	xmm0, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movapd	xmm2, xmm0
	addsd	xmm2, QWORD PTR -1440072[rbp]
	movsd	QWORD PTR -1440072[rbp], xmm2
	mov	eax, DWORD PTR -1440036[rbp]
	pxor	xmm6, xmm6
	cvtsi2sd	xmm6, eax
	movq	rax, xmm6
	movsd	xmm0, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -1440072[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rdx, xmm0
	mov	eax, DWORD PTR -1440028[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440000
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -1440028[rbp], 1
.L14:
	lea	rdx, -1440044[rbp]
	mov	rax, QWORD PTR -1440024[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L15
	lea	rdx, -1440040[rbp]
	mov	rax, QWORD PTR -1440024[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L15
	lea	rdx, -1440036[rbp]
	mov	rax, QWORD PTR -1440024[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L15
	cmp	DWORD PTR -1440028[rbp], 59999
	jle	.L16
.L15:
	mov	eax, DWORD PTR -1440028[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1440028[rbp]
	movsx	rsi, eax
	lea	rax, -1440016[rbp]
	lea	rcx, compare[rip]
	mov	edx, 24
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -1440032[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -1440032[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440008
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -1440032[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440012
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -1440032[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 3
	add	rax, rbp
	sub	rax, 1440016
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1440032[rbp], 1
.L17:
	mov	eax, DWORD PTR -1440032[rbp]
	cmp	eax, DWORD PTR -1440028[rbp]
	jl	.L18
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.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	"61528.c"
	.text
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmpeq
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	mov	r3, #1
	b	.L8
.L11:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
	b	.L8
.L12:
	mvn	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	compare, .-compare
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: qsort_large <file>\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\012Sorting %d vectors based on distance from the o"
	.ascii	"rigin.\012\012\000"
	.align	2
.LC4:
	.ascii	"%d %d %d\012\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 = 1440040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1425408
	sub	sp, sp, #14592
	sub	sp, sp, #40
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	str	r0, [r3, #-2340]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	str	r1, [r3, #-2344]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2320]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2340]
	cmp	r3, #1
	bgt	.L14
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L22+8
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L14:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2344]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r4, r3
	ldr	r1, .L22+12
	mov	r0, r2
	bl	fopen
	str	r0, [r4, #-2316]
	b	.L15
.L17:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-2336]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2320]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	sub	r3, r3, #2304
	sub	r3, r3, #8
	str	r1, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-2332]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2320]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	sub	r3, r3, #2304
	sub	r3, r3, #4
	str	r1, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-2328]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2320]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	sub	r3, r3, #2304
	str	r1, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2336]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2332]
	mov	r0, r3
	bl	__aeabi_i2d
	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	r4, r2
	mov	r5, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2328]
	mov	r0, r3
	bl	__aeabi_i2d
	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
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	ip, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2320]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	sub	r3, r3, #2288
	sub	r3, r3, #8
	stm	r3, {r0-r1}
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2320]
	add	r3, r3, #1
	str	r3, [r2, #-2320]
.L15:
	ldr	r3, .L22+16
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #1425408
	sub	r2, r2, #12
	sub	r2, r2, #12288
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, [r0, #-2316]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L16
	ldr	r3, .L22+24
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #1425408
	sub	r2, r2, #12
	sub	r2, r2, #12288
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, [r0, #-2316]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L16
	ldr	r3, .L22+28
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #1425408
	sub	r2, r2, #12
	sub	r2, r2, #12288
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, [r0, #-2316]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L16
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2320]
	ldr	r2, .L22+32
	cmp	r3, r2
	ble	.L17
.L16:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-2320]
	ldr	r0, .L22+36
	bl	printf
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r1, [r3, #-2320]
	ldr	r0, .L22+40
	sub	r3, fp, #12
	add	r0, r3, r0
	ldr	r3, .L22+44
	mov	r2, #24
	bl	qsort
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2324]
	b	.L18
.L19:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r1, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2324]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r3, r3, #2304
	sub	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r0, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2324]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r0, r3
	sub	r3, r3, #2304
	sub	r3, r3, #4
	ldr	r0, [r3]
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	ip, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r3, #-2324]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	sub	r3, r3, #2304
	ldr	r3, [r3]
	mov	r2, r0
	ldr	r0, .L22+48
	bl	printf
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r3, [r3, #-2324]
	add	r3, r3, #1
	str	r3, [r2, #-2324]
.L18:
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	mov	r2, r3
	sub	r3, fp, #1425408
	sub	r3, r3, #12
	sub	r3, r3, #12288
	ldr	r2, [r2, #-2324]
	ldr	r3, [r3, #-2320]
	cmp	r2, r3
	blt	.L19
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	-1440032
	.word	.LC2
	.word	-1440028
	.word	-1440024
	.word	59999
	.word	.LC3
	.word	-1440008
	.word	compare
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
