	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grep_refill
_grep_refill:                           ## @grep_refill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_filebehave@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FILE_MMAP@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bufpos@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_bufrem@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	(%rdi), %edi
	movq	_MAXBUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	%rax, (%r14)
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_filebehave,8,3                 ## @filebehave
	.comm	_FILE_MMAP,8,3                  ## @FILE_MMAP
	.comm	_buffer,4,2                     ## @buffer
	.comm	_bufpos,4,2                     ## @bufpos
	.comm	_bufrem,8,3                     ## @bufrem
	.comm	_MAXBUFSIZ,4,2                  ## @MAXBUFSIZ
	.no_dead_strip	_grep_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grep_refill
_grep_refill:                           ; @grep_refill
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _filebehave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _filebehave@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FILE_MMAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FILE_MMAP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _buffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _buffer@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _bufpos@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bufpos@GOTPAGEOFF]
Lloh11:
	adrp	x19, _bufrem@GOTPAGE
Lloh12:
	ldr	x19, [x19, _bufrem@GOTPAGEOFF]
Lloh13:
	str	w1, [x8]
	str	xzr, [x19]
	ldr	w0, [x0]
Lloh14:
	adrp	x8, _MAXBUFSIZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAXBUFSIZ@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_read
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_filebehave,8,3                 ; @filebehave
	.comm	_FILE_MMAP,8,3                  ; @FILE_MMAP
	.comm	_buffer,4,2                     ; @buffer
	.comm	_bufpos,4,2                     ; @bufpos
	.comm	_bufrem,8,3                     ; @bufrem
	.comm	_MAXBUFSIZ,4,2                  ; @MAXBUFSIZ
	.no_dead_strip	_grep_refill
.subsections_via_symbols
