	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_fetch_pack
_http_fetch_pack:                       ## @http_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_fetch_indices
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_find_sha1_pack
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r12
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rdi
	callq	_hash_to_hex
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_hash_to_hex
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_4:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_new_http_pack_request
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r15
	movq	%r13, 16(%rax)
	movq	8(%rax), %rdi
	leaq	-48(%rbp), %rax
	movq	%rax, (%rdi)
	callq	_start_active_slot
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	8(%r15), %rdi
	callq	_run_active_slot
	movq	-48(%rbp), %rax
	movq	_CURLE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	movq	%r15, %rdi
	callq	_finish_http_pack_request
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_release_http_pack_request
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_10
LBB0_7:
	movl	(%r15), %esi
	movq	_curl_errorstr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Getting pack %s\n"

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

	.comm	_CURLE_OK,8,3                   ## @CURLE_OK
L_.str.2:                               ## @.str.2
	.asciz	"Unable to get pack file %s\n%s"

	.comm	_curl_errorstr,8,3              ## @curl_errorstr
L_.str.3:                               ## @.str.3
	.asciz	"Unable to start request"

	.no_dead_strip	_http_fetch_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_fetch_pack
_http_fetch_pack:                       ; @http_fetch_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x19, x1
	mov	x22, x0
	bl	_fetch_indices
	cbz	x0, LBB0_3
LBB0_1:
	mov	w19, #-1
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_find_sha1_pack
	cbz	x0, LBB0_1
; %bb.4:
	mov	x21, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x23, _stderr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w22, [x23]
	ldr	x0, [x21]
	bl	_hash_to_hex
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fprintf
	ldr	w22, [x23]
	mov	x0, x20
	bl	_hash_to_hex
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_6:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_new_http_pack_request
	cbz	x0, LBB0_1
; %bb.7:
	mov	x20, x0
	str	x19, [x0, #16]
	ldr	x0, [x0, #8]
	add	x8, sp, #24
	str	x8, [x0]
	bl	_start_active_slot
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x20, #8]
	bl	_run_active_slot
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, _CURLE_OK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CURLE_OK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_finish_http_pack_request
	mov	x19, x0
	mov	x0, x20
	bl	_release_http_pack_request
	b	LBB0_2
LBB0_10:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x8, _curl_errorstr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _curl_errorstr@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w9, [x20]
	stp	x9, x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	_error
	b	LBB0_1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Getting pack %s\n"

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

	.comm	_CURLE_OK,8,3                   ; @CURLE_OK
l_.str.2:                               ; @.str.2
	.asciz	"Unable to get pack file %s\n%s"

	.comm	_curl_errorstr,8,3              ; @curl_errorstr
l_.str.3:                               ; @.str.3
	.asciz	"Unable to start request"

	.no_dead_strip	_http_fetch_pack
.subsections_via_symbols
