	.file	"extr_mc-proxy.c_sort_points.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sort_points, @function
sort_points:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdi
	mov	DWORD PTR 28[rsp], esi
	mov	rdx, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rdx
	xor	edx, edx
	test	esi, esi
	jle	.L1
	cmp	esi, 1
	je	.L14
	mov	ebp, DWORD PTR 28[rsp]
	mov	rdx, QWORD PTR 8[rsp]
	xor	ebx, ebx
	lea	r12, 36[rsp]
	mov	eax, ebp
	sar	eax
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR 36[rsp], eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r14, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	DWORD PTR 24[rsp], ebx
	mov	DWORD PTR 20[rsp], ebx
	lea	r15, [r14+rbx*4]
	mov	rdi, r15
	call	cmp_points@PLT
	test	rax, rax
	js	.L6
	movsx	rax, ebp
	lea	r14, [r14+rax*4]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	sub	ebp, 1
.L7:
	mov	rdi, r14
	mov	rsi, r12
	mov	r13, r14
	sub	r14, 4
	call	cmp_points@PLT
	test	rax, rax
	jg	.L8
	cmp	ebp, ebx
	jge	.L15
.L9:
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, r15
	sub	esi, DWORD PTR 20[rsp]
	call	sort_points
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, ebp
	call	sort_points
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 24[rsp]
	sub	ebp, 1
	mov	edx, DWORD PTR 0[r13]
	mov	eax, DWORD PTR [rdi+rbx*4]
	add	ecx, 1
	mov	DWORD PTR [rdi+rbx*4], edx
	mov	DWORD PTR 20[rsp], ecx
	mov	DWORD PTR 0[r13], eax
	cmp	ebp, ecx
	jl	.L17
.L6:
	add	rbx, 1
	jmp	.L5
.L14:
	lea	rsi, 4[rdi]
	mov	rbx, rdi
	call	cmp_points@PLT
	test	rax, rax
	jle	.L1
	mov	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[rbx], eax
	mov	DWORD PTR [rbx], edx
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
.L17:
	movsx	rax, ecx
	lea	r15, [rdi+rax*4]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	sort_points, .-sort_points
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mc-proxy.c_sort_points.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_points, %function
sort_points:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L19
	sub	sp, sp, #8
	subs	r10, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ble	.L1
	cmp	r10, #1
	mov	r7, r0
	beq	.L16
	mov	r5, r10
	mov	r6, #0
	asr	r3, r10, #1
	ldr	r3, [r0, r3, lsl #2]
	str	r3, [sp]
.L5:
	add	r9, r7, r6, lsl #2
	mov	r0, r9
	mov	r1, sp
	bl	cmp_points
	cmp	r0, #0
	mov	r8, r6
	addge	r4, r7, r5, lsl #2
	addlt	r6, r6, #1
	bge	.L7
	b	.L5
.L8:
	sub	r5, r5, #1
.L7:
	mov	r0, r4
	mov	r1, sp
	bl	cmp_points
	cmp	r0, #0
	mov	r3, r4
	sub	r4, r4, #4
	bgt	.L8
	cmp	r6, r5
	ble	.L17
.L9:
	mov	r0, r9
	sub	r1, r10, r8
	bl	sort_points
	mov	r1, r5
	mov	r0, r7
	bl	sort_points
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r2, [r7, r6, lsl #2]
	ldr	r1, [r3]
	add	r8, r6, #1
	sub	r5, r5, #1
	cmp	r5, r8
	str	r1, [r7, r6, lsl #2]
	mov	r6, r8
	str	r2, [r3]
	bge	.L5
	add	r9, r7, r8, lsl #2
	b	.L9
.L16:
	add	r1, r0, #4
	bl	cmp_points
	cmp	r0, #0
	ldmgt	r7, {r2, r3}
	strgt	r2, [r7, #4]
	strgt	r3, [r7]
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	sort_points, .-sort_points
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
