	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_linked_worktree
_get_linked_worktree:                   ## @get_linked_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	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%eax, -24(%rbp)
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rdi
	movq	%r14, %rcx
	callq	_strbuf_git_common_path
	movl	-32(%rbp), %esi
	leaq	-24(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_strbuf_read_file
	testq	%rax, %rax
	jle	LBB0_6
## %bb.3:
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_rtrim
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_strip_suffix
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_reset
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_add_absolute_path
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_strip_suffix
LBB0_5:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_reset
	xorl	%eax, %eax
	callq	_get_git_common_dir
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_strbuf_addf
	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	%r14, %rdi
	callq	_xstrdup
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_add_head_info
LBB0_6:
	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	"Missing linked worktree name"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.1:                               ## @.str.1
	.asciz	"worktrees/%s/gitdir"

L_.str.2:                               ## @.str.2
	.asciz	"/.git"

L_.str.3:                               ## @.str.3
	.asciz	"."

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

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

	.no_dead_strip	_get_linked_worktree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_linked_worktree
_get_linked_worktree:                   ; @get_linked_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
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w8, [sp]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
Lloh5:
	adrp	x8, _the_repository@GOTPAGE
Lloh6:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x3, x19
	bl	_strbuf_git_common_path
	ldr	w1, [sp, #8]
	mov	x0, sp
	mov	w2, #0
	bl	_strbuf_read_file
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x0, sp
	bl	_strbuf_rtrim
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	bl	_strbuf_strip_suffix
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, sp
	bl	_strbuf_reset
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	bl	_strbuf_add_absolute_path
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, sp
	bl	_strbuf_strip_suffix
LBB0_5:
	add	x0, sp, #8
	bl	_strbuf_reset
	bl	_get_git_common_dir
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	mov	x3, x19
	bl	_strbuf_addf
	mov	w0, #1
	mov	w1, #8
	bl	_xcalloc
	mov	x20, x0
	mov	x0, sp
	mov	x1, #0
	bl	_strbuf_detach
	str	w0, [x20, #4]
	mov	x0, x19
	bl	_xstrdup
	str	w0, [x20]
	mov	x0, x20
	bl	_add_head_info
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing linked worktree name"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.1:                               ; @.str.1
	.asciz	"worktrees/%s/gitdir"

l_.str.2:                               ; @.str.2
	.asciz	"/.git"

l_.str.3:                               ; @.str.3
	.asciz	"."

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

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

	.no_dead_strip	_get_linked_worktree
.subsections_via_symbols
