	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_pack_index
_fetch_pack_index:                      ## @fetch_pack_index
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_http_is_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_hash_to_hex
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_2:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_end_url_with_slash
	movq	%r14, %rdi
	callq	_hash_to_hex
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_strbuf_addf
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_sha1_pack_index_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_strbuf_addf
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_http_get_file
	movq	_HTTP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	callq	_error
	movq	%rbx, %rdi
	callq	_FREE_AND_NULL
LBB0_4:
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_http_is_verbose,8,3            ## @http_is_verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Getting index for pack %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"objects/pack/pack-%s.idx"

L_.str.2:                               ## @.str.2
	.asciz	"%s.temp"

	.comm	_HTTP_OK,8,3                    ## @HTTP_OK
L_.str.3:                               ## @.str.3
	.asciz	"Unable to get pack index %s"

	.no_dead_strip	_fetch_pack_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_pack_index
_fetch_pack_index:                      ; @fetch_pack_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _http_is_verbose@GOTPAGE
Lloh4:
	ldr	x8, [x8, _http_is_verbose@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_hash_to_hex
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fprintf
LBB0_2:
	add	x0, sp, #8
	mov	x1, x20
	bl	_end_url_with_slash
	mov	x0, x19
	bl	_hash_to_hex
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	mov	x20, x0
	mov	x0, x19
	bl	_sha1_pack_index_name
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_http_get_file
Lloh15:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_error
	mov	x0, x19
	bl	_FREE_AND_NULL
LBB0_4:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_http_is_verbose,8,3            ; @http_is_verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Getting index for pack %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"objects/pack/pack-%s.idx"

l_.str.2:                               ; @.str.2
	.asciz	"%s.temp"

	.comm	_HTTP_OK,8,3                    ; @HTTP_OK
l_.str.3:                               ; @.str.3
	.asciz	"Unable to get pack index %s"

	.no_dead_strip	_fetch_pack_index
.subsections_via_symbols
