	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function one_remote_ref
_one_remote_ref:                        ## @one_remote_ref
	.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, %r15
	callq	_alloc_ref
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	_repo@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_http_fetch_ref
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_1:
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.2:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_has_object_file
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_lookup_unknown_object
	movq	%rax, %r12
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_fprintf
	movq	%r12, %rdi
	callq	_add_fetch_request
LBB0_4:
	movq	_remote_refs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movq	%r14, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_repo,8,3                       ## @repo
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to fetch ref %s from %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"  fetch %s for %s\n"

	.comm	_remote_refs,8,3                ## @remote_refs
	.no_dead_strip	_one_remote_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function one_remote_ref
_one_remote_ref:                        ; @one_remote_ref
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_alloc_ref
	mov	x19, x0
Lloh0:
	adrp	x21, _repo@GOTPAGE
Lloh1:
	ldr	x21, [x21, _repo@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_http_fetch_ref
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	x3, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.3:
	add	x21, x19, #8
	mov	x0, x21
	bl	_has_object_file
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_lookup_unknown_object
	mov	x22, x0
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_oid_to_hex
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x3, x20
	bl	_fprintf
	mov	x0, x22
	bl	_add_fetch_request
LBB0_5:
Lloh12:
	adrp	x8, _remote_refs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _remote_refs@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	str	x19, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_repo,8,3                       ; @repo
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to fetch ref %s from %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"  fetch %s for %s\n"

	.comm	_remote_refs,8,3                ; @remote_refs
	.no_dead_strip	_one_remote_ref
.subsections_via_symbols
