	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete_git_dir
_delete_git_dir:                        ## @delete_git_dir
	.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, %rsi
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_git_common_path
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_strbuf_addstr
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_remove_dir_recursively
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOTDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	-24(%rbp), %edi
	callq	_unlink
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	-24(%rbp), %esi
	movl	%eax, %edi
	callq	_error_errno
	movl	%ebx, %r14d
LBB0_5:
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	movl	%r14d, %eax
	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	"worktrees/%s"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
L_.str.1:                               ## @.str.1
	.asciz	"failed to delete '%s'"

	.no_dead_strip	_delete_git_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete_git_dir
_delete_git_dir:                        ; @delete_git_dir
	.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	x1, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_git_common_path
	mov	x1, x0
	add	x0, sp, #8
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	w1, #0
	bl	_remove_dir_recursively
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cbnz	w19, LBB0_4
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ENOTDIR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENOTDIR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_unlink
	mov	x19, x0
	cbz	w19, LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	w1, [sp, #8]
	bl	_error_errno
LBB0_5:
	add	x0, sp, #8
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"worktrees/%s"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
l_.str.1:                               ; @.str.1
	.asciz	"failed to delete '%s'"

	.no_dead_strip	_delete_git_dir
.subsections_via_symbols
