	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grep_file
_grep_file:                             ## @grep_file
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_quote_path_relative
	jmp	LBB0_4
LBB0_3:
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addstr
LBB0_4:
	movq	_GREP_SOURCE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %edx
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rcx
	movq	%rbx, %r8
	callq	_grep_source_init
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	movq	_num_threads@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_add_work
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	leaq	-40(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_grep_source
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_grep_source_clear
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_GREP_SOURCE_FILE,4,2           ## @GREP_SOURCE_FILE
	.comm	_num_threads,4,2                ## @num_threads
	.no_dead_strip	_grep_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grep_file
_grep_file:                             ; @grep_file
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19]
	add	x2, sp, #8
	mov	x0, x20
	bl	_quote_path_relative
	b	LBB0_4
LBB0_3:
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_addstr
LBB0_4:
Lloh3:
	adrp	x8, _GREP_SOURCE_FILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GREP_SOURCE_FILE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, sp
	mov	x3, x20
	mov	x4, x20
	bl	_grep_source_init
	add	x0, sp, #8
	bl	_strbuf_release
Lloh6:
	adrp	x8, _num_threads@GOTPAGE
Lloh7:
	ldr	x8, [x8, _num_threads@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x1, sp
	mov	x0, x19
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	bl	_add_work
	mov	w19, #0
	b	LBB0_7
LBB0_6:
	bl	_grep_source
	mov	x19, x0
	mov	x0, sp
	bl	_grep_source_clear
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_GREP_SOURCE_FILE,4,2           ; @GREP_SOURCE_FILE
	.comm	_num_threads,4,2                ; @num_threads
	.no_dead_strip	_grep_file
.subsections_via_symbols
