	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_with_import
_fetch_with_import:                     ## @fetch_with_import
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	callq	_get_helper
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_importer
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movl	%r14d, %r15d
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strbuf_addf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_sendline
	movq	%r14, %rdi
	callq	_strbuf_reset
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rax
	movl	(%r13), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rax), %rdx
	jmp	LBB0_7
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_write_constant
	leaq	-64(%rbp), %rdi
	callq	_finish_command
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_24
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_free
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	je	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rbx
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%rbx), %rsi
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	_apply_refspecs
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, %rdi
	callq	_xstrdup
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$24, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_read_ref
	testq	%rax, %rax
	jns	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_22
LBB0_24:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't run fast-import"

	.comm	_REF_STATUS_UPTODATE,4,2        ## @REF_STATUS_UPTODATE
L_.str.1:                               ## @.str.1
	.asciz	"import %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.asciz	"error while running fast-import"

L_.str.4:                               ## @.str.4
	.asciz	"could not read ref %s"

	.no_dead_strip	_fetch_with_import
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_with_import
_fetch_with_import:                     ; @fetch_with_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	bl	_get_helper
	add	x1, sp, #24
	mov	x0, x22
	bl	_get_importer
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_2:
	mov	w23, w21
Lloh5:
	adrp	x24, _REF_STATUS_UPTODATE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _REF_STATUS_UPTODATE@GOTPAGEOFF]
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.3:
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x25, x23
	mov	x26, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	mov	x1, x22
	bl	_strbuf_addf
	add	x1, sp, #16
	mov	x0, x20
	bl	_sendline
	add	x0, sp, #16
	bl	_strbuf_reset
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #8
	subs	x25, x25, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w9, [x8]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x8, #8]
	cbnz	x2, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x8, #16]
	b	LBB0_4
LBB0_9:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_write_constant
	add	x0, sp, #24
	bl	_finish_command
	cbz	x0, LBB0_11
; %bb.10:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die
LBB0_11:
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.12:
Lloh13:
	adrp	x21, l_.str.4@PAGE
Lloh14:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	bl	_free
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x19, x19, #8
	subs	x23, x23, #1
	b.eq	LBB0_23
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19]
	ldr	w8, [x25]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x1, [x25, #8]
	cbz	x1, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	bl	_apply_refspecs
	mov	x22, x0
	cbnz	x0, LBB0_21
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x1, [x25, #16]
	ldr	x8, [x20]
	cbnz	x8, LBB0_18
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x1
	bl	_xstrdup
	mov	x22, x0
	cbz	x0, LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x1, x25, #24
	mov	x0, x22
	bl	_read_ref
	tbz	x0, #63, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	__
	str	x22, [sp]
	bl	_die
	b	LBB0_13
LBB0_23:
	add	x0, sp, #16
	bl	_strbuf_release
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't run fast-import"

	.comm	_REF_STATUS_UPTODATE,4,2        ; @REF_STATUS_UPTODATE
l_.str.1:                               ; @.str.1
	.asciz	"import %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.asciz	"error while running fast-import"

l_.str.4:                               ; @.str.4
	.asciz	"could not read ref %s"

	.no_dead_strip	_fetch_with_import
.subsections_via_symbols
