	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_store
_get_store:                             ## @get_store
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	-56(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdx
	leaq	-48(%rbp), %rdi
	callq	_strbuf_git_path_submodule
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	movl	-48(%rbp), %edi
	callq	_add_to_alternates_memory
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	-56(%rbp), %rdi
	callq	_get_submodule_ref_store
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_10
LBB0_8:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_main_ref_store
	jmp	LBB0_9
LBB0_12:
	movq	(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	xorl	%edi, %edi
	callq	_get_worktrees
	movq	%rax, %rbx
	movq	(%rax), %r13
	movq	-56(%rbp), %r12
	testq	%r13, %r13
	je	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	%r12, %rdi
	testq	%rsi, %rsi
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	L_.str.1(%rip), %rsi
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rbx), %r13
	addq	$8, %rbx
	testq	%r13, %r13
	jne	LBB0_14
LBB0_18:
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_die
	movq	(%rbx), %r13
LBB0_19:
	movq	%r13, %rdi
	callq	_get_worktree_ref_store
LBB0_9:
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	addq	$8, %r15
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	(%r15), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ref store required"

L_.str.1:                               ## @.str.1
	.asciz	"main"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.2:                               ## @.str.2
	.asciz	"submodule:"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
L_.str.3:                               ## @.str.3
	.asciz	"objects/"

L_.str.4:                               ## @.str.4
	.asciz	"strbuf_git_path_submodule failed: %d"

L_.str.5:                               ## @.str.5
	.asciz	"worktree:"

L_.str.6:                               ## @.str.6
	.asciz	"no such worktree: %s"

L_.str.7:                               ## @.str.7
	.asciz	"unknown backend %s"

L_.str.8:                               ## @.str.8
	.asciz	"no ref store"

	.no_dead_strip	_get_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_store
_get_store:                             ; @get_store
	.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, x1
	mov	x19, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_6
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	bl	_skip_prefix
	cbz	x0, LBB0_11
; %bb.3:
Lloh4:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x1, [sp, #24]
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_git_path_submodule
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.4:
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
LBB0_5:
	ldr	w0, [sp, #16]
	bl	_add_to_alternates_memory
	add	x0, sp, #16
	bl	_strbuf_release
	ldr	x0, [sp, #24]
	bl	_get_submodule_ref_store
	str	x0, [x20]
	cbnz	x0, LBB0_10
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_die
	ldr	x0, [x20]
	cbnz	x0, LBB0_10
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _the_repository@GOTPAGE
Lloh14:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_get_main_ref_store
	str	x0, [x20]
	cbnz	x0, LBB0_10
LBB0_9:
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_die
LBB0_10:
	add	x0, x19, #8
	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_11:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #24
	bl	_skip_prefix
	cbz	x0, LBB0_20
; %bb.12:
	mov	w0, #0
	bl	_get_worktrees
	mov	x21, x0
	ldr	x23, [x0]
	ldr	x22, [sp, #24]
	cbz	x23, LBB0_18
; %bb.13:
Lloh20:
	adrp	x24, l_.str.1@PAGE
Lloh21:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	cbz	x1, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_strcmp
	cbnz	w0, LBB0_17
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x23, [x21, #8]!
	cbnz	x23, LBB0_14
LBB0_18:
	str	x22, [sp]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_die
	ldr	x23, [x21]
LBB0_19:
	mov	x0, x23
	bl	_get_worktree_ref_store
	str	x0, [x20]
	cbnz	x0, LBB0_10
	b	LBB0_9
LBB0_20:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ref store required"

l_.str.1:                               ; @.str.1
	.asciz	"main"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.2:                               ; @.str.2
	.asciz	"submodule:"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
l_.str.3:                               ; @.str.3
	.asciz	"objects/"

l_.str.4:                               ; @.str.4
	.asciz	"strbuf_git_path_submodule failed: %d"

l_.str.5:                               ; @.str.5
	.asciz	"worktree:"

l_.str.6:                               ; @.str.6
	.asciz	"no such worktree: %s"

l_.str.7:                               ; @.str.7
	.asciz	"unknown backend %s"

l_.str.8:                               ; @.str.8
	.asciz	"no ref store"

	.no_dead_strip	_get_store
.subsections_via_symbols
