	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_textconv_grep
_fill_textconv_grep:                    ## @fill_textconv_grep
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_9
## %bb.2:
	movq	%rdi, %r15
	movl	32(%r14), %edi
	callq	_alloc_filespec
	movq	%rax, %r12
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.4:
	movq	24(%r14), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	jmp	LBB0_5
LBB0_9:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grep_source_load               ## TAILCALL
LBB0_6:
	movq	_null_oid@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
LBB0_5:
	movl	$33188, %ecx                    ## imm = 0x81A4
	callq	_fill_filespec
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_8:
	xorl	%eax, %eax
	callq	_grep_read_lock
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_fill_textconv
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_grep_read_unlock
	movq	%r12, %rdi
	callq	_free_filespec
	movq	%r14, %rdi
	callq	_grep_source_clear_data
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, 16(%r14)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_null_oid,4,2                   ## @null_oid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to textconv something without a path?"

	.no_dead_strip	_fill_textconv_grep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_textconv_grep
_fill_textconv_grep:                    ; @fill_textconv_grep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #32]
	bl	_alloc_filespec
	mov	x22, x0
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	ldr	x1, [x19, #24]
	mov	x0, x22
	mov	w2, #1
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_grep_source_load
LBB0_6:
Lloh0:
	adrp	x1, _null_oid@GOTPAGE
Lloh1:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	mov	x0, x22
	mov	w2, #0
LBB0_7:
	mov	w3, #33188
	bl	_fill_filespec
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_9:
	bl	_grep_read_lock
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_fill_textconv
	mov	x20, x0
	bl	_grep_read_unlock
	mov	x0, x22
	bl	_free_filespec
	mov	x0, x19
	bl	_grep_source_clear_data
	ldr	x8, [sp, #8]
	stp	x8, x20, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_null_oid,4,2                   ; @null_oid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to textconv something without a path?"

	.no_dead_strip	_fill_textconv_grep
.subsections_via_symbols
