	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_pack
_prepare_pack:                          ## @prepare_pack
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, -64(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rsi
	callq	_strip_suffix_mem
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rsi
	callq	_midx_contains_pack
	testq	%rax, %rax
	jne	LBB0_11
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	leaq	L_.str.1(%rip), %rbx
	leaq	-72(%rbp), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strip_suffix
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdx
	cmpq	-64(%rbp), %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.20:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_add_packed_git
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	8(%r14), %rdi
	movq	%rax, %rsi
	callq	_install_packed_git
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ends_with
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ends_with
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ends_with
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ends_with
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ends_with
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_string_list_append
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_PACKDIR_FILE_GARBAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_report_garbage
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".idx"

L_.str.1:                               ## @.str.1
	.asciz	".pack"

L_.str.2:                               ## @.str.2
	.asciz	"multi-pack-index"

L_.str.3:                               ## @.str.3
	.asciz	".bitmap"

L_.str.4:                               ## @.str.4
	.asciz	".keep"

L_.str.5:                               ## @.str.5
	.asciz	".promisor"

	.comm	_PACKDIR_FILE_GARBAGE,4,2       ## @PACKDIR_FILE_GARBAGE
	.no_dead_strip	_prepare_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_pack
_prepare_pack:                          ; @prepare_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	x1, [sp, #8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_strip_suffix_mem
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x21
	bl	_midx_contains_pack
	cbnz	x0, LBB0_11
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x24, [x8]
	cbz	x24, LBB0_9
; %bb.4:
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x2, sp
	mov	x1, x23
	bl	_strip_suffix
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x2, x8, [sp]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_memcmp
	cbnz	w0, LBB0_5
	b	LBB0_11
LBB0_9:
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_add_packed_git
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, x0
	ldr	x0, [x20, #8]
	bl	_install_packed_git
LBB0_11:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.12:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ends_with
	cbnz	x0, LBB0_17
; %bb.13:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ends_with
	cbnz	x0, LBB0_17
; %bb.14:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_ends_with
	cbnz	x0, LBB0_17
; %bb.15:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_ends_with
	cbnz	x0, LBB0_17
; %bb.16:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_ends_with
	cbz	x0, LBB0_19
LBB0_17:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_string_list_append
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
Lloh16:
	adrp	x8, _PACKDIR_FILE_GARBAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PACKDIR_FILE_GARBAGE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_report_garbage
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".idx"

l_.str.1:                               ; @.str.1
	.asciz	".pack"

l_.str.2:                               ; @.str.2
	.asciz	"multi-pack-index"

l_.str.3:                               ; @.str.3
	.asciz	".bitmap"

l_.str.4:                               ; @.str.4
	.asciz	".keep"

l_.str.5:                               ; @.str.5
	.asciz	".promisor"

	.comm	_PACKDIR_FILE_GARBAGE,4,2       ; @PACKDIR_FILE_GARBAGE
	.no_dead_strip	_prepare_pack
.subsections_via_symbols
