	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_fetch_packed
_start_fetch_packed:                    ## @start_fetch_packed
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_request_queue_head@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	40(%rdi), %rax
	movl	(%rax), %edi
	movq	_repo@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	8(%rax), %esi
	callq	_find_sha1_pack
	movq	%rax, %rbx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.4:
	movl	(%rbx), %edi
	movq	%rax, %r12
	callq	_hash_to_hex
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %r15d
	movq	_repo@GOTPCREL(%rip), %r12
	movq	40(%r14), %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rax
	movl	12(%rax), %esi
	movq	%rbx, %rdi
	callq	_new_http_pack_request
	movq	%rax, %r15
	movq	(%r12), %rax
	testq	%r15, %r15
	je	LBB0_5
## %bb.7:
	addq	$8, %rax
	movq	%rax, 16(%r15)
	testq	%r13, %r13
	je	LBB0_13
## %bb.8:
	movq	_RUN_FETCH_PACKED@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r13), %r13
	testq	%r13, %r13
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	32(%r13), %edi
	movl	8(%r15), %esi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_release_http_pack_request
	jmp	LBB0_3
LBB0_1:
	movq	40(%r14), %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_2
LBB0_13:
	movq	_process_response@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rdi
	movl	%eax, 8(%rdi)
	movq	%r14, (%rdi)
	movq	%rdi, 16(%r14)
	movq	%r15, 8(%r14)
	movq	_RUN_FETCH_PACKED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	callq	_start_active_slot
	testl	%eax, %eax
	jne	LBB0_6
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rdi
	callq	_release_http_pack_request
LBB0_2:
	movq	(%r12), %rax
	movq	$0, (%rax)
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_release_request                ## TAILCALL
LBB0_5:
	movq	$0, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_request_queue_head,8,3         ## @request_queue_head
	.comm	_repo,8,3                       ## @repo
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to fetch %s, will not be able to update server info refs\n"

L_.str.1:                               ## @.str.1
	.asciz	"Fetching pack %s\n"

L_.str.2:                               ## @.str.2
	.asciz	" which contains %s\n"

	.comm	_RUN_FETCH_PACKED,8,3           ## @RUN_FETCH_PACKED
	.comm	_process_response,4,2           ## @process_response
L_.str.3:                               ## @.str.3
	.asciz	"Unable to start GET request\n"

	.no_dead_strip	_start_fetch_packed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_fetch_packed
_start_fetch_packed:                    ; @start_fetch_packed
	.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	x19, x0
Lloh0:
	adrp	x8, _request_queue_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _request_queue_head@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	x8, [x0, #40]
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _repo@GOTPAGE
Lloh4:
	ldr	x22, [x22, _repo@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	bl	_find_sha1_pack
Lloh5:
	adrp	x23, _stderr@GOTPAGE
Lloh6:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w21, [x23]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_hash_to_hex
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	ldr	w21, [x23]
	ldr	x0, [x19, #40]
	bl	_oid_to_hex
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fprintf
	ldr	x8, [x22]
	ldr	w1, [x8, #12]
	mov	x0, x20
	bl	_new_http_pack_request
	ldr	x8, [x22]
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	add	x8, x8, #8
	str	x8, [x0, #16]
Lloh11:
	adrp	x21, _RUN_FETCH_PACKED@GOTPAGE
Lloh12:
	ldr	x21, [x21, _RUN_FETCH_PACKED@GOTPAGEOFF]
	cbnz	x24, LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _process_response@GOTPAGE
Lloh14:
	ldr	x8, [x8, _process_response@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x0, [x20]
	str	w8, [x0, #8]
	str	x19, [x0]
	stp	x20, x0, [x19, #8]
	ldr	x8, [x21]
	str	x8, [x19]
	bl	_start_active_slot
	cbnz	w0, LBB0_13
; %bb.4:
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	x0, x20
	bl	_release_http_pack_request
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [x24, #24]
	cbz	x24, LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24, #32]
	ldr	w1, [x20, #8]
	bl	_strcmp
	cbnz	w0, LBB0_5
; %bb.8:
	mov	x0, x20
	bl	_release_http_pack_request
	b	LBB0_11
LBB0_9:
	ldr	x0, [x19, #40]
	bl	_oid_to_hex
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fprintf
LBB0_10:
	ldr	x8, [x22]
	str	xzr, [x8]
LBB0_11:
	mov	x0, x19
	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
	b	_release_request
LBB0_12:
	str	xzr, [x8]
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_request_queue_head,8,3         ; @request_queue_head
	.comm	_repo,8,3                       ; @repo
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to fetch %s, will not be able to update server info refs\n"

l_.str.1:                               ; @.str.1
	.asciz	"Fetching pack %s\n"

l_.str.2:                               ; @.str.2
	.asciz	" which contains %s\n"

	.comm	_RUN_FETCH_PACKED,8,3           ; @RUN_FETCH_PACKED
	.comm	_process_response,4,2           ; @process_response
l_.str.3:                               ; @.str.3
	.asciz	"Unable to start GET request\n"

	.no_dead_strip	_start_fetch_packed
.subsections_via_symbols
