	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_pack                     ## -- Begin function fetch_pack
	.p2align	4, 0x90
_fetch_pack:                            ## @fetch_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_OID_ARRAY_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fetch_pack_setup
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_remove_duplicates_in_refs
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rbx
	cmpq	$0, 24(%r13)
	je	LBB0_5
## %bb.3:
	cmpl	$0, 20(%r13)
	jne	LBB0_5
## %bb.4:
	leaq	20(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_parse_list_objects_filter
LBB0_5:
	movl	24(%rbp), %r14d
	movq	_protocol_v2@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testq	%r12, %r12
	jne	LBB0_8
## %bb.6:
	cmpl	%r14d, %eax
	je	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_packet_flush
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	movl	(%r15), %eax
LBB0_8:
	cmpl	%r14d, %eax
	jne	LBB0_12
## %bb.9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_BUG
LBB0_11:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-88(%rbp), %r9
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%rbx, %r15
	movq	%rbx, %rcx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	pushq	16(%rbp)
	pushq	%r14
	callq	_do_fetch_pack_v2
	jmp	LBB0_13
LBB0_12:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_prepare_shallow_info
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%rbx, %r15
	movq	%rbx, %rcx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movq	%r14, %r9
	pushq	16(%rbp)
	callq	_do_fetch_pack
LBB0_13:
	addq	$16, %rsp
	movq	%rax, %r14
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reprepare_packed_git
	cmpl	$0, 16(%r13)
	je	LBB0_14
LBB0_17:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_update_shallow
LBB0_18:
	leaq	-48(%rbp), %rdi
	callq	_clear_shallow_info
	leaq	-88(%rbp), %rdi
	callq	_oid_array_clear
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpq	$0, 8(%r13)
	je	LBB0_17
## %bb.15:
	movq	%r14, -96(%rbp)
	movq	_alternate_shallow_file@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	$1, -80(%rbp)
	movq	_iterate_ref_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	_check_connected
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movq	%r14, %rdi
	callq	_free_refs
	movq	_shallow_lock@GOTPCREL(%rip), %rdi
	callq	_rollback_lock_file
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_16:
	movl	$1, (%r13)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_OID_ARRAY_INIT,8,3             ## @OID_ARRAY_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blob:none"

	.comm	_protocol_v2,4,2                ## @protocol_v2
L_.str.1:                               ## @.str.1
	.asciz	"no matching remote head"

L_.str.2:                               ## @.str.2
	.asciz	"Protocol V2 does not provide shallows at this point in the fetch"

	.comm	_the_repository,4,2             ## @the_repository
	.comm	_CHECK_CONNECTED_INIT,8,2       ## @CHECK_CONNECTED_INIT
	.comm	_alternate_shallow_file,4,2     ## @alternate_shallow_file
	.comm	_iterate_ref_map,4,2            ## @iterate_ref_map
L_.str.3:                               ## @.str.3
	.asciz	"remote did not send all necessary objects"

	.comm	_shallow_lock,4,2               ## @shallow_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_pack                     ; -- Begin function fetch_pack
	.p2align	2
_fetch_pack:                            ; @fetch_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x26, x7
	mov	x22, x6
	mov	x25, x5
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _OID_ARRAY_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OID_ARRAY_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	bl	_fetch_pack_setup
	cbz	w21, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_remove_duplicates_in_refs
	mov	x21, x0
LBB0_2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	ldr	w8, [x0, #20]!
	cbnz	w8, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_parse_list_objects_filter
LBB0_5:
Lloh5:
	adrp	x27, _protocol_v2@GOTPAGE
Lloh6:
	ldr	x27, [x27, _protocol_v2@GOTPAGEOFF]
	ldr	w8, [x27]
	cbnz	x23, LBB0_8
; %bb.6:
	cmp	w8, w26
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x24, #4]
	bl	_packet_flush
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
	ldr	w8, [x27]
LBB0_8:
	cmp	w8, w26
	b.ne	LBB0_12
; %bb.9:
	ldr	x8, [x25]
	cbz	x8, LBB0_11
; %bb.10:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BUG
LBB0_11:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x5, sp, #16
	add	x6, sp, #24
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	mov	x4, x21
	mov	x7, x22
	bl	_do_fetch_pack_v2
	b	LBB0_13
LBB0_12:
	add	x0, sp, #24
	mov	x1, x25
	bl	_prepare_shallow_info
	add	x5, sp, #24
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	mov	x4, x21
	mov	x6, x22
	bl	_do_fetch_pack
LBB0_13:
	mov	x22, x0
Lloh11:
	adrp	x8, _the_repository@GOTPAGE
Lloh12:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_reprepare_packed_git
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_16
LBB0_14:
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_update_shallow
LBB0_15:
	add	x0, sp, #24
	bl	_clear_shallow_info
	add	x0, sp, #16
	bl	_oid_array_clear
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.17:
	str	x22, [sp]
Lloh14:
	adrp	x8, _alternate_shallow_file@GOTPAGE
Lloh15:
	ldr	x8, [x8, _alternate_shallow_file@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w23, #1
	stp	w23, w8, [sp, #8]
Lloh17:
	adrp	x8, _iterate_ref_map@GOTPAGE
Lloh18:
	ldr	x8, [x8, _iterate_ref_map@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, sp
	add	x2, sp, #8
	bl	_check_connected
	cbz	x0, LBB0_19
; %bb.18:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_error
	mov	x0, x22
	bl	_free_refs
Lloh22:
	adrp	x0, _shallow_lock@GOTPAGE
Lloh23:
	ldr	x0, [x0, _shallow_lock@GOTPAGEOFF]
	bl	_rollback_lock_file
	mov	x22, #0
	b	LBB0_15
LBB0_19:
	str	w23, [x20]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OID_ARRAY_INIT,8,3             ; @OID_ARRAY_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blob:none"

	.comm	_protocol_v2,4,2                ; @protocol_v2
l_.str.1:                               ; @.str.1
	.asciz	"no matching remote head"

l_.str.2:                               ; @.str.2
	.asciz	"Protocol V2 does not provide shallows at this point in the fetch"

	.comm	_the_repository,4,2             ; @the_repository
	.comm	_CHECK_CONNECTED_INIT,8,2       ; @CHECK_CONNECTED_INIT
	.comm	_alternate_shallow_file,4,2     ; @alternate_shallow_file
	.comm	_iterate_ref_map,4,2            ; @iterate_ref_map
l_.str.3:                               ; @.str.3
	.asciz	"remote did not send all necessary objects"

	.comm	_shallow_lock,4,2               ; @shallow_lock
.subsections_via_symbols
