	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grepdir
_grepdir:                               ## @grepdir
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rcx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, 8(%rcx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rcx), %rdx
	cmpq	16(%rbx), %rdx
	jne	LBB0_7
## %bb.5:
	movq	_suppress_errors@GOTPCREL(%rip), %rax
	movl	$1, %r13d
	cmpl	$0, (%rax)
	jne	LBB0_21
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	__
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_error
	jmp	LBB0_21
LBB0_8:
	movl	24(%rbx), %esi
	movq	_included_patterns@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_excluded_patterns@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_savedir
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_FILESYSTEM_PREFIX_LEN
	cmpq	%rax, %r15
	jne	LBB0_14
## %bb.13:
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_suppressible_error
	movl	$1, %r13d
	jmp	LBB0_21
LBB0_14:
	movsbl	-1(%r15,%r12), %edi
	callq	_IS_SLASH
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
LBB0_15:
	movq	_no_filenames@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_out_file@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	cmpl	$1, %ecx
	adcl	$0, %eax
	movq	%rbx, -112(%rbp)
	movl	%eax, (%rsi)
	cmpb	$0, (%r14)
	je	LBB0_16
## %bb.17:
	leaq	2(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rsi
	movq	%rbx, %rdi
	callq	_xrealloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movb	$47, (%rbx,%rax)
	movq	%r15, %rsi
	callq	_strcpy
	leaq	(%r14,%r15), %r12
	incq	%r12
	movq	%rbx, %rdi
	leaq	-112(%rbp), %rsi
	callq	_grepfile
	andl	%eax, %r13d
	cmpb	$0, 1(%r14,%r15)
	movq	%r12, %r15
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_18
## %bb.19:
	movq	_no_filenames@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	movq	_out_file@GOTPCREL(%rip), %rax
	sbbl	$0, (%rax)
	movq	%rbx, %rdi
	callq	_free
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_16:
	cmpl	$1, %ecx
	sbbl	$0, %eax
	movl	%eax, (%rsi)
	movl	$1, %r13d
LBB0_20:
	movq	%r14, %rdi
	callq	_free
LBB0_21:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	callq	_xalloc_die
	movl	$1, %r13d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_suppress_errors,4,2            ## @suppress_errors
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: %s: %s"

L_.str.1:                               ## @.str.1
	.asciz	"recursive directory loop"

	.comm	_included_patterns,4,2          ## @included_patterns
	.comm	_excluded_patterns,4,2          ## @excluded_patterns
	.comm	_errno,8,3                      ## @errno
	.comm	_no_filenames,4,2               ## @no_filenames
	.comm	_out_file,4,2                   ## @out_file
	.no_dead_strip	_grepdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grepdir
_grepdir:                               ; @grepdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x21]
	cbnz	x9, LBB0_6
LBB0_2:
	ldr	w1, [x21, #24]
Lloh0:
	adrp	x8, _included_patterns@GOTPAGE
Lloh1:
	ldr	x8, [x8, _included_patterns@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _excluded_patterns@GOTPAGE
Lloh4:
	ldr	x8, [x8, _excluded_patterns@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_savedir
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	mov	x0, x19
	bl	_FILESYSTEM_PREFIX_LEN
	cmp	x22, x0
	b.ne	LBB0_12
; %bb.4:
	mov	x26, #0
	b	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x9]
	cbz	x9, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, #8]
	cmp	x10, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x9, #16]
	ldr	x11, [x21, #16]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.8:
Lloh6:
	adrp	x8, _suppress_errors@GOTPAGE
Lloh7:
	ldr	x8, [x8, _suppress_errors@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.9:
	mov	w21, #1
	b	LBB0_19
LBB0_10:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	cbz	x1, LBB0_20
; %bb.11:
	mov	x0, x19
	bl	_suppressible_error
	mov	w21, #1
	b	LBB0_19
LBB0_12:
	add	x8, x22, x19
	ldursb	w0, [x8, #-1]
	bl	_IS_SLASH
	cmp	x0, #0
	cset	w26, eq
LBB0_13:
	str	x21, [sp]
Lloh12:
	adrp	x8, _no_filenames@GOTPAGE
Lloh13:
	ldr	x8, [x8, _no_filenames@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #0
Lloh15:
	adrp	x11, _out_file@GOTPAGE
Lloh16:
	ldr	x11, [x11, _out_file@GOTPAGEOFF]
	ldr	w9, [x11]
	cinc	w9, w9, eq
	str	w9, [x11]
	ldrb	w10, [x20]
	cbz	w10, LBB0_17
; %bb.14:
	mov	x23, #0
	add	x28, x22, #2
	mov	w21, #1
	mov	w27, #47
	mov	x24, x20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_strlen
	mov	x25, x0
	add	x1, x28, x0
	mov	x0, x23
	bl	_xrealloc
	mov	x23, x0
	mov	x1, x19
	bl	_strcpy
	add	x8, x23, x22
	add	x0, x8, x26
	strb	w27, [x8]
	mov	x1, x24
	bl	_strcpy
	add	x24, x25, x24
	mov	x1, sp
	mov	x0, x23
	bl	_grepfile
	ldrb	w8, [x24, #1]!
	and	w21, w0, w21
	cbnz	w8, LBB0_15
; %bb.16:
Lloh17:
	adrp	x8, _no_filenames@GOTPAGE
Lloh18:
	ldr	x8, [x8, _no_filenames@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x10, _out_file@GOTPAGE
Lloh21:
	ldr	x10, [x10, _out_file@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w8, #0
	cset	w8, eq
	sub	w8, w9, w8
	str	w8, [x10]
	mov	x0, x23
	bl	_free
	b	LBB0_18
LBB0_17:
	cmp	w8, #0
	cset	w8, eq
	sub	w8, w9, w8
	str	w8, [x11]
	mov	w21, #1
LBB0_18:
	mov	x0, x20
	bl	_free
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	bl	_xalloc_die
	mov	w21, #1
	b	LBB0_19
LBB0_21:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x4, x0
	mov	w0, #0
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_error
	mov	w21, #1
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_suppress_errors,4,2            ; @suppress_errors
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: %s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"recursive directory loop"

	.comm	_included_patterns,4,2          ; @included_patterns
	.comm	_excluded_patterns,4,2          ; @excluded_patterns
	.comm	_errno,8,3                      ; @errno
	.comm	_no_filenames,4,2               ; @no_filenames
	.comm	_out_file,4,2                   ; @out_file
	.no_dead_strip	_grepdir
.subsections_via_symbols
