	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_snapshot
_sort_snapshot:                         ## @sort_snapshot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	cmpq	%r14, %rbx
	je	LBB0_20
## %bb.1:
	movq	%r14, %rax
	subq	%rbx, %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	shrq	$6, %rdx
	leaq	20(%rdx), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movq	%r14, %rax
	subq	%rbx, %rax
	jbe	LBB0_19
## %bb.2:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %r13
	cmpq	%r14, %rbx
	jae	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	%r14, %r12
                                        ## kill: def $r14d killed $r14d killed $r14
	subl	%r15d, %r14d
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	%r14d, %edx
	callq	_memchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	subq	%r15, %rax
	movq	_the_hash_algo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx), %rcx
	addq	$2, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_die_invalid_line
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r12, %r14
	cmpq	%r12, %rbx
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$94, (%rbx)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edx
	subl	%ebx, %edx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_memchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	xorl	%edi, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movq	%r15, (%r13)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$2, %r12
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-16(%r13), %rdi
	movq	%r13, %rsi
	callq	_cmp_packed_ref_records
	shrq	$63, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_19
## %bb.18:
	movq	_cmp_packed_ref_records@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_QSORT
	movq	%r15, %rdi
	callq	_xmalloc
	movq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_clear_snapshot_buffer
	movq	%r14, (%rbx)
	movq	%r14, 16(%rbx)
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
LBB0_19:
	xorl	%edi, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unterminated line found in packed-refs"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
L_.str.1:                               ## @.str.1
	.asciz	"unterminated peeled line found in packed-refs"

	.no_dead_strip	_sort_snapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_snapshot
_sort_snapshot:                         ; @sort_snapshot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x25, x28, [x0]
	cmp	x25, x28
	b.eq	LBB0_16
; %bb.1:
	mov	x19, x0
	subs	x8, x28, x25
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	umulh	x8, x8, x9
	lsr	x8, x8, #6
	add	x1, x8, #20
	mov	x0, #0
	mov	x2, #0
	bl	_ALLOC_GROW
	subs	x8, x28, x25
	b.ls	LBB0_19
; %bb.2:
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, #0
	mov	x21, #0
	mov	w20, #1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _the_hash_algo@GOTPAGE
Lloh3:
	ldr	x24, [x24, _the_hash_algo@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #16
	cmp	x25, x28
	b.hs	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x25
	sub	w25, w28, w26
	mov	x0, x26
	mov	w1, #10
	mov	x2, x25
	bl	_memchr
	mov	x27, x0
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_BUG
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldrsw	x8, [x8]
	add	x8, x8, #2
	sub	x9, x27, x26
	cmp	x9, x8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	mov	x1, x26
	mov	x2, x25
	bl	_die_invalid_line
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x27, #1
	cmp	x25, x28
	b.hs	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x25]
	cmp	w8, #94
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w2, w28, w25
	mov	x0, x25
	mov	w1, #10
	bl	_memchr
	mov	x25, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	mov	x0, #0
	mov	x1, x21
	mov	x2, #0
	bl	_ALLOC_GROW
	str	x26, [x22]
	cbz	w20, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, #2
	b.lo	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x22, #16
	mov	x1, x22
	bl	_cmp_packed_ref_records
	lsr	x20, x0, #63
	b	LBB0_3
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	cbnz	w20, LBB0_19
; %bb.18:
Lloh6:
	adrp	x2, _cmp_packed_ref_records@GOTPAGE
Lloh7:
	ldr	x2, [x2, _cmp_packed_ref_records@GOTPAGEOFF]
	mov	x0, #0
	mov	x1, x21
	bl	_QSORT
	mov	x0, x22
	bl	_xmalloc
	mov	x21, x0
	mov	x0, x19
	bl	_clear_snapshot_buffer
	add	x8, x21, x22
	str	x21, [x19]
	stp	x8, x21, [x19, #8]
LBB0_19:
	mov	x0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_free
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unterminated line found in packed-refs"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
l_.str.1:                               ; @.str.1
	.asciz	"unterminated peeled line found in packed-refs"

	.no_dead_strip	_sort_snapshot
.subsections_via_symbols
