	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prune_directory
_prune_directory:                       ## @prune_directory
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r12
	movl	(%r15), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	incl	%r14d
	movq	%r12, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r13
	decl	%r14d
	cmpl	$1, %r14d
	jbe	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	movq	_the_index@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_dir_path_match
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, (%r12)
	addq	$8, %r12
	jmp	LBB0_5
LBB0_6:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	jmp	LBB0_7
LBB0_1:
	movq	%r12, %rax
LBB0_7:
	subq	%rax, %r12
	shrq	$3, %r12
	movl	%r12d, (%r15)
	movq	_the_index@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_add_pathspec_matches_against_index
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_index,4,2                  ## @the_index
	.no_dead_strip	_prune_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prune_directory
_prune_directory:                       ; @prune_directory
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1]
	mov	w1, #1
	bl	_xcalloc
	mov	x20, x0
	ldr	x25, [x21, #8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	add	w26, w8, #1
Lloh0:
	adrp	x23, _the_index@GOTPAGE
Lloh1:
	ldr	x23, [x23, _the_index@GOTPAGEOFF]
	mov	x27, x25
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w26, w26, #1
	cmp	w26, #1
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x27], #8
	mov	x0, x23
	mov	x1, x24
	mov	x2, x19
	mov	x3, x22
	mov	x4, x20
	bl	_dir_path_match
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x24, [x25], #8
	b	LBB0_2
LBB0_5:
	ldr	x8, [x21, #8]
	b	LBB0_7
LBB0_6:
	mov	x8, x25
LBB0_7:
	sub	x8, x25, x8
	lsr	x8, x8, #3
	str	w8, [x21]
Lloh2:
	adrp	x1, _the_index@GOTPAGE
Lloh3:
	ldr	x1, [x1, _the_index@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_add_pathspec_matches_against_index
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_the_index,4,2                  ; @the_index
	.no_dead_strip	_prune_directory
.subsections_via_symbols
