	.file	"extr_packed-backend.c_sort_snapshot.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unterminated line found in packed-refs"
	.align 8
.LC1:
	.string	"unterminated peeled line found in packed-refs"
	.text
	.p2align 4
	.type	sort_snapshot, @function
sort_snapshot:
.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, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rdi]
	mov	rbx, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rdi
	cmp	r14, rbx
	je	.L1
	movabs	rdx, -3689348814741910323
	mov	rax, rbx
	xor	edi, edi
	sub	rax, r14
	mov	QWORD PTR 8[rsp], rax
	mul	rdx
	shr	rdx, 6
	lea	rsi, 20[rdx]
	xor	edx, edx
	call	ALLOC_GROW@PLT
	cmp	r14, rbx
	jnb	.L11
	mov	r13d, 1
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	lea	r12, 1[r15]
	cmp	rbx, r12
	jbe	.L6
	cmp	BYTE PTR 1[r15], 94
	je	.L27
.L6:
	lea	r15, 1[rbp]
	xor	edi, edi
	xor	edx, edx
	mov	rsi, r15
	call	ALLOC_GROW@PLT
	mov	rdi, r15
	mov	rax, r12
	sal	rdi, 4
	sub	rax, r14
	lea	rsi, -16[rdi]
	mov	QWORD PTR -16[rdi], r14
	mov	DWORD PTR 8[rsi], eax
	test	r13d, r13d
	je	.L8
	cmp	r15, 1
	jbe	.L8
	sub	rdi, 32
	call	cmp_packed_ref_records@PLT
	test	rax, rax
	mov	eax, 0
	cmovns	r13d, eax
.L8:
	cmp	r12, rbx
	jnb	.L28
	mov	r14, r12
	mov	rbp, r15
.L9:
	mov	r12, rbx
	mov	esi, 10
	mov	rdi, r14
	sub	r12, r14
	mov	edx, r12d
	call	memchr@PLT
	mov	r15, rax
	test	rax, rax
	je	.L29
.L4:
	mov	rax, QWORD PTR the_hash_algo[rip]
	mov	rdx, r15
	sub	rdx, r14
	mov	eax, DWORD PTR [rax]
	add	eax, 2
	cdqe
	cmp	rdx, rax
	jge	.L5
	mov	rax, QWORD PTR [rsp]
	mov	edx, r12d
	mov	rsi, r14
	mov	rax, QWORD PTR 24[rax]
	mov	edi, DWORD PTR [rax]
	call	die_invalid_line@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC0[rip]
	call	BUG@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	test	r13d, r13d
	jne	.L11
	mov	rdx, QWORD PTR cmp_packed_ref_records@GOTPCREL[rip]
	mov	rsi, r15
	xor	edi, edi
	call	QSORT@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	xmalloc@PLT
	mov	r12, rax
	test	r15, r15
	je	.L12
	mov	r15, rax
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13, rbx
	mov	rdi, r15
	sal	r13, 4
	mov	edx, DWORD PTR 8[r13]
	mov	rsi, QWORD PTR 0[r13]
	call	memcpy@PLT
	movsx	rax, DWORD PTR 8[r13]
	add	r15, rax
	mov	rax, rbx
	add	rbx, 1
	cmp	rax, rbp
	jne	.L13
.L12:
	mov	rbx, QWORD PTR [rsp]
	mov	rdi, rbx
	call	clear_snapshot_buffer@PLT
	mov	QWORD PTR [rbx], r12
	mov	QWORD PTR 16[rbx], r12
	add	r12, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rbx], r12
.L11:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	edi, edi
	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
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	rdx, rbx
	mov	rdi, r12
	mov	esi, 10
	sub	rdx, r12
	call	memchr@PLT
	mov	r12, rax
	test	rax, rax
	je	.L30
.L7:
	add	r12, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.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
