	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grepbuf
_grepbuf:                               ## @grepbuf
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	subl	%ebx, %esi
	leaq	-56(%rbp), %rdx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_execute
	cmpq	$-1, %rax
	je	LBB0_12
## %bb.1:
	xorl	%r14d, %r14d
	movq	_out_invert@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %esi
	subl	%ebx, %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_execute
	cmpq	$-1, %rax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	(%rbx,%rax), %rsi
	cmpq	%r15, %rsi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx
	addq	%rsi, %rbx
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %rdx
	callq	_prtext
	movslq	-44(%rbp), %rax
	addl	%eax, %r14d
	movq	_outleft@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
	jne	LBB0_11
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_prtext
	incl	%r14d
	movq	_outleft@GOTPCREL(%rip), %rax
	decq	(%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_done_on_match@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
LBB0_7:
	movq	_exit_on_match@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.8:
	movq	_bufoffset@GOTPCREL(%rip), %rax
	movq	_buflim@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	addl	(%rax), %ebx
	movq	_after_last_match@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_15
LBB0_3:
	movq	%rdi, %rbx
LBB0_12:
	cmpq	%r15, %rbx
	jae	LBB0_15
## %bb.13:
	movq	_out_invert@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_prtext
	movslq	-44(%rbp), %rax
	addl	%eax, %r14d
	movq	_outleft@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_out_invert,8,3                 ## @out_invert
	.comm	_outleft,8,3                    ## @outleft
	.comm	_done_on_match,8,3              ## @done_on_match
	.comm	_exit_on_match,8,3              ## @exit_on_match
	.comm	_bufoffset,4,2                  ## @bufoffset
	.comm	_buflim,8,3                     ## @buflim
	.comm	_after_last_match,4,2           ## @after_last_match
	.no_dead_strip	_grepbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grepbuf
_grepbuf:                               ; @grepbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	sub	w1, w20, w21
	mov	x2, sp
	mov	w3, #0
	bl	_execute
Lloh0:
	adrp	x23, _out_invert@GOTPAGE
Lloh1:
	ldr	x23, [x23, _out_invert@GOTPAGEOFF]
Lloh2:
	adrp	x22, _outleft@GOTPAGE
Lloh3:
	ldr	x22, [x22, _outleft@GOTPAGEOFF]
	cmn	x0, #1
	b.eq	LBB0_8
; %bb.1:
	mov	w19, #0
Lloh4:
	adrp	x24, _done_on_match@GOTPAGE
Lloh5:
	ldr	x24, [x24, _done_on_match@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x1
	mov	x1, x21
	mov	x2, #0
	bl	_prtext
	add	w19, w19, #1
	ldr	x8, [x22]
	sub	x8, x8, #1
	str	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w20, w21
	mov	x2, sp
	mov	x0, x21
	mov	w3, #0
	bl	_execute
	cmn	x0, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x21
	add	x1, x21, x0
	cmp	x1, x20
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp]
	add	x21, x1, x9
	ldr	x9, [x23]
	cbz	x9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #12
	mov	x0, x8
	bl	_prtext
	ldrsw	x8, [sp, #12]
	add	w19, w8, w19
	ldr	x9, [x22]
	subs	x8, x9, x8
	str	x8, [x22]
	b.ne	LBB0_3
	b	LBB0_13
LBB0_8:
	mov	w19, #0
LBB0_9:
	cmp	x21, x20
	b.lo	LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x21, x8
	cmp	x21, x20
	b.hs	LBB0_13
LBB0_11:
	ldr	x8, [x23]
	cbz	x8, LBB0_13
; %bb.12:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_prtext
	ldrsw	x8, [sp, #12]
	add	w19, w8, w19
	ldr	x9, [x22]
	sub	x8, x9, x8
	str	x8, [x22]
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh6:
	adrp	x8, _exit_on_match@GOTPAGE
Lloh7:
	ldr	x8, [x8, _exit_on_match@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
; %bb.15:
Lloh9:
	adrp	x8, _bufoffset@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bufoffset@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _buflim@GOTPAGE
Lloh13:
	ldr	x9, [x9, _buflim@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sub	w9, w21, w9
	add	w8, w8, w9
Lloh15:
	adrp	x9, _after_last_match@GOTPAGE
Lloh16:
	ldr	x9, [x9, _after_last_match@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	b	LBB0_13
LBB0_16:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_out_invert,8,3                 ; @out_invert
	.comm	_outleft,8,3                    ; @outleft
	.comm	_done_on_match,8,3              ; @done_on_match
	.comm	_exit_on_match,8,3              ; @exit_on_match
	.comm	_bufoffset,4,2                  ; @bufoffset
	.comm	_buflim,8,3                     ; @buflim
	.comm	_after_last_match,4,2           ; @after_last_match
	.no_dead_strip	_grepbuf
.subsections_via_symbols
