	.file	"extr_flexfilelayout.c_ff_layout_sort_mirrors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ff_layout_sort_mirrors, @function
ff_layout_sort_mirrors:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	cmp	edx, 1
	jle	.L12
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, 8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	add	r12d, 1
	cmp	r12d, edx
	jge	.L3
	lea	r15, -8[r13]
	mov	rbp, r13
	mov	ebx, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, 1
	add	rbp, 8
	cmp	edx, ebx
	jle	.L3
.L5:
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+r15]
	mov	rsi, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR [rsi]
	cmp	QWORD PTR [rdi], rax
	jge	.L4
	call	swap@PLT
	mov	edx, DWORD PTR [r14]
	add	ebx, 1
	add	rbp, 8
	cmp	edx, ebx
	jg	.L5
.L3:
	lea	eax, -1[rdx]
	add	r13, 8
	cmp	eax, r12d
	jg	.L2
	add	rsp, 8
	.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
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	ff_layout_sort_mirrors, .-ff_layout_sort_mirrors
	.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_flexfilelayout.c_ff_layout_sort_mirrors.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_layout_sort_mirrors, %function
ff_layout_sort_mirrors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	cmp	ip, #1
	bxle	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, #0
.L2:
	add	r7, r7, #1
	cmp	r7, ip
	bge	.L3
	lsl	r6, r7, #2
	mov	r4, r7
	sub	r6, r6, #4
	b	.L5
.L4:
	cmp	ip, r4
	ble	.L3
.L5:
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r6]
	ldr	r1, [r3, r4, lsl #2]
	ldr	r2, [r0]
	ldr	r3, [r1]
	add	r4, r4, #1
	cmp	r2, r3
	bge	.L4
	bl	swap
	ldr	ip, [r5]
	cmp	ip, r4
	bgt	.L5
.L3:
	sub	r3, ip, #1
	cmp	r3, r7
	bgt	.L2
	pop	{r4, r5, r6, r7, r8, pc}
	.size	ff_layout_sort_mirrors, .-ff_layout_sort_mirrors
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