.L30:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	BUG@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sort_snapshot, .-sort_snapshot
	.comm	the_hash_algo,8,8
	.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_packed-backend.c_sort_snapshot.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unterminated line found in packed-refs\000"
	.align	2
.LC1:
	.ascii	"unterminated peeled line found in packed-refs\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_snapshot, %function
sort_snapshot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r0, {r4, r8}
	sub	sp, sp, #12
	cmp	r4, r8
	str	r0, [sp]
	beq	.L1
	mov	r2, #0
	ldr	r1, .L29
	sub	r10, r8, r4
	umull	r3, r1, r10, r1
	lsr	r1, r1, #6
	mov	r0, r2
	add	r1, r1, #20
	bl	ALLOC_GROW
	cmp	r4, r8
	str	r10, [sp, #4]
	bcs	.L11
	mov	r6, #0
	mov	r7, #1
	mov	r9, r6
	ldr	fp, .L29+4
	b	.L9
.L5:
	add	r10, r5, #1
	cmp	r8, r10
	bls	.L6
	ldrb	r2, [r5, #1]	@ zero_extendqisi2
	cmp	r2, #94
	beq	.L24
.L6:
	mov	r2, #0
	add	r5, r9, #1
	mov	r0, r2
	mov	r1, r5
	bl	ALLOC_GROW
	cmp	r7, #0
	cmpne	r5, #1
	sub	r2, r10, r4
	str	r4, [r6]
	str	r2, [r6, #4]
	bhi	.L25
	cmp	r10, r8
	add	r6, r6, #8
	bcs	.L26
.L14:
	mov	r9, r5
	mov	r4, r10
	sub	r10, r8, r10
.L9:
	mov	r2, r10
	mov	r1, #10
	mov	r0, r4
	bl	memchr
	subs	r5, r0, #0
	beq	.L27
.L4:
	ldr	r1, [fp]
	sub	r3, r5, r4
	ldr	r1, [r1]
	add	r1, r1, #1
	cmp	r1, r3
	blt	.L5
	ldr	r3, [sp]
	mov	r2, r10
	ldr	r3, [r3, #12]
	mov	r1, r4
	ldr	r0, [r3]
	bl	die_invalid_line
	b	.L5
.L25:
	mov	r1, r6
	sub	r0, r6, #8
	bl	cmp_packed_ref_records
	cmp	r0, #0
	movge	r7, #0
	cmp	r10, r8
	add	r6, r6, #8
	bcc	.L14
.L26:
	cmp	r7, #0
	bne	.L11
	mov	r1, r5
	ldr	r2, .L29+8
	mov	r0, r7
	bl	QSORT
	ldr	r0, [sp, #4]
	bl	xmalloc
	cmp	r5, #0
	mov	r5, r0
	beq	.L12
	mov	r3, r0
.L13:
	lsl	r4, r7, #3
	mov	r0, r3
	ldm	r4, {r1, r2}
	bl	memcpy
	ldr	r2, [r4, #4]
	cmp	r9, r7
	add	r3, r0, r2
	add	r7, r7, #1
	bne	.L13
.L12:
	ldr	r4, [sp]
	mov	r0, r4
	bl	clear_snapshot_buffer
	ldr	r3, [sp, #4]
	str	r5, [r4]
	add	r3, r5, r3
	str	r3, [r4, #4]
	str	r5, [r4, #8]
.L11:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	free
.L27:
	ldr	r0, .L29+12
	bl	BUG
	b	.L4
.L24:
	mov	r0, r10
	sub	r2, r8, r10
	mov	r1, #10
	bl	memchr
	subs	r10, r0, #0
	beq	.L28
.L7:
	add	r10, r10, #1
	b	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r0, .L29+16
	bl	BUG
	b	.L7
.L30:
	.align	2
.L29:
	.word	-858993459
	.word	the_hash_algo
	.word	cmp_packed_ref_records
	.word	.LC0
	.word	.LC1
	.size	sort_snapshot, .-sort_snapshot
	.comm	the_hash_algo,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
