	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_worktree_ref_store         ## -- Begin function get_worktree_ref_store
	.p2align	4, 0x90
_get_worktree_ref_store:                ## @get_worktree_ref_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.9:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_main_ref_store             ## TAILCALL
LBB0_1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	leaq	L_.str(%rip), %r14
	cmovneq	%rax, %r14
	movq	_worktree_ref_stores@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_lookup_ref_store_map
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_git_common_path
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_get_git_common_dir
LBB0_5:
	movq	_REF_STORE_ALL_CAPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ref_store_init
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	_worktree_ref_stores@GOTPCREL(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_register_ref_store_map
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_worktree_ref_stores,4,2        ## @worktree_ref_stores
L_.str.1:                               ## @.str.1
	.asciz	"worktrees/%s"

	.comm	_REF_STORE_ALL_CAPS,4,2         ## @REF_STORE_ALL_CAPS
L_.str.2:                               ## @.str.2
	.asciz	"worktree"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_worktree_ref_store         ; -- Begin function get_worktree_ref_store
	.p2align	2
_get_worktree_ref_store:                ; @get_worktree_ref_store
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_get_main_ref_store
LBB0_2:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x19, x9, x8, eq
Lloh5:
	adrp	x0, _worktree_ref_stores@GOTPAGE
Lloh6:
	ldr	x0, [x0, _worktree_ref_stores@GOTPAGEOFF]
	mov	x1, x19
	bl	_lookup_ref_store_map
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	x1, [x21]
	cbz	x1, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_git_common_path
	b	LBB0_6
LBB0_5:
	bl	_get_git_common_dir
LBB0_6:
Lloh9:
	adrp	x8, _REF_STORE_ALL_CAPS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REF_STORE_ALL_CAPS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ref_store_init
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, _worktree_ref_stores@GOTPAGE
Lloh13:
	ldr	x0, [x0, _worktree_ref_stores@GOTPAGEOFF]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_register_ref_store_map
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_worktree_ref_stores,4,2        ; @worktree_ref_stores
l_.str.1:                               ; @.str.1
	.asciz	"worktrees/%s"

	.comm	_REF_STORE_ALL_CAPS,4,2         ; @REF_STORE_ALL_CAPS
l_.str.2:                               ; @.str.2
	.asciz	"worktree"

.subsections_via_symbols
