	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prune_worktrees
_prune_worktrees:                       ## @prune_worktrees
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_git_path
	movl	%eax, %edi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	leaq	-48(%rbp), %r14
	movq	_show_only@GOTPCREL(%rip), %r13
	movq	_verbose@GOTPCREL(%rip), %r15
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	callq	_delete_git_dir
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_is_dot_or_dotdot
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_strbuf_reset
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_prune_worktree
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	orq	(%r15), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	cmpq	$0, (%r13)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_9:
	movq	%r12, %rdi
	callq	_closedir
	movq	_show_only@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_delete_worktrees_dir_if_empty
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"worktrees"

	.comm	_show_only,8,3                  ## @show_only
	.comm	_verbose,8,3                    ## @verbose
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_prune_worktrees
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prune_worktrees
_prune_worktrees:                       ; @prune_worktrees
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_git_path
	bl	_opendir
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	bl	_readdir
Lloh5:
	adrp	x22, _show_only@GOTPAGE
Lloh6:
	ldr	x22, [x22, _show_only@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
Lloh7:
	adrp	x23, _verbose@GOTPAGE
Lloh8:
	ldr	x23, [x23, _verbose@GOTPAGEOFF]
Lloh9:
	adrp	x20, l_.str.1@PAGE
Lloh10:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_delete_git_dir
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_is_dot_or_dotdot
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_strbuf_reset
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_prune_worktree
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	orr	x8, x8, x9
	cbz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_printf
	ldr	x8, [x22]
	cbnz	x8, LBB0_4
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_closedir
	ldr	x8, [x22]
	cbnz	x8, LBB0_11
; %bb.10:
	bl	_delete_worktrees_dir_if_empty
LBB0_11:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"worktrees"

	.comm	_show_only,8,3                  ; @show_only
	.comm	_verbose,8,3                    ; @verbose
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.no_dead_strip	_prune_worktrees
.subsections_via_symbols
