	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_main_worktree
_get_main_worktree:                     ## @get_main_worktree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%eax, -24(%rbp)
	xorl	%eax, %eax
	callq	_get_git_common_dir
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_strbuf_add_absolute_path
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_strip_suffix
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_strbuf_strip_suffix
LBB0_2:
	xorl	%eax, %eax
	callq	_get_git_common_dir
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdi
	movl	%eax, %edx
	callq	_strbuf_addf
	movl	$1, %r14d
	movl	$1, %edi
	movl	$8, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movl	%eax, 4(%rbx)
	movq	_is_bare_repository_cfg@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_is_bare_repository
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_4:
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	_add_head_info
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/.git"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s/HEAD"

	.comm	_is_bare_repository_cfg,4,2     ## @is_bare_repository_cfg
	.no_dead_strip	_get_main_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_main_worktree
_get_main_worktree:                     ; @get_main_worktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w8, [sp]
	bl	_get_git_common_dir
	mov	x1, x0
	mov	x0, sp
	bl	_strbuf_add_absolute_path
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strbuf_strip_suffix
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	bl	_strbuf_strip_suffix
LBB0_2:
	bl	_get_git_common_dir
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	mov	w20, #1
	mov	w0, #1
	mov	w1, #8
	bl	_xcalloc
	mov	x19, x0
	mov	x0, sp
	mov	x1, #0
	bl	_strbuf_detach
	str	w0, [x19, #4]
Lloh9:
	adrp	x8, _is_bare_repository_cfg@GOTPAGE
Lloh10:
	ldr	x8, [x8, _is_bare_repository_cfg@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_is_bare_repository
	cmp	x0, #0
	cset	w20, ne
LBB0_4:
	str	w20, [x19]
	mov	x0, x19
	bl	_add_head_info
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/.git"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s/HEAD"

	.comm	_is_bare_repository_cfg,4,2     ; @is_bare_repository_cfg
	.no_dead_strip	_get_main_worktree
.subsections_via_symbols
